mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-10 22:49:00 +01:00
VideoCommon: Don't use indexed output for fbfetch
A nonzero index makes no sense, and Mesa doesn't like it when you supply an index
This commit is contained in:
parent
a50ab40a5f
commit
5949911a5a
@ -1000,10 +1000,15 @@ ShaderCode GeneratePixelShaderCode(APIType api_type, const ShaderHostConfig& hos
|
|||||||
else
|
else
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
out.Write("{} {} {} {};\n", "FRAGMENT_OUTPUT_LOCATION_INDEXED(0, 0)",
|
if (use_framebuffer_fetch)
|
||||||
use_framebuffer_fetch ? "FRAGMENT_INOUT" : "out",
|
{
|
||||||
uid_data->uint_output ? "uvec4" : "vec4",
|
out.Write("FRAGMENT_OUTPUT_LOCATION(0) FRAGMENT_INOUT vec4 real_ocol0;\n");
|
||||||
use_framebuffer_fetch ? "real_ocol0" : "ocol0");
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
out.Write("FRAGMENT_OUTPUT_LOCATION_INDEXED(0, 0) out {} ocol0;\n",
|
||||||
|
uid_data->uint_output ? "uvec4" : "vec4");
|
||||||
|
}
|
||||||
|
|
||||||
if (!uid_data->no_dual_src)
|
if (!uid_data->no_dual_src)
|
||||||
{
|
{
|
||||||
|
@ -370,10 +370,15 @@ ShaderCode GenPixelShader(APIType api_type, const ShaderHostConfig& host_config,
|
|||||||
else
|
else
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
out.Write("{} {} {} {};\n", "FRAGMENT_OUTPUT_LOCATION_INDEXED(0, 0)",
|
if (use_framebuffer_fetch)
|
||||||
use_framebuffer_fetch ? "FRAGMENT_INOUT" : "out",
|
{
|
||||||
uid_data->uint_output ? "uvec4" : "vec4",
|
out.Write("FRAGMENT_OUTPUT_LOCATION(0) FRAGMENT_INOUT vec4 real_ocol0;\n");
|
||||||
use_framebuffer_fetch ? "real_ocol0" : "ocol0");
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
out.Write("FRAGMENT_OUTPUT_LOCATION_INDEXED(0, 0) out {} ocol0;\n",
|
||||||
|
uid_data->uint_output ? "uvec4" : "vec4");
|
||||||
|
}
|
||||||
|
|
||||||
if (use_dual_source)
|
if (use_dual_source)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user