mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-21 14:20:29 +01:00
radeonsi: modifiers can't disable DCC
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14266>
This commit is contained in:
parent
d382ceea2b
commit
6386b95f0f
1 changed files with 2 additions and 2 deletions
|
|
@ -198,8 +198,8 @@ static int si_init_surface(struct si_screen *sscreen, struct radeon_surf *surfac
|
|||
flags |= RADEON_SURF_SBUFFER;
|
||||
}
|
||||
|
||||
/* Disable DCC? */
|
||||
if (sscreen->info.chip_class >= GFX8) {
|
||||
/* Disable DCC? (it can't be disabled if modifiers are used) */
|
||||
if (sscreen->info.chip_class >= GFX8 && modifier == DRM_FORMAT_MOD_INVALID) {
|
||||
/* Global options that disable DCC. */
|
||||
if (ptex->flags & SI_RESOURCE_FLAG_DISABLE_DCC)
|
||||
flags |= RADEON_SURF_DISABLE_DCC;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue