[SPIR-V] Result storing

This commit is contained in:
Triang3l
2020-10-29 22:07:02 +03:00
parent 4dba2d8d89
commit 738cb0b847
4 changed files with 364 additions and 26 deletions

View File

@@ -34,9 +34,12 @@ void SpirvShaderTranslator::ProcessAluInstruction(
// Whether the instruction has changed the predicate, and it needs to be
// checked again later.
bool predicate_written_vector = false;
ProcessVectorAluOperation(instr, predicate_written_vector);
spv::Id vector_result =
ProcessVectorAluOperation(instr, predicate_written_vector);
// TODO(Triang3l): Process the ALU scalar operation.
StoreResult(instr.vector_and_constant_result, vector_result);
if (predicate_written_vector) {
cf_exec_predicate_written_ = true;
CloseInstructionPredication();