summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNicolai Hähnle <[email protected]>2017-11-19 17:26:23 +0100
committerMarek Olšák <[email protected]>2019-07-03 15:51:12 -0400
commit70fd27d1e318e67ab5efffe505f6f357b061e070 (patch)
tree92057549d66b745bf56b1366493380eda9fd7b15 /src
parentb52bf8f12a60fae4048ee99455a3b1334941f383 (diff)
amd/common/gfx10: CMASK is only used for FMASK
All regular color compression is done via DCC. Acked-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/amd/common/ac_surface.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/amd/common/ac_surface.c b/src/amd/common/ac_surface.c
index 73fdc55408f..298dfe20838 100644
--- a/src/amd/common/ac_surface.c
+++ b/src/amd/common/ac_surface.c
@@ -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};