diff --git a/Source/Core/VideoCommon/PixelShaderGen.cpp b/Source/Core/VideoCommon/PixelShaderGen.cpp index e34251e110..da648b3ba6 100644 --- a/Source/Core/VideoCommon/PixelShaderGen.cpp +++ b/Source/Core/VideoCommon/PixelShaderGen.cpp @@ -344,8 +344,9 @@ void ClearUnusedPixelShaderUidBits(APIType ApiType, const ShaderHostConfig& host pixel_shader_uid_data* uid_data = uid->GetUidData(); // OpenGL and Vulkan convert implicitly normalized color outputs to their uint representation. - // Therefore, it is not necessary to use a uint output on these backends. - if (ApiType != APIType::D3D) + // Therefore, it is not necessary to use a uint output on these backends. We also disable the + // uint output when logic op is not supported (i.e. driver/device does not support D3D11.1). + if (ApiType != APIType::D3D || !host_config.backend_logic_op) uid_data->uint_output = 0; } diff --git a/Source/Core/VideoCommon/UberShaderPixel.cpp b/Source/Core/VideoCommon/UberShaderPixel.cpp index 8eff68f14b..9c9630886a 100644 --- a/Source/Core/VideoCommon/UberShaderPixel.cpp +++ b/Source/Core/VideoCommon/UberShaderPixel.cpp @@ -35,8 +35,9 @@ void ClearUnusedPixelShaderUidBits(APIType ApiType, const ShaderHostConfig& host pixel_ubershader_uid_data* uid_data = uid->GetUidData(); // OpenGL and Vulkan convert implicitly normalized color outputs to their uint representation. - // Therefore, it is not necessary to use a uint output on these backends. - if (ApiType != APIType::D3D) + // Therefore, it is not necessary to use a uint output on these backends. We also disable the + // uint output when logic op is not supported (i.e. driver/device does not support D3D11.1). + if (ApiType != APIType::D3D || !host_config.backend_logic_op) uid_data->uint_output = 0; }