mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 20:28:04 +02:00
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:
parent
6723128e94
commit
67e3b3fbfd
1 changed files with 3 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue