[SPIR-V] Instruction predication

This commit is contained in:
Triang3l
2020-10-26 22:12:01 +03:00
parent 556c8de2ab
commit 1c83c8dcfa
3 changed files with 78 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
/**
******************************************************************************
* Xenia : Xbox 360 Emulator Research Project *
******************************************************************************
* Copyright 2020 Ben Vanik. All rights reserved. *
* Released under the BSD license - see LICENSE in the root for more details. *
******************************************************************************
*/
#include "xenia/gpu/spirv_shader_translator.h"
namespace xe {
namespace gpu {
void SpirvShaderTranslator::ProcessAluInstruction(
const ParsedAluInstruction& instr) {
if (instr.IsNop()) {
// Don't even disassemble or update predication.
return;
}
UpdateInstructionPredication(instr.is_predicated, instr.predicate_condition);
// TODO(Triang3l): Translate the ALU instruction.
}
} // namespace gpu
} // namespace xe