v3d/compiler: remove num_samplers_used from shader key

This is only ever used by assertions.

Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34742>
This commit is contained in:
Ella Stanforth
2025-04-29 14:15:34 +01:00
committed by Marge Bot
parent 01d0ccd664
commit bb07364c54
5 changed files with 0 additions and 19 deletions
-1
View File
@@ -412,7 +412,6 @@ struct v3d_key {
uint8_t return_size;
} sampler[V3D_MAX_TEXTURE_SAMPLERS];
uint8_t num_samplers_used;
uint8_t ucp_enables;
bool is_last_geometry_stage;
bool robust_uniform_access;
-1
View File
@@ -238,7 +238,6 @@ v3d_vir_emit_tex(struct v3d_compile *c, nir_tex_instr *instr)
* itself, we still need to add the sampler configuration
* parameter if the output is 32 bit
*/
assert(sampler_idx < c->key->num_samplers_used);
bool output_type_32_bit =
c->key->sampler[sampler_idx].return_size == 32;
-1
View File
@@ -601,7 +601,6 @@ lower_tex_packing_cb(const nir_tex_instr *tex, const void *data)
int sampler_index = nir_tex_instr_need_sampler(tex) ?
tex->sampler_index : tex->backend_flags;
assert(sampler_index < c->key->num_samplers_used);
return c->key->sampler[sampler_index].return_size == 16 ?
nir_lower_tex_packing_16 : nir_lower_tex_packing_none;
}