From 7a8e560c4e1b7399f45f03ca95302da4c8ca53e7 Mon Sep 17 00:00:00 2001 From: Boris Brezillon Date: Tue, 26 Nov 2024 15:02:13 +0100 Subject: [PATCH] panfrost: Add cs_exception_handler_def() to the ForEachMacros list And fix the call-sites accordingly. Signed-off-by: Boris Brezillon Reviewed-by: Lars-Ivar Hesselberg Simonsen Part-of: --- src/panfrost/.clang-format | 1 + src/panfrost/vulkan/csf/panvk_vX_exception_handler.c | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/panfrost/.clang-format b/src/panfrost/.clang-format index a146273062e..9a1e0787018 100644 --- a/src/panfrost/.clang-format +++ b/src/panfrost/.clang-format @@ -42,6 +42,7 @@ ForEachMacros: [ 'cs_default', 'cs_else', 'cs_emit', + 'cs_exception_handler_def', 'cs_if', 'cs_match', 'cs_update_compute_ctx', diff --git a/src/panfrost/vulkan/csf/panvk_vX_exception_handler.c b/src/panfrost/vulkan/csf/panvk_vX_exception_handler.c index ae127e996f0..dcb9243ed19 100644 --- a/src/panfrost/vulkan/csf/panvk_vX_exception_handler.c +++ b/src/panfrost/vulkan/csf/panvk_vX_exception_handler.c @@ -45,8 +45,7 @@ generate_tiler_oom_handler(struct cs_buffer handler_mem, bool has_zs_ext, .ls_sb_slot = SB_ID(LS), }; - cs_exception_handler_def(&b, &handler, handler_ctx) - { + cs_exception_handler_def(&b, &handler, handler_ctx) { struct cs_index subqueue_ctx = cs_subqueue_ctx_reg(&b); struct cs_index zero = cs_scratch_reg64(&b, 0); /* Have flush_id read part of the double zero register */