Cell: insert dummy field into cell_command_render struct to work around apparent compiler bug

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
This commit is contained in:
Brian 2008-01-24 18:20:07 -07:00
parent 7d0421d6cd
commit 547e52f4a0

View file

@ -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;