mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 02:48:06 +02:00
anv: check that push range actually match binding considered
We can't just check the load_ubo range is contained in the push entry, we also need to check that the push entry set/binding matches the load_ubo set/binding. Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Fixes:ff91c5ca42("anv: add analysis for push descriptor uses and store it in shader cache") Reviewed-by: Emma Anholt <emma@anholt.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20555> (cherry picked from commite2b0086b78)
This commit is contained in:
parent
605feb0281
commit
b95e5a8cc2
2 changed files with 4 additions and 2 deletions
|
|
@ -1147,7 +1147,7 @@
|
|||
"description": "anv: check that push range actually match binding considered",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "ff91c5ca42bc80aa411cb3fd8f550aa6fdd16bdc"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -222,7 +222,9 @@ anv_nir_push_desc_ubo_fully_promoted(nir_shader *nir,
|
|||
(nir_dest_bit_size(intrin->dest) / 8);
|
||||
|
||||
for (unsigned i = 0; i < ARRAY_SIZE(bind_map->push_ranges); i++) {
|
||||
if (bind_map->push_ranges[i].start * 32 <= load_offset &&
|
||||
if (bind_map->push_ranges[i].set == binding->set &&
|
||||
bind_map->push_ranges[i].index == desc_idx &&
|
||||
bind_map->push_ranges[i].start * 32 <= load_offset &&
|
||||
(bind_map->push_ranges[i].start +
|
||||
bind_map->push_ranges[i].length) * 32 >=
|
||||
(load_offset + load_bytes)) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue