projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7d0421d
)
Cell: insert dummy field into cell_command_render struct to work around apparent...
author
Brian
<brian.paul@tungstengraphics.com>
Fri, 25 Jan 2008 01:20:07 +0000
(18:20 -0700)
committer
Brian
<brian.paul@tungstengraphics.com>
Fri, 25 Jan 2008 01:20:07 +0000
(18:20 -0700)
Without this dummy field, it seems the SPU code in cmd_render() gets a bogus
value when dereferencing render->num_indices, sometimes.
This showed up as missing tries in gears.c in the first frame rendered.
Using spu-gcc version 4.1.1, Cell SDK 2.1
src/mesa/pipe/cell/common.h
patch
|
blob
|
history
diff --git
a/src/mesa/pipe/cell/common.h
b/src/mesa/pipe/cell/common.h
index cd2b61e6e9428497fa798f89a96ff39d3185d7c9..b9a00ccbb5f4ae0c16ae3dbcb5e9445a26b06ab0 100644
(file)
--- a/
src/mesa/pipe/cell/common.h
+++ b/
src/mesa/pipe/cell/common.h
@@
-104,6
+104,7
@@
struct cell_command_render
uint prim_type;
uint num_verts;
uint vertex_size; /**< bytes per vertex */
+ uint dummy; /* XXX this dummy field works around a compiler bug */
uint num_indexes;
const void *vertex_data;
const ushort *index_data;