summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Romanick <idr@us.ibm.com>2008-02-21 10:32:02 -0800
committerIan Romanick <idr@us.ibm.com>2008-02-21 10:43:46 -0800
commitde5c64e0af0b1a1ce3ee12f361341880dc260868 (patch)
tree968822441e858973e5db113a6b98ed47def42049
parent6dd47c264a8642a4e3dbe0b4fc194174743c64fc (diff)
Cell: Remove erroneous ALIGN16_ATTRIB attributes
If a structure is marked as being aligned the SPE compiler performs extra optimizations (sadly, only -O2 is used) when reading the structure. Since most of the structures sent in batch buffers are only 8-byte aligned, this resulted in mysterous bugs with -O2.
-rw-r--r--src/gallium/drivers/cell/common.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/drivers/cell/common.h b/src/gallium/drivers/cell/common.h
index f32ad5bfbe..9a4004535e 100644
--- a/src/gallium/drivers/cell/common.h
+++ b/src/gallium/drivers/cell/common.h
@@ -137,7 +137,7 @@ struct cell_array_info
uint pitch; /**< Byte pitch from one entry to the next. */
uint size;
uint function_offset;
-} ALIGN16_ATTRIB;
+};
struct cell_attribute_fetch_code {
@@ -162,7 +162,7 @@ struct cell_shader_info
unsigned num_declarations;
unsigned num_instructions;
unsigned num_immediates;
-} ALIGN16_ATTRIB;
+};
#define SPU_VERTS_PER_BATCH 64
@@ -175,7 +175,7 @@ struct cell_command_vs
float plane[12][4];
unsigned nr_planes;
unsigned nr_attrs;
-} ALIGN16_ATTRIB;
+};
struct cell_command_render