Browse Source
Merge pull request #2375 from FernandoS27/fix-ldc
Remove unnecessary bounding in LD_C
pull/15/merge
bunnei
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
2 deletions
-
src/video_core/renderer_opengl/gl_shader_decompiler.cpp
|
|
|
@ -552,8 +552,7 @@ private: |
|
|
|
} else if (std::holds_alternative<OperationNode>(*offset)) { |
|
|
|
// Indirect access
|
|
|
|
const std::string final_offset = code.GenerateTemporary(); |
|
|
|
code.AddLine("uint " + final_offset + " = (ftou(" + Visit(offset) + ") / 4) & " + |
|
|
|
std::to_string(MAX_CONSTBUFFER_ELEMENTS - 1) + ';'); |
|
|
|
code.AddLine("uint " + final_offset + " = (ftou(" + Visit(offset) + ") / 4);"); |
|
|
|
return fmt::format("{}[{} / 4][{} % 4]", GetConstBuffer(cbuf->GetIndex()), |
|
|
|
final_offset, final_offset); |
|
|
|
|
|
|
|
|