diff options
| author | 2018-11-05 14:07:08 -0400 | |
|---|---|---|
| committer | 2018-11-07 17:04:30 -0400 | |
| commit | ad2f47b57989dd39be5fa3ec17086640dadae87e (patch) | |
| tree | 36a4b791db2ba4935db70d9b9a183c09f9c19ed4 /src | |
| parent | Merge pull request #1630 from bunnei/fix-mapbufferex (diff) | |
| download | yuzu-ad2f47b57989dd39be5fa3ec17086640dadae87e.tar.gz yuzu-ad2f47b57989dd39be5fa3ec17086640dadae87e.tar.xz yuzu-ad2f47b57989dd39be5fa3ec17086640dadae87e.zip | |
Implement 3 coordinate array in TEXS instruction
Diffstat (limited to 'src')
| -rw-r--r-- | src/video_core/renderer_opengl/gl_shader_decompiler.cpp | 12 |
1 files changed, 6 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 09b003c59..98a983d2d 100644 --- a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp +++ b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp | |||
| @@ -2742,12 +2742,12 @@ private: | |||
| 2742 | } | 2742 | } |
| 2743 | case 3: { | 2743 | case 3: { |
| 2744 | if (is_array) { | 2744 | if (is_array) { |
| 2745 | UNIMPLEMENTED_MSG("3-coordinate arrays not fully implemented"); | 2745 | const std::string index = regs.GetRegisterAsInteger(instr.gpr8); |
| 2746 | const std::string x = regs.GetRegisterAsFloat(instr.gpr8); | 2746 | const std::string x = regs.GetRegisterAsFloat(instr.gpr8.Value() + 1); |
| 2747 | const std::string y = regs.GetRegisterAsFloat(instr.gpr20); | 2747 | const std::string y = regs.GetRegisterAsFloat(instr.gpr8.Value() + 2); |
| 2748 | coord = "vec2 coords = vec2(" + x + ", " + y + ");"; | 2748 | const std::string z = regs.GetRegisterAsFloat(instr.gpr20); |
| 2749 | texture_type = Tegra::Shader::TextureType::Texture2D; | 2749 | coord = |
| 2750 | is_array = false; | 2750 | "vec4 coords = vec4(" + x + ", " + y + ", " + z + ", " + index + ");"; |
| 2751 | } else { | 2751 | } else { |
| 2752 | const std::string x = regs.GetRegisterAsFloat(instr.gpr8); | 2752 | const std::string x = regs.GetRegisterAsFloat(instr.gpr8); |
| 2753 | const std::string y = regs.GetRegisterAsFloat(instr.gpr8.Value() + 1); | 2753 | const std::string y = regs.GetRegisterAsFloat(instr.gpr8.Value() + 1); |