mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 19:30:11 +01:00
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:
parent
b5e25e3a30
commit
8c4e33cdab
1 changed files with 4 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue