mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-22 10:40:22 +01:00
nir: fix nir_tex_instr hash not count is_sparse field
This fixes nir_opt_cse miss replace a non-sparse tex instruction
with a sparse tex instruction and fail the nir_validate_shader().
Fixes: 3a7972f72a ("nir,spirv: add sparse texture fetches")
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Signed-off-by: Qiang Yu <yuq825@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14362>
This commit is contained in:
parent
3cafa3e852
commit
2cee73f0f7
1 changed files with 1 additions and 0 deletions
|
|
@ -272,6 +272,7 @@ hash_tex(uint32_t hash, const nir_tex_instr *instr)
|
|||
hash = HASH(hash, instr->is_array);
|
||||
hash = HASH(hash, instr->is_shadow);
|
||||
hash = HASH(hash, instr->is_new_style_shadow);
|
||||
hash = HASH(hash, instr->is_sparse);
|
||||
unsigned component = instr->component;
|
||||
hash = HASH(hash, component);
|
||||
for (unsigned i = 0; i < 4; ++i)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue