mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 09:08:10 +02:00
anv: fix push range for descriptor offsets
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Fixes:379b9bb7b0("anv: Support fetching descriptor addresses from push constants") Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21645> (cherry picked from commite1ffa067d3)
This commit is contained in:
parent
1fe7896f47
commit
0340da7c82
2 changed files with 6 additions and 5 deletions
|
|
@ -1579,7 +1579,7 @@
|
|||
"description": "anv: fix push range for descriptor offsets",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "379b9bb7b04dc87797e49933bbfac786b7ef38fb"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -67,12 +67,13 @@ anv_nir_compute_push_layout(nir_shader *nir,
|
|||
break;
|
||||
}
|
||||
|
||||
case nir_intrinsic_load_desc_set_address_intel:
|
||||
push_start = MIN2(push_start,
|
||||
offsetof(struct anv_push_constants, desc_sets));
|
||||
push_end = MAX2(push_end, push_start +
|
||||
case nir_intrinsic_load_desc_set_address_intel: {
|
||||
unsigned base = offsetof(struct anv_push_constants, desc_sets);
|
||||
push_start = MIN2(push_start, base);
|
||||
push_end = MAX2(push_end, base +
|
||||
sizeof_field(struct anv_push_constants, desc_sets));
|
||||
break;
|
||||
}
|
||||
|
||||
default:
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue