summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-graphics/xorg-driver
diff options
context:
space:
mode:
authorMartin Jansa <Martin.Jansa@gmail.com>2011-07-21 17:39:29 +0200
committerMartin Jansa <Martin.Jansa@gmail.com>2011-07-21 21:10:47 +0200
commitd0b66b5a1cc23e5054528c46fa640f1dc69cd346 (patch)
tree5ba79c476023b11749c6c6faa5c0edaab0507433 /meta-oe/recipes-graphics/xorg-driver
parent324de1646ac31c8a9f01c0004db85350b517224e (diff)
downloadmeta-openembedded-d0b66b5a1cc23e5054528c46fa640f1dc69cd346.tar.gz
xf86-video-glamo: bump SRCREV, remove upstream applied patch
* remove mese-dri from RDEPENDS as we're now using kernel without DRM patch and it can fallback to sw rendering just fine Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-oe/recipes-graphics/xorg-driver')
-rw-r--r--meta-oe/recipes-graphics/xorg-driver/xf86-video-glamo/0001-glamo-drm-define-GLAMO_CMDQ_MAX_COUNT-instead-of-mag.patch66
-rw-r--r--meta-oe/recipes-graphics/xorg-driver/xf86-video-glamo_git.bb5
2 files changed, 2 insertions, 69 deletions
diff --git a/meta-oe/recipes-graphics/xorg-driver/xf86-video-glamo/0001-glamo-drm-define-GLAMO_CMDQ_MAX_COUNT-instead-of-mag.patch b/meta-oe/recipes-graphics/xorg-driver/xf86-video-glamo/0001-glamo-drm-define-GLAMO_CMDQ_MAX_COUNT-instead-of-mag.patch
deleted file mode 100644
index 0c7350fc1..000000000
--- a/meta-oe/recipes-graphics/xorg-driver/xf86-video-glamo/0001-glamo-drm-define-GLAMO_CMDQ_MAX_COUNT-instead-of-mag.patch
+++ /dev/null
@@ -1,66 +0,0 @@
1From e2d0f9a3ba7f36b0b8ac8d736dd76da6e5e07f38 Mon Sep 17 00:00:00 2001
2From: Martin Jansa <Martin.Jansa@gmail.com>
3Date: Fri, 29 Oct 2010 11:19:08 +0200
4Subject: [PATCH] glamo-drm: define GLAMO_CMDQ_MAX_COUNT instead of magic constant 1024
5
6* fix check for full queue, because size != count here
7* make sure we have enough space in queue for 2 resp. 4 more commands in
8 GlamoDRMAddCommand resp. GlamoDRMAddCommandBO
9
10Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
11---
12 src/glamo-drm.c | 16 +++++++++++-----
13 1 files changed, 11 insertions(+), 5 deletions(-)
14
15diff --git a/src/glamo-drm.c b/src/glamo-drm.c
16index aac93bb..01e8510 100644
17--- a/src/glamo-drm.c
18+++ b/src/glamo-drm.c
19@@ -32,6 +32,8 @@
20
21 #include "glamo.h"
22
23+/* How many commands can be stored before forced dispatch */
24+#define GLAMO_CMDQ_MAX_COUNT 1024
25
26 /* Submit the prepared command sequence to the kernel */
27 void GlamoDRMDispatch(GlamoPtr pGlamo)
28@@ -60,7 +62,7 @@ void GlamoDRMDispatch(GlamoPtr pGlamo)
29
30 void GlamoDRMAddCommand(GlamoPtr pGlamo, uint16_t reg, uint16_t val)
31 {
32- if ( pGlamo->cmdq_drm_used == pGlamo->cmdq_drm_size ) {
33+ if ( pGlamo->cmdq_drm_used >= GLAMO_CMDQ_MAX_COUNT - 2 ) {
34 xf86DrvMsg(pGlamo->pScreen->myNum, X_INFO,
35 "Forced command cache flush.\n");
36 GlamoDRMDispatch(pGlamo);
37@@ -74,7 +76,8 @@ void GlamoDRMAddCommand(GlamoPtr pGlamo, uint16_t reg, uint16_t val)
38
39 void GlamoDRMAddCommandBO(GlamoPtr pGlamo, uint16_t reg, struct glamo_bo *bo)
40 {
41- if ( pGlamo->cmdq_drm_used == pGlamo->cmdq_drm_size ) {
42+ if ( pGlamo->cmdq_drm_used >= GLAMO_CMDQ_MAX_COUNT - 4 ||
43+ pGlamo->cmdq_obj_used >= GLAMO_CMDQ_MAX_COUNT) {
44 xf86DrvMsg(pGlamo->pScreen->myNum, X_INFO,
45 "Forced command cache flush.\n");
46 GlamoDRMDispatch(pGlamo);
47@@ -98,10 +101,13 @@ void GlamoDRMAddCommandBO(GlamoPtr pGlamo, uint16_t reg, struct glamo_bo *bo)
48
49 void GlamoDRMInit(GlamoPtr pGlamo)
50 {
51- pGlamo->cmdq_objs = malloc(1024);
52- pGlamo->cmdq_obj_pos = malloc(1024);
53+ pGlamo->cmdq_objs = malloc(GLAMO_CMDQ_MAX_COUNT);
54+ pGlamo->cmdq_obj_pos = malloc(GLAMO_CMDQ_MAX_COUNT);
55 pGlamo->cmdq_obj_used = 0;
56 pGlamo->cmdq_drm_used = 0;
57- pGlamo->cmdq_drm_size = 4 * 1024;
58+ /* we're using 2bytes per entry (uint16_t) that's why we need to allocate
59+ * GLAMO_CMDQ_MAX_COUNT * 2 bytes
60+ */
61+ pGlamo->cmdq_drm_size = 2 * GLAMO_CMDQ_MAX_COUNT;
62 pGlamo->cmdq_drm = malloc(pGlamo->cmdq_drm_size);
63 }
64--
651.7.3.2
66
diff --git a/meta-oe/recipes-graphics/xorg-driver/xf86-video-glamo_git.bb b/meta-oe/recipes-graphics/xorg-driver/xf86-video-glamo_git.bb
index 82263f273..b1030d910 100644
--- a/meta-oe/recipes-graphics/xorg-driver/xf86-video-glamo_git.bb
+++ b/meta-oe/recipes-graphics/xorg-driver/xf86-video-glamo_git.bb
@@ -4,17 +4,16 @@ DEPENDS += "libdrm"
4 4
5LIC_FILES_CHKSUM = "file://COPYING;md5=d8cbd99fff773f92e844948f74ef0df8" 5LIC_FILES_CHKSUM = "file://COPYING;md5=d8cbd99fff773f92e844948f74ef0df8"
6 6
7RDEPENDS_${PN} = "xserver-xorg-extension-dri xserver-xorg-extension-dri2 xserver-xorg-extension-glx mesa-dri" 7RDEPENDS_${PN} = "xserver-xorg-extension-dri xserver-xorg-extension-dri2 xserver-xorg-extension-glx"
8PE = "2" 8PE = "2"
9PV = "1.0.0+gitr${SRCPV}" 9PV = "1.0.0+gitr${SRCPV}"
10PR = "${INC_PR}.6" 10PR = "${INC_PR}.6"
11 11
12SRC_URI = "git://git.openmoko.org/git/xf86-video-glamo.git;protocol=git;branch=master \ 12SRC_URI = "git://git.openmoko.org/git/xf86-video-glamo.git;protocol=git;branch=master \
13 file://0001-glamo-drm-define-GLAMO_CMDQ_MAX_COUNT-instead-of-mag.patch \
14 file://0001-glamo-kms-driver-drop-unused-xf86_config.patch \ 13 file://0001-glamo-kms-driver-drop-unused-xf86_config.patch \
15 " 14 "
16 15
17S = "${WORKDIR}/git" 16S = "${WORKDIR}/git"
18SRCREV = "16af3c00195adc68cbd508e3613be4b2349260b3" 17SRCREV = "cb9ed17035a79e49dde26a1e7e2bc5f10fd8144b"
19 18
20EXTRA_OECONF = " --enable-kms " 19EXTRA_OECONF = " --enable-kms "