summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDr. Chat <arkolbed@gmail.com>2018-01-01 15:00:37 -0600
committerDr. Chat <arkolbed@gmail.com>2018-01-01 15:00:37 -0600
commitd512d4127fa12a710e5d1d6d8067fe050b3445e7 (patch)
tree282282d8f2592445913a62959c88897e32a04420 /src
parentc64916be94ebb106f60723f195f335820ca677ae (diff)
[SPIR-V] Fix the build.
Diffstat (limited to 'src')
-rw-r--r--src/xenia/gpu/spirv_shader_translator.cc13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/xenia/gpu/spirv_shader_translator.cc b/src/xenia/gpu/spirv_shader_translator.cc
index efdcf924e..f646f8920 100644
--- a/src/xenia/gpu/spirv_shader_translator.cc
+++ b/src/xenia/gpu/spirv_shader_translator.cc
@@ -1263,7 +1263,10 @@ void SpirvShaderTranslator::ProcessVertexFetchInstruction(
assert_unhandled_case(vertex_components);
}
- spv::Id vertex = 0;
+ auto vertex_ptr = vertex_binding_map_[instr.operands[1].storage_index]
+ [instr.attributes.offset];
+ assert_not_zero(vertex_ptr);
+ spv::Id vertex = b.createLoad(vertex_ptr);
switch (instr.attributes.data_format) {
case VertexFormat::k_8_8_8_8:
case VertexFormat::k_2_10_10_10:
@@ -1277,13 +1280,9 @@ void SpirvShaderTranslator::ProcessVertexFetchInstruction(
case VertexFormat::k_32_FLOAT:
case VertexFormat::k_32_32_FLOAT:
case VertexFormat::k_32_32_32_FLOAT:
- case VertexFormat::k_32_32_32_32_FLOAT:
+ case VertexFormat::k_32_32_32_32_FLOAT: {
// These are handled, for now.
- auto vertex_ptr = vertex_binding_map_[instr.operands[1].storage_index]
- [instr.attributes.offset];
- assert_not_zero(vertex_ptr);
- vertex = b.createLoad(vertex_ptr);
- break;
+ } break;
case VertexFormat::k_10_11_11: {
// This needs to be converted.