From 38094ac81955170816b776202299c95ad971fe57 Mon Sep 17 00:00:00 2001 From: "Dr. Chat" Date: Wed, 2 Mar 2016 21:16:38 -0600 Subject: [PATCH] Updated local clang-format. --- src/xenia/gpu/shader_translator.cc | 4 ++-- src/xenia/gpu/spirv_shader_translator.cc | 10 ++++------ 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/src/xenia/gpu/shader_translator.cc b/src/xenia/gpu/shader_translator.cc index a89be80f5..6e8b69cea 100644 --- a/src/xenia/gpu/shader_translator.cc +++ b/src/xenia/gpu/shader_translator.cc @@ -672,11 +672,11 @@ void ShaderTranslator::TranslateExecInstructions( static_cast(ucode_dwords_[instr_offset * 3] & 0x1F); if (fetch_opcode == FetchOpcode::kVertexFetch) { auto& op = *reinterpret_cast( - ucode_dwords_ + instr_offset * 3); + ucode_dwords_ + instr_offset * 3); TranslateVertexFetchInstruction(op); } else { auto& op = *reinterpret_cast( - ucode_dwords_ + instr_offset * 3); + ucode_dwords_ + instr_offset * 3); TranslateTextureFetchInstruction(op); } } else { diff --git a/src/xenia/gpu/spirv_shader_translator.cc b/src/xenia/gpu/spirv_shader_translator.cc index 600e3fe56..57af04e24 100644 --- a/src/xenia/gpu/spirv_shader_translator.cc +++ b/src/xenia/gpu/spirv_shader_translator.cc @@ -237,9 +237,8 @@ void SpirvShaderTranslator::StartTranslation() { b.addDecoration(attrib_var, spv::Decoration::DecorationLocation, attrib.attrib_index); - vertex_binding_map_[binding.fetch_constant][attrib.fetch_instr - .attributes.offset] = - attrib_var; + vertex_binding_map_[binding.fetch_constant] + [attrib.fetch_instr.attributes.offset] = attrib_var; } } @@ -636,9 +635,8 @@ void SpirvShaderTranslator::ProcessVertexFetchInstruction( // Operand 0 is the index // Operand 1 is the binding // TODO: Indexed fetch - auto vertex_ptr = - vertex_binding_map_[instr.operands[1].storage_index][instr.attributes - .offset]; + auto vertex_ptr = vertex_binding_map_[instr.operands[1].storage_index] + [instr.attributes.offset]; assert_not_zero(vertex_ptr); auto vertex = b.createLoad(vertex_ptr);