summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2017-11-30 02:14:18 +0100
committerMarek Olšák <[email protected]>2017-11-30 18:46:11 +0100
commit186adc514b820dd736cc680a6cf058b7fbb31ebf (patch)
treec739f713c8fd1b5281f8f3e38b652a4c7b5fee85
parented4780383cae61e051b3d3d120649222da49feae (diff)
ac/surface: always compute DCC info when DCC is possible on GFX9
The same code for VI doesn't check for scanout either. Reviewed-by: Nicolai Hähnle <[email protected]>
-rw-r--r--src/amd/common/ac_surface.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/amd/common/ac_surface.c b/src/amd/common/ac_surface.c
index 8347c45508f..590920ee2b6 100644
--- a/src/amd/common/ac_surface.c
+++ b/src/amd/common/ac_surface.c
@@ -925,7 +925,6 @@ static int gfx9_compute_miptree(ADDR_HANDLE addrlib,
} else {
/* DCC */
if (!(surf->flags & RADEON_SURF_DISABLE_DCC) &&
- !(surf->flags & RADEON_SURF_SCANOUT) &&
!compressed &&
in->swizzleMode != ADDR_SW_LINEAR) {
ADDR2_COMPUTE_DCCINFO_INPUT din = {0};