nouveau/drm-shim: set ram_user

this is required for nvk to create a heap. fixes zink+nvk+drm-shim:

run: ../src/gallium/drivers/zink/zink_screen.c:3371: zink_internal_create_screen: Assertion `i == ZINK_HEAP_HOST_VISIBLE_COHERENT_CACHED || i == ZINK_HEAP_DEVICE_LOCAL_LAZY || i == ZINK_HEAP_DEVICE_LOCAL_VISIBLE' failed.

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Reviewed-by: M Henning <drawoc@darkrefraction.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30136>
This commit is contained in:
Alyssa Rosenzweig 2024-07-11 14:10:21 -04:00 committed by Marge Bot
parent 6723128e94
commit 67e3b3fbfd

View file

@ -199,6 +199,9 @@ nouveau_ioctl_nvif(int fd, unsigned long request, void *arg)
struct nv_device_info_v0 *info = (void *)&mthd->mthd.data;
info->chipset = device_info.chip_id;
info->platform = NV_DEVICE_INFO_V0_PCIE;
/* make something up */
info->ram_user = 3ULL << 30;
break;
}
default: