summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics/mesa/mesa-9.1.3/0005-llvmpipe-remove-the-power-of-two-sizeof-struct-cmd_b.patch
diff options
context:
space:
mode:
authorMartin Jansa <martin.jansa@gmail.com>2013-07-02 13:49:19 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-07-05 15:34:26 +0100
commit4ec1014cc0aadd66fffa2667e5c59ea8b876eb61 (patch)
treea53f964c3029e873c5d4e8ce36b60685a1a76e92 /meta/recipes-graphics/mesa/mesa-9.1.3/0005-llvmpipe-remove-the-power-of-two-sizeof-struct-cmd_b.patch
parent52892d6f8a2f37bf6b809bcbf3ad6442e152f3fb (diff)
downloadpoky-4ec1014cc0aadd66fffa2667e5c59ea8b876eb61.tar.gz
mesa: bump SRCREV in git recipe, refresh patches
* 0003-EGL-Mutate-NativeDisplayType-depending-on-config.patch needs to be rebased so move old version for 9.1.3 to mesa-9.1.3/ and update the version in mesa/ * add git headers * 0005-llvmpipe-remove-the-power-of-two-sizeof-struct-cmd_b.patch is already applied in new SRCREV, move it to mesa-9.1.3/ * formal change in license.html with new SRCREV: THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL -BRIAN PAUL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN -AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN -CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. (From OE-Core rev: 7c60607c898f596731441425d75144be232d4c8e) Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-graphics/mesa/mesa-9.1.3/0005-llvmpipe-remove-the-power-of-two-sizeof-struct-cmd_b.patch')
-rw-r--r--meta/recipes-graphics/mesa/mesa-9.1.3/0005-llvmpipe-remove-the-power-of-two-sizeof-struct-cmd_b.patch41
1 files changed, 41 insertions, 0 deletions
diff --git a/meta/recipes-graphics/mesa/mesa-9.1.3/0005-llvmpipe-remove-the-power-of-two-sizeof-struct-cmd_b.patch b/meta/recipes-graphics/mesa/mesa-9.1.3/0005-llvmpipe-remove-the-power-of-two-sizeof-struct-cmd_b.patch
new file mode 100644
index 0000000000..d86421b767
--- /dev/null
+++ b/meta/recipes-graphics/mesa/mesa-9.1.3/0005-llvmpipe-remove-the-power-of-two-sizeof-struct-cmd_b.patch
@@ -0,0 +1,41 @@
1From 33098ef45e6035f3348040a25641f95c95266103 Mon Sep 17 00:00:00 2001
2From: Brian Paul <brianp@vmware.com>
3Date: Wed, 6 Mar 2013 16:57:20 -0700
4Subject: [PATCH 5/5] llvmpipe: remove the power of two sizeof(struct
5 cmd_block) assertion
6MIME-Version: 1.0
7Content-Type: text/plain; charset=UTF-8
8Content-Transfer-Encoding: 8bit
9
10It fails on 32-bit systems (I only tested on 64-bit). Power of two
11size isn't required, so just remove the assertion.
12
13Reviewed-by: José Fonseca <jfonseca@vmware.com>
14
15Upstream-Status: Backport
16http://cgit.freedesktop.org/mesa/mesa/commit/?id=9915636fb8afe75ee2e8e013e4f495a4cb937afb
17---
18 src/gallium/drivers/llvmpipe/lp_scene.c | 7 -------
19 1 file changed, 7 deletions(-)
20
21diff --git a/src/gallium/drivers/llvmpipe/lp_scene.c b/src/gallium/drivers/llvmpipe/lp_scene.c
22index e145391..c88bc95 100644
23--- a/src/gallium/drivers/llvmpipe/lp_scene.c
24+++ b/src/gallium/drivers/llvmpipe/lp_scene.c
25@@ -76,13 +76,6 @@ lp_scene_create( struct pipe_context *pipe )
26 assert(maxCommandBytes < LP_SCENE_MAX_SIZE);
27 /* We'll also need space for at least one other data block */
28 assert(maxCommandPlusData <= LP_SCENE_MAX_SIZE);
29-
30- /* Ideally, the size of a cmd_block object will be a power of two
31- * in order to avoid wasting space when we allocation them from
32- * data blocks (which are power of two also).
33- */
34- assert(sizeof(struct cmd_block) ==
35- util_next_power_of_two(sizeof(struct cmd_block)));
36 }
37 #endif
38
39--
401.8.2.1
41