nvk/nvkmd: Check the correct flag for the Kepler GART workaround

Fixes: 1db57bb414 ("nvk/nvkmd: Rework memory placement flags")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34495>
This commit is contained in:
Faith Ekstrand 2025-04-10 10:47:35 -05:00 committed by Marge Bot
parent 985f5e0875
commit 5c81b3546f

View file

@ -107,7 +107,7 @@ nvkmd_nouveau_alloc_tiled_mem(struct nvkmd_dev *_dev,
* should but they don't today. Force everything that may be mapped to
* use GART for now.
*/
if (dev_info->chipset < 0x110 && (flags & NOUVEAU_WS_BO_MAP)) {
if (dev_info->chipset < 0x110 && (flags & NVKMD_MEM_CAN_MAP)) {
assert(domains & NOUVEAU_WS_BO_GART);
domains = NOUVEAU_WS_BO_GART;
}