From 45a71d5de588926dc682f9d0167b08b8d061d8da Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Fri, 24 Mar 2017 12:21:20 +0100 Subject: [PATCH] radeonsi: handle incompatible DCC formats in resource_copy_region MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Required because of later commits. Reviewed-by: Nicolai Hähnle Tested-by: Edmondo Tommasina --- src/gallium/drivers/radeonsi/si_blit.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/gallium/drivers/radeonsi/si_blit.c b/src/gallium/drivers/radeonsi/si_blit.c index cb0b2d35822..864c5be58c7 100644 --- a/src/gallium/drivers/radeonsi/si_blit.c +++ b/src/gallium/drivers/radeonsi/si_blit.c @@ -946,6 +946,11 @@ void si_resource_copy_region(struct pipe_context *ctx, } } + vi_dcc_disable_if_incompatible_format(&sctx->b, dst, dst_level, + dst_templ.format); + vi_dcc_disable_if_incompatible_format(&sctx->b, src, src_level, + src_templ.format); + /* Initialize the surface. */ dst_view = r600_create_surface_custom(ctx, dst, &dst_templ, dst_width0, dst_height0, -- 2.30.2