From e4a30b7241e0b27f55635901c5ed5aeb4e4fedeb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Tue, 11 Mar 2025 14:30:57 -0400 Subject: [PATCH] ac/surface: remove 64K_2D modifier with 64B max compressed blocks for gfx12 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It has no use and is slower. Acked-by: Pierre-Eric Pelloux-Prayer Tested-by: Dieter Nützel Part-of: --- src/amd/common/ac_surface.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/amd/common/ac_surface.c b/src/amd/common/ac_surface.c index aa6f69cd52b..ba8290472cb 100644 --- a/src/amd/common/ac_surface.c +++ b/src/amd/common/ac_surface.c @@ -557,13 +557,10 @@ bool ac_get_supported_modifiers(const struct radeon_info *info, AMD_FMT_MOD_SET(DCC_MAX_COMPRESSED_BLOCK, AMD_FMT_MOD_DCC_BLOCK_256B); uint64_t dcc_128B = AMD_FMT_MOD_SET(DCC, 1) | AMD_FMT_MOD_SET(DCC_MAX_COMPRESSED_BLOCK, AMD_FMT_MOD_DCC_BLOCK_128B); - uint64_t dcc_64B = AMD_FMT_MOD_SET(DCC, 1) | - AMD_FMT_MOD_SET(DCC_MAX_COMPRESSED_BLOCK, AMD_FMT_MOD_DCC_BLOCK_64B); /* Modifiers must be sorted from best to worst. */ ADD_MOD(mod_64K_2D | dcc_256B) /* 64K with DCC and 256B compressed blocks */ ADD_MOD(mod_64K_2D | dcc_128B) /* 64K with DCC and 128B compressed blocks */ - ADD_MOD(mod_64K_2D | dcc_64B) /* 64K with DCC and 64B compressed blocks */ ADD_MOD(mod_256K_2D | dcc_256B) /* OpenGL exported modifier */ ADD_MOD(mod_4K_2D | dcc_256B) /* OpenGL exported modifier */ ADD_MOD(mod_256B_2D | dcc_256B) /* OpenGL exported modifier */