From 56f7be76454e47732462a74fae31e26bb4d01575 Mon Sep 17 00:00:00 2001 From: Koen Kooi Date: Wed, 11 Aug 2010 12:04:59 +0200 Subject: omap3-sgx-modules: add patch to fix texture width detection --- recipes/powervr-drivers/omap3-sgx-modules/texture-width.patch | 11 +++++++++++ recipes/powervr-drivers/omap3-sgx-modules_1.4.14.2616.bb | 4 +++- 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 recipes/powervr-drivers/omap3-sgx-modules/texture-width.patch 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 -- cgit 1.2.3-korg