aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/powervr-drivers
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2010-08-11 12:04:59 +0200
committerKoen Kooi <koen@openembedded.org>2010-08-11 12:04:59 +0200
commit56f7be76454e47732462a74fae31e26bb4d01575 (patch)
tree4ad1b7e15d9de4d25850e27406909d980819c03f /recipes/powervr-drivers
parentd1c85b533319f7616ba70cfd0ce0a8c6a669b9b4 (diff)
downloadopenembedded-56f7be76454e47732462a74fae31e26bb4d01575.tar.gz
omap3-sgx-modules: add patch to fix texture width detection
Diffstat (limited to 'recipes/powervr-drivers')
-rw-r--r--recipes/powervr-drivers/omap3-sgx-modules/texture-width.patch11
-rw-r--r--recipes/powervr-drivers/omap3-sgx-modules_1.4.14.2616.bb4
2 files changed, 14 insertions, 1 deletions
diff --git a/recipes/powervr-drivers/omap3-sgx-modules/texture-width.patch b/recipes/powervr-drivers/omap3-sgx-modules/texture-width.patch
new file mode 100644
index 0000000000..20a33bc0fc
--- /dev/null
+++ b/recipes/powervr-drivers/omap3-sgx-modules/texture-width.patch
@@ -0,0 +1,11 @@
+--- /tmp/bc_cat.c 2010-08-11 11:36:20.000000000 +0200
++++ OMAP35x_Graphics_SDK_3_01_00_06/GFX_Linux_KM/services4/3rdparty/bufferclass_ti/bc_cat.c 2010-08-11 11:36:53.000000000 +0200
+@@ -487,7 +487,7 @@
+
+ /* texture buffer width should be multiple of 8 for OMAP3 ES3.x,
+ * or 32 for ES2.x */
+- width_align = omap_rev_lt_3_0() ? 32 : 8;
++ width_align = cpu_is_omap3530() && omap_rev_lt_3_0() ? 32 : 8;
+
+ major = register_chrdev(0, DEVNAME, &bc_cat_fops);
+
diff --git a/recipes/powervr-drivers/omap3-sgx-modules_1.4.14.2616.bb b/recipes/powervr-drivers/omap3-sgx-modules_1.4.14.2616.bb
index 202c8e6ef8..0d2818be20 100644
--- a/recipes/powervr-drivers/omap3-sgx-modules_1.4.14.2616.bb
+++ b/recipes/powervr-drivers/omap3-sgx-modules_1.4.14.2616.bb
@@ -1,7 +1,7 @@
DESCRIPTION = "Kernel drivers for the PowerVR SGX chipset found in the omap3 SoCs"
LICENSE = "GPLv2"
-PR_append = "b"
+PR_append = "c"
# download required binary distribution from:
# http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/gfxsdk/latest/index_FDS.html
@@ -15,7 +15,9 @@ IMGPV = "1.4.14.2616"
BINFILE := "OMAP35x_Graphics_SDK_setuplinux_${SGXPV}.bin"
SRC_URI = "http://install.source.dir.local/OMAP35x_Graphics_SDK_setuplinux_${SGXPV}.bin \
+ file://texture-width.patch;striplevel=2 \
"
+
S = "${WORKDIR}/OMAP35x_Graphics_SDK_${SGXPV}/GFX_Linux_KM"
inherit module