mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 07:38:10 +02:00
ac/surface: fix version check for gfx12 DCC
It's 58, not 59. The original 58 feature was not
ready so it was dropped.
Fixes: 0bb83a4060 ("ac/surface: finish display DCC for gfx12")
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30212>
This commit is contained in:
parent
2b99906e5b
commit
dec4603a21
1 changed files with 1 additions and 1 deletions
|
|
@ -3237,7 +3237,7 @@ static bool gfx12_compute_surface(struct ac_addrlib *addrlib, const struct radeo
|
|||
surf->u.gfx9.uses_custom_pitch = true;
|
||||
}
|
||||
|
||||
bool supports_display_dcc = info->drm_minor >= 59;
|
||||
bool supports_display_dcc = info->drm_minor >= 58;
|
||||
surf->u.gfx9.swizzle_mode = AddrSurfInfoIn.swizzleMode;
|
||||
surf->u.gfx9.resource_type = (enum gfx9_resource_type)AddrSurfInfoIn.resourceType;
|
||||
surf->u.gfx9.gfx12_enable_dcc = ac_modifier_has_dcc(surf->modifier) ||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue