Module: Mesa Branch: main Commit: baf392463100c56fcd47afe367eb78cdabbf734b URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=baf392463100c56fcd47afe367eb78cdabbf734b
Author: Samuel Pitoiset <[email protected]> Date: Tue Jul 19 13:37:10 2022 +0200 radv: do not lower color exports for FS that need an epilog When building the main FS with GPL we don't know the color export formats. Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Daniel Schürmann <[email protected]> Reviewed-by: Timur Kristóf <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18255> --- 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;
