radeonsi: handle incompatible DCC formats in resource_copy_region

Required because of later commits.

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
Tested-by: Edmondo Tommasina <edmondo.tommasina@gmail.com>
This commit is contained in:
Marek Olšák 2017-03-24 12:21:20 +01:00
parent b05b8587ae
commit 45a71d5de5

View file

@ -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,