nir: Drop the high_offset argument to the load_store_vectorizer filter.
Nothing uses it, and it's not clear to me what it provides over alignment/num_components/bit_size. Reviewed-by: Rob Clark <robdclark@chromium.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6612>
This commit is contained in:
@@ -4854,7 +4854,7 @@ bool nir_opt_conditional_discard(nir_shader *shader);
|
||||
typedef bool (*nir_should_vectorize_mem_func)(unsigned align_mul,
|
||||
unsigned align_offset,
|
||||
unsigned bit_size,
|
||||
unsigned num_components, unsigned high_offset,
|
||||
unsigned num_components,
|
||||
nir_intrinsic_instr *low, nir_intrinsic_instr *high);
|
||||
|
||||
bool nir_opt_load_store_vectorize(nir_shader *shader, nir_variable_mode modes,
|
||||
|
@@ -670,7 +670,7 @@ new_bitsize_acceptable(struct vectorize_ctx *ctx, unsigned new_bit_size,
|
||||
if (!ctx->callback(low->align_mul,
|
||||
low->align_offset,
|
||||
new_bit_size, new_num_components,
|
||||
high_offset, low->intrin, high->intrin))
|
||||
low->intrin, high->intrin))
|
||||
return false;
|
||||
|
||||
if (low->is_store) {
|
||||
|
@@ -72,7 +72,7 @@ protected:
|
||||
|
||||
static bool mem_vectorize_callback(unsigned align_mul, unsigned align_offset,
|
||||
unsigned bit_size,
|
||||
unsigned num_components, unsigned high_offset,
|
||||
unsigned num_components,
|
||||
nir_intrinsic_instr *low, nir_intrinsic_instr *high);
|
||||
static void shared_type_info(const struct glsl_type *type, unsigned *size, unsigned *align);
|
||||
|
||||
@@ -365,7 +365,7 @@ bool nir_load_store_vectorize_test::test_alu_def(
|
||||
|
||||
bool nir_load_store_vectorize_test::mem_vectorize_callback(
|
||||
unsigned align_mul, unsigned align_offset, unsigned bit_size,
|
||||
unsigned num_components, unsigned high_offset,
|
||||
unsigned num_components,
|
||||
nir_intrinsic_instr *low, nir_intrinsic_instr *high)
|
||||
{
|
||||
return bit_size / 8;
|
||||
|
Reference in New Issue
Block a user