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:

committed by
Marge Bot

parent
22bbc8f87b
commit
8166a218ee
@@ -36,8 +36,7 @@
|
|||||||
#define get_input_field(b, name) \
|
#define get_input_field(b, name) \
|
||||||
nir_load_push_constant( \
|
nir_load_push_constant( \
|
||||||
b, 1, sizeof(((struct pan_indirect_dispatch_info *)0)->name) * 8, \
|
b, 1, sizeof(((struct pan_indirect_dispatch_info *)0)->name) * 8, \
|
||||||
nir_imm_int(b, 0), \
|
nir_imm_int(b, offsetof(struct pan_indirect_dispatch_info, name)))
|
||||||
.base = offsetof(struct pan_indirect_dispatch_info, name))
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
pan_indirect_dispatch_init(struct pan_indirect_dispatch_meta *meta)
|
pan_indirect_dispatch_init(struct pan_indirect_dispatch_meta *meta)
|
||||||
|
Reference in New Issue
Block a user