From f35867686d55d20b5bbbeff31c200e8ada81fb8b Mon Sep 17 00:00:00 2001 From: Rob Clark Date: Sat, 23 Aug 2025 07:46:44 -0700 Subject: [PATCH] freedreno/lrz: Extend lrz fc helpers for gen8 The FC RAM is the same size as gen7. Tbd if the metadata is also the same. So far we aren't enabling LRZ on gen8 yet, but need to do something to make the compiler happy, so treat gen8 as it was the same as gen7. Signed-off-by: Rob Clark Part-of: --- src/freedreno/common/freedreno_lrz.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/freedreno/common/freedreno_lrz.h b/src/freedreno/common/freedreno_lrz.h index 53ecf19ef55..9ece1258ce2 100644 --- a/src/freedreno/common/freedreno_lrz.h +++ b/src/freedreno/common/freedreno_lrz.h @@ -7,6 +7,7 @@ #define __FREEDRENO_LRZ_H__ #include "adreno_common.xml.h" +#include "freedreno_common.h" enum fd_lrz_gpu_dir : uint8_t { FD_LRZ_GPU_DIR_DISABLED = 0, @@ -42,11 +43,11 @@ fd_lrz_gpu_dir_to_str(enum fd_lrz_gpu_dir dir) * - metadata: Metadata buffer for LRZ fast-clear. The contents are not * always known, since they're handled by the hardware. */ -template +template struct fd_lrzfc_layout; -template <> -struct PACKED fd_lrzfc_layout { +template +struct PACKED fd_lrzfc_layout { static const bool HAS_BIDIR = false; static const bool HAS_CB = false; static const size_t FC_SIZE = 512; @@ -64,8 +65,8 @@ struct PACKED fd_lrzfc_layout { }; }; -template <> -struct PACKED fd_lrzfc_layout { +template +struct PACKED fd_lrzfc_layout= A7XX)> { static const bool HAS_BIDIR = true; static const bool HAS_CB = true; static const size_t FC_SIZE = 1024;