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

Author: Marek Olšák <[email protected]>
Date:   Mon Nov 20 01:51:50 2017 +0100

radeonsi: handle imported textures with DCC robustly

now you can hack the driver to enable DCC for displayable textures and
Glamor that doesn't enable that by default won't crash anymore.

Reviewed-by: Nicolai Hähnle <[email protected]>

---

 src/gallium/drivers/radeonsi/si_state.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/drivers/radeonsi/si_state.c 
b/src/gallium/drivers/radeonsi/si_state.c
index fcf4928e65..46c45eae99 100644
--- a/src/gallium/drivers/radeonsi/si_state.c
+++ b/src/gallium/drivers/radeonsi/si_state.c
@@ -4625,7 +4625,7 @@ static void si_apply_opaque_metadata(struct 
r600_common_screen *rscreen,
            md->metadata[0] != 0 &&
            md->metadata[1] == si_get_bo_metadata_word1(rscreen) &&
            G_008F28_COMPRESSION_EN(desc[6])) {
-               assert(rtex->dcc_offset == ((uint64_t)desc[7] << 8));
+               rtex->dcc_offset = (uint64_t)desc[7] << 8;
                return;
        }
 

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

Reply via email to