Mesa (master): radeonsi: fix interpolateAt opcodes for .zw components

Marek Olšák mareko at kemper.freedesktop.org
Wed Oct 5 19:04:23 UTC 2016


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

Author: Marek Olšák <marek.olsak at amd.com>
Date:   Tue Oct  4 22:33:03 2016 +0200

radeonsi: fix interpolateAt opcodes for .zw components

Not returning garbage in .zw seems pretty important.

This fixes:
GL45-CTS.shader_multisample_interpolation.render.interpolate_at_*_check.*

Cc: 11.2 12.0 <mesa-stable at lists.freedesktop.org>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>

---

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

diff --git a/src/gallium/drivers/radeonsi/si_shader.c b/src/gallium/drivers/radeonsi/si_shader.c
index bb9131b..ff51c8b 100644
--- a/src/gallium/drivers/radeonsi/si_shader.c
+++ b/src/gallium/drivers/radeonsi/si_shader.c
@@ -5208,7 +5208,7 @@ static void build_interp_intrinsic(const struct lp_build_tgsi_action *action,
 	}
 
 	intr_name = interp_param ? "llvm.SI.fs.interp" : "llvm.SI.fs.constant";
-	for (chan = 0; chan < 2; chan++) {
+	for (chan = 0; chan < 4; chan++) {
 		LLVMValueRef args[4];
 		LLVMValueRef llvm_chan;
 		unsigned schan;




More information about the mesa-commit mailing list