mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-30 23:28:06 +02:00
tu: Set textures_used for input attachments correctly
We were accidentally multiplying by 2 twice. Noticed by inspection. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18757>
This commit is contained in:
parent
f483419c23
commit
750ecb0aa9
1 changed files with 1 additions and 1 deletions
|
|
@ -369,7 +369,7 @@ build_bindless(struct tu_device *dev, nir_builder *b,
|
|||
const struct glsl_type *glsl_type = glsl_without_array(var->type);
|
||||
uint32_t idx = var->data.index * 2;
|
||||
|
||||
BITSET_SET_RANGE_INSIDE_WORD(b->shader->info.textures_used, idx * 2, ((idx * 2) + (bind_layout->array_size * 2)) - 1);
|
||||
BITSET_SET_RANGE_INSIDE_WORD(b->shader->info.textures_used, idx, (idx + bind_layout->array_size * 2) - 1);
|
||||
|
||||
/* D24S8 workaround: stencil of D24S8 will be sampled as uint */
|
||||
if (glsl_get_sampler_result_type(glsl_type) == GLSL_TYPE_UINT)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue