Module: Mesa
Branch: master
Commit: 186adc514b820dd736cc680a6cf058b7fbb31ebf
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=186adc514b820dd736cc680a6cf058b7fbb31ebf

Author: Marek Olšák <[email protected]>
Date:   Thu Nov 30 02:14:18 2017 +0100

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]>

---

 src/amd/common/ac_surface.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/amd/common/ac_surface.c b/src/amd/common/ac_surface.c
index 8347c45508..590920ee2b 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};

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to