omap3-sgx-modules: add patch to fix texture width detection
authorKoen Kooi <koen@openembedded.org>
Wed, 11 Aug 2010 10:04:59 +0000 (12:04 +0200)
committerKoen Kooi <koen@openembedded.org>
Wed, 11 Aug 2010 10:04:59 +0000 (12:04 +0200)
recipes/powervr-drivers/omap3-sgx-modules/texture-width.patch [new file with mode: 0644]
recipes/powervr-drivers/omap3-sgx-modules_1.4.14.2616.bb

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 (file)
index 0000000..20a33bc
--- /dev/null
@@ -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);
index 202c8e6..0d2818b 100644 (file)
@@ -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