radeonsi: Do not disable DCC when we have it as a modifier.

Because other processes might be expecting DCC.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6176>
This commit is contained in:
Bas Nieuwenhuizen 2020-02-10 19:00:33 +01:00 committed by Marge Bot
parent c786150dfa
commit 23b59b6f87

View file

@ -380,7 +380,8 @@ static bool si_can_disable_dcc(struct si_texture *tex)
/* We can't disable DCC if it can be written by another process. */
return tex->surface.dcc_offset &&
(!tex->buffer.b.is_shared ||
!(tex->buffer.external_usage & PIPE_HANDLE_USAGE_FRAMEBUFFER_WRITE));
!(tex->buffer.external_usage & PIPE_HANDLE_USAGE_FRAMEBUFFER_WRITE)) &&
!ac_modifier_has_dcc(tex->surface.modifier);
}
static bool si_texture_discard_dcc(struct si_screen *sscreen, struct si_texture *tex)