Mesa (master): radeonsi: only apply the SNORM blit workaround to *8_SNORM

Marek Olšák mareko at kemper.freedesktop.org
Fri Oct 23 22:03:24 UTC 2015


Module: Mesa
Branch: master
Commit: edf6a4537c5febbe38780819df30cbfffc74c329
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=edf6a4537c5febbe38780819df30cbfffc74c329

Author: Marek Olšák <marek.olsak at amd.com>
Date:   Thu Oct 22 23:36:11 2015 +0200

radeonsi: only apply the SNORM blit workaround to *8_SNORM

Like the comment says. This fixes DCC, which doesn't like blitting RG16
as RGBA8.

Reviewed-by: Michel Dänzer <michel.daenzer at amd.com>

---

 src/gallium/drivers/radeonsi/si_blit.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/drivers/radeonsi/si_blit.c b/src/gallium/drivers/radeonsi/si_blit.c
index 082ea85..aa526ee 100644
--- a/src/gallium/drivers/radeonsi/si_blit.c
+++ b/src/gallium/drivers/radeonsi/si_blit.c
@@ -536,7 +536,7 @@ void si_resource_copy_region(struct pipe_context *ctx,
 		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_snorm(src->format)) {
+		   util_format_is_snorm8(src->format)) {
 		if (util_format_is_subsampled_422(src->format)) {
 			src_templ.format = PIPE_FORMAT_R8G8B8A8_UINT;
 			dst_templ.format = PIPE_FORMAT_R8G8B8A8_UINT;




More information about the mesa-commit mailing list