Module: Mesa Branch: main Commit: 57d6722d797741675ec2dde101128276d11cde03 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=57d6722d797741675ec2dde101128276d11cde03
Author: Faith Ekstrand <[email protected]> Date: Fri Nov 3 13:04:23 2023 -0500 nvk: Force all mappable BOs into GART pre-Maxwell Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26035> --- src/nouveau/winsys/nouveau_bo.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/nouveau/winsys/nouveau_bo.c b/src/nouveau/winsys/nouveau_bo.c index 0d4cae9a0cf..39cf2897cf2 100644 --- a/src/nouveau/winsys/nouveau_bo.c +++ b/src/nouveau/winsys/nouveau_bo.c @@ -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;
