From 8166a218eedd0eeac319d4efa9def06d4a341451 Mon Sep 17 00:00:00 2001 From: Boris Brezillon Date: Fri, 20 Dec 2024 11:32:08 +0100 Subject: [PATCH] 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 Reviewed-by: Chia-I Wu Reviewed-by: Lars-Ivar Hesselberg Simonsen Part-of: --- src/panfrost/lib/pan_indirect_dispatch.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/panfrost/lib/pan_indirect_dispatch.c b/src/panfrost/lib/pan_indirect_dispatch.c index fa6bbef1d95..d28edbbe584 100644 --- a/src/panfrost/lib/pan_indirect_dispatch.c +++ b/src/panfrost/lib/pan_indirect_dispatch.c @@ -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)