summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/UberShaderPixel.cpp
diff options
context:
space:
mode:
authortakayhan-AMD <123373764+takayhan-AMD@users.noreply.github.com>2023-08-12 11:16:25 +0200
committerOatmealDome <julian@oatmealdome.me>2023-08-15 23:58:29 -0400
commitb969282b72f1e5267cf4e9af4e6612cb948b2bff (patch)
treeeb0b8e1dfc1015dfd4b690cd4d3491228182fa9e /Source/Core/VideoCommon/UberShaderPixel.cpp
parenta10d768c636baa360de344646811555e7a66e8e5 (diff)
Remove out-dated hack of AMD driver issue WRT dual-source blending output index.
Diffstat (limited to 'Source/Core/VideoCommon/UberShaderPixel.cpp')
-rw-r--r--Source/Core/VideoCommon/UberShaderPixel.cpp11
1 files changed, 2 insertions, 9 deletions
diff --git a/Source/Core/VideoCommon/UberShaderPixel.cpp b/Source/Core/VideoCommon/UberShaderPixel.cpp
index 0bf4b3072c..f54e42bf60 100644
--- a/Source/Core/VideoCommon/UberShaderPixel.cpp
+++ b/Source/Core/VideoCommon/UberShaderPixel.cpp
@@ -106,21 +106,14 @@ ShaderCode GenPixelShader(APIType api_type, const ShaderHostConfig& host_config,
else
#endif
{
- bool has_broken_decoration =
- DriverDetails::HasBug(DriverDetails::BUG_BROKEN_FRAGMENT_SHADER_INDEX_DECORATION);
-
- out.Write("{} {} {} {};\n",
- has_broken_decoration ? "FRAGMENT_OUTPUT_LOCATION(0)" :
- "FRAGMENT_OUTPUT_LOCATION_INDEXED(0, 0)",
+ out.Write("{} {} {} {};\n", "FRAGMENT_OUTPUT_LOCATION_INDEXED(0, 0)",
use_framebuffer_fetch ? "FRAGMENT_INOUT" : "out",
uid_data->uint_output ? "uvec4" : "vec4",
use_framebuffer_fetch ? "real_ocol0" : "ocol0");
if (use_dual_source)
{
- out.Write("{} out {} ocol1;\n",
- has_broken_decoration ? "FRAGMENT_OUTPUT_LOCATION(1)" :
- "FRAGMENT_OUTPUT_LOCATION_INDEXED(0, 1)",
+ out.Write("{} out {} ocol1;\n", "FRAGMENT_OUTPUT_LOCATION_INDEXED(0, 1)",
uid_data->uint_output ? "uvec4" : "vec4");
}
}