From ee4460acf4c5f4686c318f8a590363186cf8e239 Mon Sep 17 00:00:00 2001 From: Lars-Ivar Hesselberg Simonsen Date: Wed, 15 Jan 2025 15:44:52 +0100 Subject: [PATCH] panvk: Fix descriptor decode The expansion of DUMP_CL is missing parenthesis, making the dumping of descriptors incorrect. Fixes: 3b69edf8257 ("pan/genxml: Enforce explicit packed types on pan_[un]pack") Reviewed-by: Boris Brezillon Reviewed-by: Erik Faye-Lund Part-of: --- src/panfrost/lib/genxml/decode.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/panfrost/lib/genxml/decode.h b/src/panfrost/lib/genxml/decode.h index f94794467d9..ccdb3bb05c0 100644 --- a/src/panfrost/lib/genxml/decode.h +++ b/src/panfrost/lib/genxml/decode.h @@ -189,7 +189,7 @@ pandecode_log_cont(struct pandecode_context *ctx, const char *format, ...) #define DUMP_CL(ctx, T, cl, ...) \ { \ - pan_unpack((MALI_##T##_PACKED_T *)cl, T, temp); \ + pan_unpack((MALI_##T##_PACKED_T *)(cl), T, temp); \ DUMP_UNPACKED(ctx, T, temp, __VA_ARGS__); \ }