mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-18 01:50:40 +01:00
ac/surface: don't validate DCC settings if DCC isn't possible
Cc: mesa-stable Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13550>
This commit is contained in:
parent
bc6d22b920
commit
dbf602a6b3
1 changed files with 3 additions and 1 deletions
|
|
@ -2304,7 +2304,9 @@ static int gfx9_compute_surface(struct ac_addrlib *addrlib, const struct radeon_
|
|||
!(surf->flags & (RADEON_SURF_DISABLE_DCC | RADEON_SURF_FORCE_SWIZZLE_MODE |
|
||||
RADEON_SURF_FORCE_MICRO_TILE_MODE)) &&
|
||||
(surf->modifier == DRM_FORMAT_MOD_INVALID ||
|
||||
ac_modifier_has_dcc(surf->modifier))) {
|
||||
ac_modifier_has_dcc(surf->modifier)) &&
|
||||
is_dcc_supported_by_DCN(info, config, surf, surf->u.gfx9.color.dcc.rb_aligned,
|
||||
surf->u.gfx9.color.dcc.pipe_aligned)) {
|
||||
/* Validate that DCC is enabled if DCN can do it. */
|
||||
if ((info->use_display_dcc_unaligned || info->use_display_dcc_with_retile_blit) &&
|
||||
AddrSurfInfoIn.flags.display && surf->bpe == 4) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue