[oe-commits] Koen Kooi : omap3-sgx-modules: add patch to fix texture width detection

git version control git at git.openembedded.org
Wed Aug 11 10:56:43 UTC 2010


Module: openembedded.git
Branch: org.openembedded.dev
Commit: 56f7be76454e47732462a74fae31e26bb4d01575
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=56f7be76454e47732462a74fae31e26bb4d01575

Author: Koen Kooi <koen at openembedded.org>
Date:   Wed Aug 11 12:04:59 2010 +0200

omap3-sgx-modules: add patch to fix texture width detection

---

 .../omap3-sgx-modules/texture-width.patch          |   11 +++++++++++
 .../omap3-sgx-modules_1.4.14.2616.bb               |    4 +++-
 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 0000000..20a33bc
--- /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 202c8e6..0d2818b 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





More information about the Openembedded-commits mailing list