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/0008-remove-dependency-on-libdrm_tegra.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/0008-remove-dependency-on-libdrm_tegra.patch')
-rw-r--r-- | recipes-graphics/mesa/mesa/0008-remove-dependency-on-libdrm_tegra.patch | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/recipes-graphics/mesa/mesa/0008-remove-dependency-on-libdrm_tegra.patch b/recipes-graphics/mesa/mesa/0008-remove-dependency-on-libdrm_tegra.patch new file mode 100644 index 0000000..0b6d6e9 --- /dev/null +++ b/recipes-graphics/mesa/mesa/0008-remove-dependency-on-libdrm_tegra.patch @@ -0,0 +1,48 @@ +From d2716d25609865bb31bb270ee2fdac3dec5047c6 Mon Sep 17 00:00:00 2001 +From: Alexandre Courbot <acourbot@nvidia.com> +Date: Tue, 20 Dec 2016 15:20:20 +0900 +Subject: [PATCH 8/8] remove dependency on libdrm_tegra + +Functions provided by this library are not required as we perform ioctls +directly. +--- + configure.ac | 2 -- + src/gallium/winsys/tegra/drm/Makefile.am | 2 +- + 2 files changed, 1 insertion(+), 3 deletions(-) + +diff --git a/configure.ac b/configure.ac +index 8a7d833..7df9674 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -77,7 +77,6 @@ LIBDRM_NOUVEAU_REQUIRED=2.4.66 + LIBDRM_NVVIEUX_REQUIRED=2.4.66 + LIBDRM_NOUVEAU_REQUIRED=2.4.66 + LIBDRM_FREEDRENO_REQUIRED=2.4.67 +-LIBDRM_TEGRA_REQUIRED=2.4.68 + DRI2PROTO_REQUIRED=2.6 + DRI3PROTO_REQUIRED=1.0 + PRESENTPROTO_REQUIRED=1.0 +@@ -2493,7 +2492,6 @@ if test -n "$with_gallium_drivers"; then + require_basic_egl "virgl" + ;; + xtegra) +- PKG_CHECK_MODULES([TEGRA], [libdrm_tegra >= $LIBDRM_TEGRA_REQUIRED]) + HAVE_GALLIUM_TEGRA=yes + gallium_require_drm "tegra" + gallium_require_drm_loader +diff --git a/src/gallium/winsys/tegra/drm/Makefile.am b/src/gallium/winsys/tegra/drm/Makefile.am +index 39068fe..eada86a 100644 +--- a/src/gallium/winsys/tegra/drm/Makefile.am ++++ b/src/gallium/winsys/tegra/drm/Makefile.am +@@ -26,7 +26,7 @@ include $(top_srcdir)/src/gallium/Automake.inc + AM_CFLAGS = \ + -I$(top_srcdir)/src/gallium/drivers \ + $(GALLIUM_WINSYS_CFLAGS) \ +- $(TEGRA_CFLAGS) ++ $(LIBDRM_CFLAGS) + + noinst_LTLIBRARIES = libtegradrm.la + +-- +2.9.3 + |