summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar bunnei2019-04-09 21:23:24 -0400
committerGravatar GitHub2019-04-09 21:23:24 -0400
commited9dba89d32cf9867ebc67317dd0b33112f91ae9 (patch)
treeeb81dc41638862429a6a2ac62ff3949ddca09120
parentMerge pull request #2353 from lioncash/surface (diff)
parentRemove bounding in LD_C (diff)
downloadyuzu-ed9dba89d32cf9867ebc67317dd0b33112f91ae9.tar.gz
yuzu-ed9dba89d32cf9867ebc67317dd0b33112f91ae9.tar.xz
yuzu-ed9dba89d32cf9867ebc67317dd0b33112f91ae9.zip
Merge pull request #2375 from FernandoS27/fix-ldc
Remove unnecessary bounding in LD_C
-rw-r--r--src/video_core/renderer_opengl/gl_shader_decompiler.cpp3
1 files changed, 1 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 3ea08ef7b..28e490b3c 100644
--- a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp
+++ b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp
@@ -552,8 +552,7 @@ private:
552 } else if (std::holds_alternative<OperationNode>(*offset)) { 552 } else if (std::holds_alternative<OperationNode>(*offset)) {
553 // Indirect access 553 // Indirect access
554 const std::string final_offset = code.GenerateTemporary(); 554 const std::string final_offset = code.GenerateTemporary();
555 code.AddLine("uint " + final_offset + " = (ftou(" + Visit(offset) + ") / 4) & " + 555 code.AddLine("uint " + final_offset + " = (ftou(" + Visit(offset) + ") / 4);");
556 std::to_string(MAX_CONSTBUFFER_ELEMENTS - 1) + ';');
557 return fmt::format("{}[{} / 4][{} % 4]", GetConstBuffer(cbuf->GetIndex()), 556 return fmt::format("{}[{} / 4][{} % 4]", GetConstBuffer(cbuf->GetIndex()),
558 final_offset, final_offset); 557 final_offset, final_offset);
559 558