From 637dca680ccc53a2a7183917451c356e71117894 Mon Sep 17 00:00:00 2001 From: iwubcode Date: Sat, 6 Aug 2022 16:04:05 -0500 Subject: [PATCH] VideoCommon: update ubershader pixel to not enforce d3d when writing color output that has been defined as uints --- Source/Core/VideoCommon/UberShaderPixel.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Source/Core/VideoCommon/UberShaderPixel.cpp b/Source/Core/VideoCommon/UberShaderPixel.cpp index 22708f3d66..8e062ad98e 100644 --- a/Source/Core/VideoCommon/UberShaderPixel.cpp +++ b/Source/Core/VideoCommon/UberShaderPixel.cpp @@ -1092,8 +1092,9 @@ ShaderCode GenPixelShader(APIType api_type, const ShaderHostConfig& host_config, " }}\n"); } - // D3D requires that the shader outputs be uint when writing to a uint render target for logic op. - if (api_type == APIType::D3D && uid_data->uint_output) + // Some backends require that the shader outputs be uint when writing to a uint render target for + // logic op. + if (uid_data->uint_output) { out.Write(" if (bpmem_rgba6_format)\n" " ocol0 = uint4(TevResult & 0xFC);\n"