mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 06:48:06 +02:00
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:
parent
c786150dfa
commit
23b59b6f87
1 changed files with 2 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue