summaryrefslogtreecommitdiff
path: root/strata/libdrm-common
diff options
context:
space:
mode:
authorJames Thomas <james.thomas@codethink.co.uk>2015-04-27 14:39:37 +0000
committerBaserock Gerrit <gerrit@baserock.org>2015-04-30 11:06:24 +0000
commitf8f9da28f93aa0ce767fad3b118085a66a396cb3 (patch)
treeaaa77af3eb50a41ed8e0112a57b1b63ed9e72f6b /strata/libdrm-common
parent9cfa80796fcfad9520a77f65cf479e1cdbd3716c (diff)
downloaddefinitions-f8f9da28f93aa0ce767fad3b118085a66a396cb3.tar.gz
Upgrade libdrm to 2.4.60 and patch for jetson
Jetson support now requires new features not found in mainline yet Change-Id: I3128058e8e821ec00f26877ed42a1c46dcbd12b5
Diffstat (limited to 'strata/libdrm-common')
-rw-r--r--strata/libdrm-common/drm.morph9
1 files changed, 9 insertions, 0 deletions
diff --git a/strata/libdrm-common/drm.morph b/strata/libdrm-common/drm.morph
index d1a5381b..a614a831 100644
--- a/strata/libdrm-common/drm.morph
+++ b/strata/libdrm-common/drm.morph
@@ -1,6 +1,15 @@
name: drm
kind: chunk
build-system: autotools
+pre-configure-commands:
+ # Tegra requires a new coherent BO attribute, not currently upstream, so
+ # patch it here
+ - sed -i '/NOUVEAU_GEM_DOMAIN_MAPPABLE (1 << 3)/a#define NOUVEAU_GEM_DOMAIN_COHERENT (1 << 4)' include/drm/nouveau_drm.h
+ - |
+ sed -i '/info->domain |= NOUVEAU_GEM_DOMAIN_MAPPABLE;/a\
+ if (bo->flags & NOUVEAU_BO_COHERENT)\
+ info->domain |= NOUVEAU_GEM_DOMAIN_COHERENT;' nouveau/abi16.c
+ - sed -i '/NOUVEAU_BO_NOSNOOP 0x20000000/a#define NOUVEAU_BO_COHERENT 0x10000000' nouveau/nouveau.h
configure-commands:
- NOCONFIGURE=1 ./autogen.sh
- ./configure --prefix="$PREFIX" --enable-tegra-experimental-api --enable-freedreno-experimental-api