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:
Lionel Landwerlin 2026-01-21 22:21:49 +02:00 committed by Marge Bot
parent 3aacc324bc
commit 21661f66fc

View file

@ -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)