summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2015-05-07 00:37:12 +0200
committerbunnei <bunneidev@gmail.com>2015-05-10 04:12:34 +0200
commit692a74c09ee84009bc0d2553be559c08ffbe3a9c (patch)
treecb1c52f2aee90516c4676ae275ba2000a872c15d /src
parentvertex_shader: Implement MADI instruction. (diff)
downloadyuzu-692a74c09ee84009bc0d2553be559c08ffbe3a9c.tar
yuzu-692a74c09ee84009bc0d2553be559c08ffbe3a9c.tar.gz
yuzu-692a74c09ee84009bc0d2553be559c08ffbe3a9c.tar.bz2
yuzu-692a74c09ee84009bc0d2553be559c08ffbe3a9c.tar.lz
yuzu-692a74c09ee84009bc0d2553be559c08ffbe3a9c.tar.xz
yuzu-692a74c09ee84009bc0d2553be559c08ffbe3a9c.tar.zst
yuzu-692a74c09ee84009bc0d2553be559c08ffbe3a9c.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 89d663a15..885b7de59 100644
--- a/src/video_core/vertex_shader.cpp
+++ b/src/video_core/vertex_shader.cpp
@@ -235,6 +235,15 @@ static void ProcessShaderCode(VertexShaderState& state) {
break;
}
+ case OpCode::Id::FLR:
+ for (int i = 0; i < 4; ++i) {
+ if (!swizzle.DestComponentEnabled(i))
+ continue;
+
+ dest[i] = float24::FromFloat32(std::floor(src1[i].ToFloat32()));
+ }
+ break;
+
case OpCode::Id::MAX:
for (int i = 0; i < 4; ++i) {
if (!swizzle.DestComponentEnabled(i))