From: Brian Date: Fri, 25 Jan 2008 01:20:07 +0000 (-0700) Subject: Cell: insert dummy field into cell_command_render struct to work around apparent... X-Git-Tag: 062012170305~17580^2~390^2~2881 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=547e52f4a04f39d5a96bf5b1ebe97c83b9219dab;p=profile%2Fivi%2Fmesa.git 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 --- diff --git a/src/mesa/pipe/cell/common.h b/src/mesa/pipe/cell/common.h index cd2b61e..b9a00cc 100644 --- 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;