diff options
author | Kenneth Graunke <[email protected]> | 2018-11-23 11:47:55 -0800 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2019-02-21 10:26:10 -0800 |
commit | 10d04cdaa4ffbf37b5eedab2769074697cb6aff3 (patch) | |
tree | 80305d97e67ef50862b54168f852b04eb8a31ce2 /src/gallium | |
parent | 855ff47d365abfc0d97061f1084f68bcff961743 (diff) |
iris: Use program's num textures not the state tracker's bound
the state tracker might bind more textures than the program is using.
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/iris/iris_state.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/iris/iris_state.c b/src/gallium/drivers/iris/iris_state.c index a13e6cd0b0e..635d2d60ed6 100644 --- a/src/gallium/drivers/iris/iris_state.c +++ b/src/gallium/drivers/iris/iris_state.c @@ -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); |