projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b52bf8f
)
amd/common/gfx10: CMASK is only used for FMASK
author
Nicolai Hähnle
<nicolai.haehnle@amd.com>
Sun, 19 Nov 2017 16:26:23 +0000
(17:26 +0100)
committer
Marek 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
patch
|
blob
|
history
diff --git
a/src/amd/common/ac_surface.c
b/src/amd/common/ac_surface.c
index 73fdc55408f1afaea7b3046e38bc335640dde493..298dfe208384c06728a1b40c225816853799b2a3 100644
(file)
--- 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};