aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/powervr-drivers/omap3-sgx-modules/texture-width.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/powervr-drivers/omap3-sgx-modules/texture-width.patch')
-rw-r--r--recipes/powervr-drivers/omap3-sgx-modules/texture-width.patch11
1 files changed, 11 insertions, 0 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);
+