mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
radeonsi/gfx12: fix AMD_DEBUG=nodcc not working
surface->modifier is always 0 here. We should use the parameter instead.
Fixes: 3d05d86d88 (radeonsi/gfx12: add DCC)
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31910>
This commit is contained in:
parent
755fb7a262
commit
5d09374ffe
1 changed files with 1 additions and 1 deletions
|
|
@ -238,7 +238,7 @@ static int si_init_surface(struct si_screen *sscreen, struct radeon_surf *surfac
|
|||
surface->u.gfx9.color.dcc_data_format = ac_get_cb_format(sscreen->info.gfx_level, format);
|
||||
}
|
||||
|
||||
if (surface->modifier == DRM_FORMAT_MOD_INVALID &&
|
||||
if (modifier == DRM_FORMAT_MOD_INVALID &&
|
||||
(ptex->bind & PIPE_BIND_CONST_BW ||
|
||||
ptex->bind & PIPE_BIND_PROTECTED ||
|
||||
sscreen->debug_flags & DBG(NO_DCC) ||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue