mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-16 04:38:30 +02:00
iris: fix incorrect intrinsic usage on ELK
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Fixes:faa857a061("intel: rework push constant handling") Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/14708 Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39443> (cherry picked from commit21661f66fc)
This commit is contained in:
parent
861c689517
commit
fefa2b1e68
2 changed files with 8 additions and 1 deletions
|
|
@ -3544,7 +3544,7 @@
|
|||
"description": "iris: fix incorrect intrinsic usage on ELK",
|
||||
"nominated": true,
|
||||
"nomination_type": 2,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "faa857a061febb9b8b708c703ceae7031b9febb2",
|
||||
"notes": null
|
||||
|
|
|
|||
|
|
@ -61,10 +61,17 @@
|
|||
# error "Unsupported generation"
|
||||
#endif
|
||||
|
||||
#if GFX_VER < 9
|
||||
#define load_param(b, bit_size, struct_name, field_name) \
|
||||
nir_load_uniform(b, 1, bit_size, nir_imm_int(b, 0), \
|
||||
.base = offsetof(struct_name, field_name), \
|
||||
.range = bit_size / 8)
|
||||
#else
|
||||
#define load_param(b, bit_size, struct_name, field_name) \
|
||||
nir_load_push_data_intel(b, 1, bit_size, nir_imm_int(b, 0), \
|
||||
.base = offsetof(struct_name, field_name), \
|
||||
.range = bit_size / 8)
|
||||
#endif
|
||||
|
||||
static nir_def *
|
||||
load_fragment_index(nir_builder *b)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue