From baf392463100c56fcd47afe367eb78cdabbf734b Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Tue, 19 Jul 2022 13:37:10 +0200 Subject: [PATCH] radv: do not lower color exports for FS that need an epilog MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When building the main FS with GPL we don't know the color export formats. Signed-off-by: Samuel Pitoiset Reviewed-by: Daniel Schürmann Reviewed-by: Timur Kristóf Part-of: --- src/amd/vulkan/radv_pipeline.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/amd/vulkan/radv_pipeline.c b/src/amd/vulkan/radv_pipeline.c index 2df56bdc0f5..285bf6dae72 100644 --- a/src/amd/vulkan/radv_pipeline.c +++ b/src/amd/vulkan/radv_pipeline.c @@ -3291,6 +3291,9 @@ radv_lower_vs_input(nir_shader *nir, const struct radv_physical_device *pdevice, static bool radv_lower_fs_output(nir_shader *nir, const struct radv_pipeline_key *pipeline_key) { + if (pipeline_key->ps.has_epilog) + return false; + nir_function_impl *impl = nir_shader_get_entrypoint(nir); bool progress = false;