diff options
author | Marek Olšák <[email protected]> | 2017-03-24 12:21:20 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2017-03-30 16:09:39 +0200 |
commit | 45a71d5de588926dc682f9d0167b08b8d061d8da (patch) | |
tree | 4796a0238a7d03d2fd760f266c23eff498a4a7e5 /src/gallium/drivers/radeonsi/si_blit.c | |
parent | b05b8587ae6711a8790d4a4f5956995577184e00 (diff) |
radeonsi: handle incompatible DCC formats in resource_copy_region
Required because of later commits.
Reviewed-by: Nicolai Hähnle <[email protected]>
Tested-by: Edmondo Tommasina <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_blit.c')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_blit.c | 5 |
1 files changed, 5 insertions, 0 deletions
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, |