ShaderGen: Don't emit index qualifier when not using DSB

Fixes shader compile errors on Panfrost.
This commit is contained in:
Stenzek 2023-12-16 22:40:28 +10:00
parent e93fec49bb
commit 38777439c5
No known key found for this signature in database

View file

@ -573,7 +573,7 @@ void ShaderGen::DeclareFragmentEntryPoint(
if (m_use_glsl_binding_layout)
{
if (m_supports_dual_source_blend)
if (m_supports_dual_source_blend && num_color_outputs > 1)
{
for (u32 i = 0; i < num_color_outputs; i++)
{