From 4d1b3caf8cc7a88d6f562f83ca8b1479b37b8644 Mon Sep 17 00:00:00 2001 From: Triang3l Date: Sat, 22 Sep 2018 13:36:04 +0300 Subject: [PATCH] [D3D12] DXBC: Fix max4 instruction length --- src/xenia/gpu/dxbc_shader_translator.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xenia/gpu/dxbc_shader_translator.cc b/src/xenia/gpu/dxbc_shader_translator.cc index df9eb62a6..78d1f738c 100644 --- a/src/xenia/gpu/dxbc_shader_translator.cc +++ b/src/xenia/gpu/dxbc_shader_translator.cc @@ -5653,7 +5653,7 @@ void DxbcShaderTranslator::ProcessVectorAluInstruction( // pv.xy = max(src0.xy, src0.zw) shader_code_.push_back(ENCODE_D3D10_SB_OPCODE_TYPE(D3D10_SB_OPCODE_MAX) | ENCODE_D3D10_SB_TOKENIZED_INSTRUCTION_LENGTH( - 3 + 2 * operand_length_sums[1])); + 3 + 2 * operand_length_sums[0])); shader_code_.push_back( EncodeVectorMaskedOperand(D3D10_SB_OPERAND_TYPE_TEMP, 0b0011, 1)); shader_code_.push_back(system_temp_pv_);