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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user