mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-07 19:30:12 +01:00
iris: Stop looking at textures_used for samplers
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16442>
This commit is contained in:
parent
0edf63de76
commit
c9c8134d76
2 changed files with 3 additions and 3 deletions
|
|
@ -2789,8 +2789,8 @@ bind_shader_state(struct iris_context *ice,
|
|||
const struct shader_info *old_info = iris_get_shader_info(ice, stage);
|
||||
const struct shader_info *new_info = ish ? &ish->nir->info : NULL;
|
||||
|
||||
if ((old_info ? BITSET_LAST_BIT(old_info->textures_used) : 0) !=
|
||||
(new_info ? BITSET_LAST_BIT(new_info->textures_used) : 0)) {
|
||||
if ((old_info ? BITSET_LAST_BIT(old_info->samplers_used) : 0) !=
|
||||
(new_info ? BITSET_LAST_BIT(new_info->samplers_used) : 0)) {
|
||||
ice->state.stage_dirty |= IRIS_STAGE_DIRTY_SAMPLER_STATES_VS << stage;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -2209,7 +2209,7 @@ iris_upload_sampler_states(struct iris_context *ice, gl_shader_stage stage)
|
|||
/* We assume gallium frontends will call pipe->bind_sampler_states()
|
||||
* if the program's number of textures changes.
|
||||
*/
|
||||
unsigned count = info ? BITSET_LAST_BIT(info->textures_used) : 0;
|
||||
unsigned count = info ? BITSET_LAST_BIT(info->samplers_used) : 0;
|
||||
|
||||
if (!count)
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue