radeonsi: fix has_non_uniform_tex_access info

Fixes: f859436b55 ("radeonsi: add has_non_uniform_tex_access shader info")
Tested-by: Mike Lothian <mike@fireburn.co.uk>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33440>
(cherry picked from commit c805ea6792)
This commit is contained in:
Qiang Yu 2025-02-06 10:01:50 +08:00 committed by Eric Engestrom
parent 92e02eebea
commit a9f218a966
2 changed files with 2 additions and 2 deletions

View file

@ -24,7 +24,7 @@
"description": "radeonsi: fix has_non_uniform_tex_access info",
"nominated": true,
"nomination_type": 2,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "f859436b55711684602336f8d9a8dc498ad5fe16",
"notes": null

View file

@ -308,7 +308,7 @@ static void scan_instruction(const struct nir_shader *nir, struct si_shader_info
info->uses_indirect_descriptor = true;
}
info->has_non_uniform_tex_access =
info->has_non_uniform_tex_access |=
tex->texture_non_uniform || tex->sampler_non_uniform;
info->has_shadow_comparison |= tex->is_shadow;