From 083f936bbcb4f46153616c68feaeeee471c718da Mon Sep 17 00:00:00 2001 From: Ben Vanik Date: Sun, 6 Dec 2015 00:53:25 -0800 Subject: [PATCH] aL placeholder until loops are implemented. --- src/xenia/gpu/glsl_shader_translator.cc | 2 ++ src/xenia/gpu/shader_translator_disasm.cc | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/xenia/gpu/glsl_shader_translator.cc b/src/xenia/gpu/glsl_shader_translator.cc index c80633ae7..479ff79c3 100644 --- a/src/xenia/gpu/glsl_shader_translator.cc +++ b/src/xenia/gpu/glsl_shader_translator.cc @@ -282,6 +282,8 @@ void main() { EmitSource(" bool p0 = false;\n"); // Address register when using absolute addressing. EmitSource(" int a0 = 0;\n"); + // TODO(benvanik): remove when loops are implemented. + EmitSource(" int aL = 0;\n"); // Hack! // Temps for source register values. EmitSource(" vec4 src0;\n"); EmitSource(" vec4 src1;\n"); diff --git a/src/xenia/gpu/shader_translator_disasm.cc b/src/xenia/gpu/shader_translator_disasm.cc index b0d33d641..fb734bd44 100644 --- a/src/xenia/gpu/shader_translator_disasm.cc +++ b/src/xenia/gpu/shader_translator_disasm.cc @@ -162,6 +162,8 @@ void ParsedLoopStartInstruction::Disassemble(StringBuffer* out) const { void ParsedLoopEndInstruction::Disassemble(StringBuffer* out) const { if (is_predicated_break) { out->Append(predicate_condition ? " (p0) " : "(!p0) "); + } else { + out->Append(" "); } out->AppendFormat("endloop i%u, L%u", loop_constant_index, loop_body_address); out->Append('\n');