radv: do not try to remove color exports for FS that need an epilog
The color format would be zero and all exports would be removed. 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:
committed by
Marge Bot
parent
b5e25e3a30
commit
8c4e33cdab
@@ -2572,7 +2572,10 @@ radv_pipeline_link_fs(struct radv_pipeline_stage *fs_stage,
|
||||
{
|
||||
assert(fs_stage->nir->info.stage == MESA_SHADER_FRAGMENT);
|
||||
|
||||
radv_remove_color_exports(pipeline_key, fs_stage->nir);
|
||||
if (!pipeline_key->ps.has_epilog) {
|
||||
/* Only remove color exports when the format is known. */
|
||||
radv_remove_color_exports(pipeline_key, fs_stage->nir);
|
||||
}
|
||||
|
||||
nir_foreach_shader_out_variable(var, fs_stage->nir) {
|
||||
var->data.driver_location = var->data.location + var->data.index;
|
||||
|
||||
Reference in New Issue
Block a user