summaryrefslogtreecommitdiff
path: root/src/mesa/pipe/cell/common.h
diff options
context:
space:
mode:
authorIan Romanick <idr@us.ibm.com>2008-01-30 19:40:24 -0800
committerBen Skeggs <skeggsb@gmail.com>2008-02-15 13:50:27 +1100
commit524f99a4ab1f4dde0cab07ffd9e72a4d49c1e79d (patch)
tree1752bc2225f25246c7bac0ace9e8a9b871c60fa9 /src/mesa/pipe/cell/common.h
parent42db5715988a23743084742bc52baaa568be6091 (diff)
Numerous small fixed to PPU-SPU vertex shader protocol
Diffstat (limited to 'src/mesa/pipe/cell/common.h')
-rw-r--r--src/mesa/pipe/cell/common.h19
1 files changed, 12 insertions, 7 deletions
diff --git a/src/mesa/pipe/cell/common.h b/src/mesa/pipe/cell/common.h
index 533ad2cf6e..28b0c59a0a 100644
--- a/src/mesa/pipe/cell/common.h
+++ b/src/mesa/pipe/cell/common.h
@@ -124,10 +124,10 @@ struct cell_command_clear_surface
*/
struct cell_array_info
{
- void *base; /**< Base address of the 0th element. */
- uint attr; /**< Attribute that this state if for. */
- uint pitch; /**< Byte pitch from one entry to the next. */
- enum pipe_format format; /**< Pipe format of each entry. */
+ uint64_t base; /**< Base address of the 0th element. */
+ uint attr; /**< Attribute that this state if for. */
+ uint pitch; /**< Byte pitch from one entry to the next. */
+ uint format; /**< Pipe format of each entry. */
};
@@ -135,11 +135,13 @@ struct cell_shader_info
{
unsigned num_outputs;
- void *declarations;
+ uint64_t declarations;
unsigned num_declarations;
- void *instructions;
+ uint64_t instructions;
unsigned num_instructions;
- void *uniforms;
+ uint64_t uniforms;
+ uint64_t immediates;
+ unsigned num_immediates;
} ALIGN16_ATTRIB;
@@ -151,6 +153,9 @@ struct cell_command_vs
unsigned num_elts;
unsigned elts[SPU_VERTS_PER_BATCH];
uint64_t vOut[SPU_VERTS_PER_BATCH];
+ float plane[12][4];
+ unsigned nr_planes;
+ unsigned nr_attrs;
} ALIGN16_ATTRIB;