summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2015-05-23 05:13:09 +0200
committerbunnei <bunneidev@gmail.com>2015-05-31 07:27:49 +0200
commit875bd2976689a87930e0a068b903a8da38dcd3e3 (patch)
tree56e604a1ca4d9d7344fd2466743ee0d3d83d2ee6 /src
parentMerge pull request #830 from SeannyM/qt-noborder (diff)
downloadyuzu-875bd2976689a87930e0a068b903a8da38dcd3e3.tar
yuzu-875bd2976689a87930e0a068b903a8da38dcd3e3.tar.gz
yuzu-875bd2976689a87930e0a068b903a8da38dcd3e3.tar.bz2
yuzu-875bd2976689a87930e0a068b903a8da38dcd3e3.tar.lz
yuzu-875bd2976689a87930e0a068b903a8da38dcd3e3.tar.xz
yuzu-875bd2976689a87930e0a068b903a8da38dcd3e3.tar.zst
yuzu-875bd2976689a87930e0a068b903a8da38dcd3e3.zip
Diffstat (limited to 'src')
-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 4ebb42429..582712bde 100644
--- a/src/video_core/vertex_shader.cpp
+++ b/src/video_core/vertex_shader.cpp
@@ -208,6 +208,15 @@ static void ProcessShaderCode(VertexShaderState& state) {
}
break;
+ case OpCode::Id::MIN:
+ for (int i = 0; i < 4; ++i) {
+ if (!swizzle.DestComponentEnabled(i))
+ continue;
+
+ dest[i] = std::min(src1[i], src2[i]);
+ }
+ break;
+
case OpCode::Id::DP3:
case OpCode::Id::DP4:
{