From e39bb048758e45f3fbe6eec72dce9a7ae4789ae7 Mon Sep 17 00:00:00 2001 From: Triang3l Date: Mon, 29 Oct 2018 10:24:49 +0300 Subject: [PATCH] [D3D12] ROV: Fix min/max blending operation --- src/xenia/gpu/dxbc_shader_translator.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/xenia/gpu/dxbc_shader_translator.cc b/src/xenia/gpu/dxbc_shader_translator.cc index f62e8ad59..e3627d94f 100644 --- a/src/xenia/gpu/dxbc_shader_translator.cc +++ b/src/xenia/gpu/dxbc_shader_translator.cc @@ -3165,12 +3165,12 @@ void DxbcShaderTranslator::CompletePixelShader_WriteToROV_Blend( shader_code_.push_back( EncodeVectorMaskedOperand(D3D10_SB_OPERAND_TYPE_TEMP, 0b1111, 1)); // In min, writing to the intermediate result register because max still - // needs to original source color. + // needs the original source color. // In max, doing the final output. shader_code_.push_back(i ? src_color_and_output_temp : src_factor_and_result_temp); shader_code_.push_back(EncodeVectorSwizzledOperand( - D3D10_SB_OPERAND_TYPE_TEMP, i ? 0b01000000 : 0b11101010, 1)); + D3D10_SB_OPERAND_TYPE_TEMP, i ? 0b11101010 : 0b01000000, 1)); shader_code_.push_back(scale_temp); shader_code_.push_back(EncodeVectorSwizzledOperand( D3D10_SB_OPERAND_TYPE_TEMP, kSwizzleXYZW, 1));