radeonsi: remove a workaround for inexact *8_SNORM blits
authorMarek Olšák <marek.olsak@amd.com>
Fri, 24 Mar 2017 11:31:34 +0000 (12:31 +0100)
committerMarek Olšák <marek.olsak@amd.com>
Thu, 30 Mar 2017 14:09:39 +0000 (16:09 +0200)
All tests pass on Fiji now. This prevents DCC disablement due to
incompatible DCC formats due to the fallback.

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
Tested-by: Edmondo Tommasina <edmondo.tommasina@gmail.com>
src/gallium/drivers/radeonsi/si_blit.c

index a94804d6c25657f3a690a6760ab1c0108dd5b0a6..cb0b2d35822d364cdbf9b24dd534e389cea66638 100644 (file)
@@ -899,9 +899,7 @@ void si_resource_copy_region(struct pipe_context *ctx,
                src_box = &sbox;
 
                src_force_level = src_level;
-       } else if (!util_blitter_is_copy_supported(sctx->blitter, dst, src) ||
-                  /* also *8_SNORM has precision issues, use UNORM instead */
-                  util_format_is_snorm8(src->format)) {
+       } else if (!util_blitter_is_copy_supported(sctx->blitter, dst, src)) {
                if (util_format_is_subsampled_422(src->format)) {
                        src_templ.format = PIPE_FORMAT_R8G8B8A8_UINT;
                        dst_templ.format = PIPE_FORMAT_R8G8B8A8_UINT;