mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 22:49:13 +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>
This commit is contained in:
parent
3aacc324bc
commit
21661f66fc
1 changed files with 7 additions and 0 deletions
|
|
@ -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