ac/surface: fix determination of gfx12_enable_dcc
For surfaces without a modifier, the surf_size check wasn't
necessary, but it was also invalid since surf_size is set later
(in gfx12_compute_miptree).
Since it's not required anyway, drop this check.
Fixes: 060d5dacfd ("ac: add gfx12 DCC shared code")
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31683>
This commit is contained in:
@@ -3266,9 +3266,8 @@ static bool gfx12_compute_surface(struct ac_addrlib *addrlib, const struct radeo
|
||||
(surf->flags & RADEON_SURF_Z_OR_SBUFFER ||
|
||||
config->info.samples > 1 ||
|
||||
((supports_display_dcc || !(surf->flags & RADEON_SURF_SCANOUT)) &&
|
||||
/* These two are not strictly necessary. */
|
||||
surf->u.gfx9.swizzle_mode != ADDR3_LINEAR &&
|
||||
surf->surf_size >= 4096)));
|
||||
/* This one is not strictly necessary. */
|
||||
surf->u.gfx9.swizzle_mode != ADDR3_LINEAR)));
|
||||
|
||||
surf->has_stencil = !!(surf->flags & RADEON_SURF_SBUFFER);
|
||||
surf->is_linear = surf->u.gfx9.swizzle_mode == ADDR3_LINEAR;
|
||||
|
||||
Reference in New Issue
Block a user