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 <samuel.pitoiset@gmail.com>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Reviewed-by: Timur Kristóf <timur.kristof@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18255>
This commit is contained in:
Samuel Pitoiset
2022-07-19 13:37:10 +02:00
committed by Marge Bot
parent a14354cf21
commit baf3924631

View File

@@ -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;