mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-27 23:30:10 +01:00
iris: Use program's num textures not the state tracker's bound
the state tracker might bind more textures than the program is using.
This commit is contained in:
parent
855ff47d36
commit
10d04cdaa4
1 changed files with 1 additions and 1 deletions
|
|
@ -3637,7 +3637,7 @@ iris_populate_binding_table(struct iris_context *ice,
|
|||
//assert(prog_data->binding_table.texture_start ==
|
||||
//(ice->state.num_textures[stage] ? s : 0xd0d0d0d0));
|
||||
|
||||
for (int i = 0; i < shs->num_textures; i++) {
|
||||
for (int i = 0; i < info->num_textures; i++) {
|
||||
struct iris_sampler_view *view = shs->textures[i];
|
||||
uint32_t addr = view ? use_sampler_view(batch, view)
|
||||
: use_null_surface(batch, ice);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue