pan/indirect: Don't use .base to pass the push_constant offset

We're about to assert when .base != 0 in the Bifrost backend,
but we first make sure all push_constant users stop passing
the offset through .base.

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Chia-I Wu <olvaffe@gmail.com>
Reviewed-by: Lars-Ivar Hesselberg Simonsen <lars-ivar.simonsen@arm.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32415>
This commit is contained in:
Boris Brezillon
2024-12-20 11:32:08 +01:00
committed by Marge Bot
parent 22bbc8f87b
commit 8166a218ee

View File

@@ -36,8 +36,7 @@
#define get_input_field(b, name) \
nir_load_push_constant( \
b, 1, sizeof(((struct pan_indirect_dispatch_info *)0)->name) * 8, \
nir_imm_int(b, 0), \
.base = offsetof(struct pan_indirect_dispatch_info, name))
nir_imm_int(b, offsetof(struct pan_indirect_dispatch_info, name)))
static void
pan_indirect_dispatch_init(struct pan_indirect_dispatch_meta *meta)