radv: Fix noop FS not getting constructed for GPL pipelines.

The condition was inverted, causing compilation to be actually skipped when
a noop FS is used and straight emitting the pipeline from the default
initialized struct.

Fixes: 3eb97b9d33 ("radv: skip compilation when possible with GPL fast-linking")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21166>
This commit is contained in:
Tatsuyuki Ishi
2023-02-07 23:57:57 +09:00
committed by Marge Bot
parent e5600d5257
commit c6ebd2de71

View File

@@ -3473,7 +3473,7 @@ radv_skip_graphics_pipeline_compile(const struct radv_graphics_pipeline *pipelin
/* Do not skip when the linked pipeline needs a noop FS. */
if ((lib_flags & VK_GRAPHICS_PIPELINE_LIBRARY_FRAGMENT_SHADER_BIT_EXT) &&
pipeline->active_stages & VK_SHADER_STAGE_FRAGMENT_BIT)
!(pipeline->active_stages & VK_SHADER_STAGE_FRAGMENT_BIT))
return false;
/* Do not skip when the PS epilog needs to be compiled. */