mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-05-08 06:48:05 +02:00
glamor: Enable dma-buf on nvidia
Nvidia needs dma-buf for glamor acceleration to work when using the modesetting ddx driver. Signed-off-by: stefan11111 <stefan11111@shitposting.expert>
This commit is contained in:
parent
1726ce9399
commit
db9eefa82e
1 changed files with 2 additions and 0 deletions
|
|
@ -1317,6 +1317,8 @@ glamor_egl_init(ScrnInfoPtr scrn, int fd)
|
||||||
glamor_egl->dmabuf_capable = TRUE;
|
glamor_egl->dmabuf_capable = TRUE;
|
||||||
else if (strstr((const char *)renderer, "zink"))
|
else if (strstr((const char *)renderer, "zink"))
|
||||||
glamor_egl->dmabuf_capable = TRUE;
|
glamor_egl->dmabuf_capable = TRUE;
|
||||||
|
else if (strstr((const char *)renderer, "NVIDIA"))
|
||||||
|
glamor_egl->dmabuf_capable = TRUE;
|
||||||
else
|
else
|
||||||
glamor_egl->dmabuf_capable = FALSE;
|
glamor_egl->dmabuf_capable = FALSE;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue