nvk: Force all mappable BOs into GART pre-Maxwell

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26035>
This commit is contained in:
Faith Ekstrand
2023-11-03 13:04:23 -05:00
committed by Marge Bot
parent 5e9dcffffd
commit 57d6722d79
+9
View File
@@ -172,8 +172,17 @@ nouveau_ws_bo_new_tiled(struct nouveau_ws_device *dev,
req.info.domain = 0;
/* TODO:
*
* VRAM maps on Kepler appear to be broken and we don't really know why.
* My NVIDIA contact doesn't remember them not working so they probably
* should but they don't today. Force everything that may be mapped to
* use GART for now.
*/
if (flags & NOUVEAU_WS_BO_GART)
req.info.domain |= NOUVEAU_GEM_DOMAIN_GART;
else if (dev->info.chipset < 0x110 && (flags & NOUVEAU_WS_BO_MAP))
req.info.domain |= NOUVEAU_GEM_DOMAIN_GART;
else
req.info.domain |= dev->local_mem_domain;