diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2018-12-05 05:23:04 +0100 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2018-12-05 05:23:04 +0100 |
commit | 370980fdc3eec4af8ccca94b3acee1a57abe59eb (patch) | |
tree | 05fc7025f06895f55016b57cd5df09d4d1c99dc8 /src/video_core/renderer_opengl/gl_shader_decompiler.cpp | |
parent | Merge pull request #1859 from heapo/lut_array_codegen (diff) | |
download | yuzu-370980fdc3eec4af8ccca94b3acee1a57abe59eb.tar yuzu-370980fdc3eec4af8ccca94b3acee1a57abe59eb.tar.gz yuzu-370980fdc3eec4af8ccca94b3acee1a57abe59eb.tar.bz2 yuzu-370980fdc3eec4af8ccca94b3acee1a57abe59eb.tar.lz yuzu-370980fdc3eec4af8ccca94b3acee1a57abe59eb.tar.xz yuzu-370980fdc3eec4af8ccca94b3acee1a57abe59eb.tar.zst yuzu-370980fdc3eec4af8ccca94b3acee1a57abe59eb.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/renderer_opengl/gl_shader_decompiler.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp index 8d68156bf..d3a5d2f12 100644 --- a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp +++ b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp @@ -2766,22 +2766,21 @@ private: const bool depth_compare = instr.texs.UsesMiscMode(Tegra::Shader::TextureMiscMode::DC); const auto process_mode = instr.texs.GetTextureProcessMode(); + UNIMPLEMENTED_IF_MSG(instr.texs.UsesMiscMode(Tegra::Shader::TextureMiscMode::NODEP), "NODEP is not implemented"); const auto scope = shader.Scope(); - const auto [coord, texture] = + auto [coord, texture] = GetTEXSCode(instr, texture_type, process_mode, depth_compare, is_array); shader.AddLine(coord); - if (!depth_compare) { - shader.AddLine("vec4 texture_tmp = " + texture + ';'); - - } else { - shader.AddLine("vec4 texture_tmp = vec4(" + texture + ");"); + if (depth_compare) { + texture = "vec4(" + texture + ')'; } + shader.AddLine("vec4 texture_tmp = " + texture + ';'); WriteTexsInstruction(instr, "texture_tmp"); break; |