mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 22:49:13 +02:00
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:
parent
7d0421d6cd
commit
547e52f4a0
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue