diff options
author | Dominik Sliwa <dominik.sliwa@toradex.com> | 2017-01-09 17:35:46 +0100 |
---|---|---|
committer | Dominik Sliwa <dominik.sliwa@toradex.com> | 2017-01-11 21:59:33 +0100 |
commit | 6c22936df0c551961df61cc428e6590d2f8bbb6d (patch) | |
tree | 163ad22e51e402a02ac2fd98156f1db0f750d3a1 /recipes-graphics/mesa/mesa/0005-tegra-open-card1-instead-of-renderD128.patch | |
parent | d54c4ca13c2976671fb2e91b774ae1a94039715a (diff) |
apalis-tk1-mainline: Move GPU acceleration support to mesa
Instead of patching every app, let's patch mesa to pretend
that we have a normal GPU.
based on: github.com/Gnurou/mesa/commits/renderonly
Signed-off-by: Dominik Sliwa <dominik.sliwa@toradex.com>
Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Diffstat (limited to 'recipes-graphics/mesa/mesa/0005-tegra-open-card1-instead-of-renderD128.patch')
-rw-r--r-- | recipes-graphics/mesa/mesa/0005-tegra-open-card1-instead-of-renderD128.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/recipes-graphics/mesa/mesa/0005-tegra-open-card1-instead-of-renderD128.patch b/recipes-graphics/mesa/mesa/0005-tegra-open-card1-instead-of-renderD128.patch new file mode 100644 index 0000000..14a867a --- /dev/null +++ b/recipes-graphics/mesa/mesa/0005-tegra-open-card1-instead-of-renderD128.patch @@ -0,0 +1,29 @@ +From a97f868a806ab4f1aaab88c72d4b55bfb18cc3cc Mon Sep 17 00:00:00 2001 +From: Alexandre Courbot <acourbot@nvidia.com> +Date: Fri, 9 Dec 2016 17:04:16 +0900 +Subject: [PATCH 5/8] tegra: open card1 instead of renderD128 + +Mesa wants to perform a FLINK ioctl to share GPU buffers. This ioctl is +not valid on render-nodes. + +This fixes rendering with Weston, but GLX is still broken. +--- + src/gallium/winsys/tegra/drm/tegra_drm_winsys.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/gallium/winsys/tegra/drm/tegra_drm_winsys.c b/src/gallium/winsys/tegra/drm/tegra_drm_winsys.c +index 361370d..e213942 100644 +--- a/src/gallium/winsys/tegra/drm/tegra_drm_winsys.c ++++ b/src/gallium/winsys/tegra/drm/tegra_drm_winsys.c +@@ -10,7 +10,7 @@ + static struct pipe_screen * + tegra_create(struct renderonly *ro) + { +- int fd = open("/dev/dri/renderD128", O_RDWR | O_CLOEXEC); ++ int fd = open("/dev/dri/card1", O_RDWR | O_CLOEXEC); + + if (fd == -1) + return NULL; +-- +2.9.3 + |