From 01ea55b44ca73c4e9a4d323daf613669b6828708 Mon Sep 17 00:00:00 2001 From: Mary Guillemard Date: Fri, 24 May 2024 10:33:54 +0200 Subject: [PATCH] midgard: Reformat code Signed-off-by: Mary Guillemard Acked-by: Boris Brezillon Part-of: --- src/panfrost/midgard/helpers.h | 4 ++-- src/panfrost/midgard/midgard_compile.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/panfrost/midgard/helpers.h b/src/panfrost/midgard/helpers.h index ac062e0be07..5cc63e705fb 100644 --- a/src/panfrost/midgard/helpers.h +++ b/src/panfrost/midgard/helpers.h @@ -389,13 +389,13 @@ midgard_unpack_varying_params(midgard_load_store_word word); * displacement bitsize. */ #define UNPACK_LDST_ATTRIB_OFS(a) ((a) >> 9) -#define UNPACK_LDST_VERTEX_OFS(a) util_sign_extend((a)&0x1FF, 9) +#define UNPACK_LDST_VERTEX_OFS(a) util_sign_extend((a) & 0x1FF, 9) #define UNPACK_LDST_SELECTOR_OFS(a) ((a) >> 9) #define UNPACK_LDST_UBO_OFS(a) ((a) >> 2) #define UNPACK_LDST_MEM_OFS(a) ((a)) #define PACK_LDST_ATTRIB_OFS(a) ((a) << 9) -#define PACK_LDST_VERTEX_OFS(a) ((a)&0x1FF) +#define PACK_LDST_VERTEX_OFS(a) ((a) & 0x1FF) #define PACK_LDST_SELECTOR_OFS(a) ((a) << 9) #define PACK_LDST_UBO_OFS(a) ((a) << 2) #define PACK_LDST_MEM_OFS(a) ((a)) diff --git a/src/panfrost/midgard/midgard_compile.c b/src/panfrost/midgard/midgard_compile.c index d7504ae381c..ee1350c86b5 100644 --- a/src/panfrost/midgard/midgard_compile.c +++ b/src/panfrost/midgard/midgard_compile.c @@ -31,8 +31,8 @@ #include #include -#include "compiler/glsl_types.h" #include "compiler/glsl/glsl_to_nir.h" +#include "compiler/glsl_types.h" #include "compiler/nir/nir_builder.h" #include "util/half_float.h" #include "util/list.h"