aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics/mesa/mesa-9.1.6/0005-llvmpipe-remove-the-power-of-two-sizeof-struct-cmd_b.patch
blob: d86421b767c9523f07391e36b475ff999353a31d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
From 33098ef45e6035f3348040a25641f95c95266103 Mon Sep 17 00:00:00 2001
From: Brian Paul <brianp@vmware.com>
Date: Wed, 6 Mar 2013 16:57:20 -0700
Subject: [PATCH 5/5] llvmpipe: remove the power of two sizeof(struct
 cmd_block) assertion
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

It fails on 32-bit systems (I only tested on 64-bit).  Power of two
size isn't required, so just remove the assertion.

Reviewed-by: José Fonseca <jfonseca@vmware.com>

Upstream-Status: Backport
http://cgit.freedesktop.org/mesa/mesa/commit/?id=9915636fb8afe75ee2e8e013e4f495a4cb937afb
---
 src/gallium/drivers/llvmpipe/lp_scene.c | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/src/gallium/drivers/llvmpipe/lp_scene.c b/src/gallium/drivers/llvmpipe/lp_scene.c
index e145391..c88bc95 100644
--- a/src/gallium/drivers/llvmpipe/lp_scene.c
+++ b/src/gallium/drivers/llvmpipe/lp_scene.c
@@ -76,13 +76,6 @@ lp_scene_create( struct pipe_context *pipe )
       assert(maxCommandBytes < LP_SCENE_MAX_SIZE);
       /* We'll also need space for at least one other data block */
       assert(maxCommandPlusData <= LP_SCENE_MAX_SIZE);
-
-      /* Ideally, the size of a cmd_block object will be a power of two
-       * in order to avoid wasting space when we allocation them from
-       * data blocks (which are power of two also).
-       */
-      assert(sizeof(struct cmd_block) ==
-             util_next_power_of_two(sizeof(struct cmd_block)));
    }
 #endif
 
-- 
1.8.2.1