From 797c447f1cb4658c525ea69c376fd5b2a1686fc5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Mon, 20 Nov 2017 01:51:50 +0100 Subject: [PATCH] radeonsi: handle imported textures with DCC robustly MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- 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 fcf4928e65e..46c45eae99c 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; } -- 2.30.2