diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2020-04-15 02:24:33 +0200 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2020-04-15 02:24:33 +0200 |
commit | fd6371eba73ba138f17bbeb70b3ada2946efb680 (patch) | |
tree | 1102a275c36c0fa30f017ad2b8e6e53f709efe28 /src | |
parent | Merge pull request #3660 from bunnei/friend-blocked-users (diff) | |
download | yuzu-fd6371eba73ba138f17bbeb70b3ada2946efb680.tar yuzu-fd6371eba73ba138f17bbeb70b3ada2946efb680.tar.gz yuzu-fd6371eba73ba138f17bbeb70b3ada2946efb680.tar.bz2 yuzu-fd6371eba73ba138f17bbeb70b3ada2946efb680.tar.lz yuzu-fd6371eba73ba138f17bbeb70b3ada2946efb680.tar.xz yuzu-fd6371eba73ba138f17bbeb70b3ada2946efb680.tar.zst yuzu-fd6371eba73ba138f17bbeb70b3ada2946efb680.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/video_core/renderer_opengl/gl_shader_decompiler.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp index 1f1f01313..59bbd1211 100644 --- a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp +++ b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp @@ -1821,13 +1821,15 @@ private: Expression HMergeH0(Operation operation) { const std::string dest = VisitOperand(operation, 0).AsUint(); const std::string src = VisitOperand(operation, 1).AsUint(); - return {fmt::format("bitfieldInsert({}, {}, 0, 16)", dest, src), Type::Uint}; + return {fmt::format("vec2(unpackHalf2x16({}).x, unpackHalf2x16({}).y)", src, dest), + Type::HalfFloat}; } Expression HMergeH1(Operation operation) { const std::string dest = VisitOperand(operation, 0).AsUint(); const std::string src = VisitOperand(operation, 1).AsUint(); - return {fmt::format("bitfieldInsert({}, {}, 16, 16)", dest, src), Type::Uint}; + return {fmt::format("vec2(unpackHalf2x16({}).x, unpackHalf2x16({}).y)", dest, src), + Type::HalfFloat}; } Expression HPack2(Operation operation) { |