amd/common/gfx10: CMASK is only used for FMASK
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Sun, 19 Nov 2017 16:26:23 +0000 (17:26 +0100)
committerMarek Olšák <marek.olsak@amd.com>
Wed, 3 Jul 2019 19:51:12 +0000 (15:51 -0400)
All regular color compression is done via DCC.

Acked-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/common/ac_surface.c

index 73fdc55408f1afaea7b3046e38bc335640dde493..298dfe208384c06728a1b40c225816853799b2a3 100644 (file)
@@ -1339,8 +1339,9 @@ static int gfx9_compute_miptree(ADDR_HANDLE addrlib,
                        }
                }
 
-               /* CMASK */
-               if (in->swizzleMode != ADDR_SW_LINEAR) {
+               /* CMASK -- on GFX10 only for FMASK */
+               if (in->swizzleMode != ADDR_SW_LINEAR &&
+                   (info->chip_class <= GFX9 || in->numSamples > 1)) {
                        ADDR2_COMPUTE_CMASK_INFO_INPUT cin = {0};
                        ADDR2_COMPUTE_CMASK_INFO_OUTPUT cout = {0};