amd: use gfx_level instead of family_id to choose addrlib
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run

Since gfx11_7.family_id > gfx12.family_id, ensure
gfx11.7 uses gfx11's addrlib instead of gfx12's.

Reviewed-by: Marek Olšák <maraeo@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40866>
This commit is contained in:
Ganesh Belgur Ramachandra 2026-03-23 22:29:54 +00:00
parent 27e340c030
commit b860e0132f

View file

@ -3813,7 +3813,7 @@ int ac_compute_surface(struct ac_addrlib *addrlib, const struct radeon_info *inf
/* 0 offsets mean disabled. */
surf->meta_offset = surf->fmask_offset = surf->cmask_offset = surf->display_dcc_offset = 0;
if (info->family_id >= FAMILY_NV4) {
if (info->gfx_level >= GFX12) {
if (!gfx12_compute_surface(addrlib, info, config, mode, surf))
return ADDR_ERROR;