diff options
author | Marek Olšák <[email protected]> | 2016-10-04 22:33:03 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2016-10-05 21:03:23 +0200 |
commit | 1b37e5541c7d74c50124e5220936bd4b0234df6d (patch) | |
tree | e351dd2c23332595d991f7059832656f565676eb /src | |
parent | 300a8221e92b91c1c759cdd331052a53506d6e93 (diff) |
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 <[email protected]>
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_shader.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeonsi/si_shader.c b/src/gallium/drivers/radeonsi/si_shader.c index bb9131b9baf..ff51c8bd799 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; |