mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 11:28:05 +02:00
amd: use gfx_level instead of family_id to choose addrlib
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:
parent
27e340c030
commit
b860e0132f
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue