diff options
-rw-r--r-- | src/amd/common/ac_surface.c | 5 |
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}; |