ac/surface: always compute DCC info when DCC is possible on GFX9
authorMarek Olšák <marek.olsak@amd.com>
Thu, 30 Nov 2017 01:14:18 +0000 (02:14 +0100)
committerMarek Olšák <marek.olsak@amd.com>
Thu, 30 Nov 2017 17:46:11 +0000 (18:46 +0100)
The same code for VI doesn't check for scanout either.

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/amd/common/ac_surface.c

index 8347c45508f5581b66b7f0f445b8deeb5993aa98..590920ee2b6b1338ca9d85ebbc9331b5d1736462 100644 (file)
@@ -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};