summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTony Wasserka <NeoBrainX@gmail.com>2014-12-13 21:22:55 +0100
committerTony Wasserka <NeoBrainX@gmail.com>2014-12-20 18:06:55 +0100
commitcd163fb59ae2922d33aa931f51ef5d116c0adc3f (patch)
tree4a3b18a64e55d95cdc2218734bd024fa06ad3737
parentPica: Add support for boolean uniforms. (diff)
downloadyuzu-cd163fb59ae2922d33aa931f51ef5d116c0adc3f.tar
yuzu-cd163fb59ae2922d33aa931f51ef5d116c0adc3f.tar.gz
yuzu-cd163fb59ae2922d33aa931f51ef5d116c0adc3f.tar.bz2
yuzu-cd163fb59ae2922d33aa931f51ef5d116c0adc3f.tar.lz
yuzu-cd163fb59ae2922d33aa931f51ef5d116c0adc3f.tar.xz
yuzu-cd163fb59ae2922d33aa931f51ef5d116c0adc3f.tar.zst
yuzu-cd163fb59ae2922d33aa931f51ef5d116c0adc3f.zip
-rw-r--r--src/video_core/vertex_shader.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/video_core/vertex_shader.cpp b/src/video_core/vertex_shader.cpp
index fbec1bcc8..742e5a9f2 100644
--- a/src/video_core/vertex_shader.cpp
+++ b/src/video_core/vertex_shader.cpp
@@ -197,6 +197,15 @@ static void ProcessShaderCode(VertexShaderState& state) {
break;
}
+ case Instruction::OpCode::MAX:
+ for (int i = 0; i < 4; ++i) {
+ if (!swizzle.DestComponentEnabled(i))
+ continue;
+
+ dest[i] = std::max(src1[i], src2[i]);
+ }
+ break;
+
case Instruction::OpCode::DP3:
case Instruction::OpCode::DP4:
{