diff options
author | Ian Romanick <idr@us.ibm.com> | 2008-01-30 19:25:47 -0800 |
---|---|---|
committer | Ian Romanick <idr@us.ibm.com> | 2008-01-30 20:14:52 -0800 |
commit | fb348c2cb16d0bc216d29889474972d5c14d0980 (patch) | |
tree | ef0af1ad854fa5e2b8d81d851b863e90b8935cc1 /src/mesa/pipe/cell/spu | |
parent | 137cb72284a115d8f5ffadf2154b6f5eb5323a7d (diff) |
Set machine->Processor
The default value is 0, which is TGSI_PROCESSOR_FRAGMENT...not correct
for a vertex shader!
Diffstat (limited to 'src/mesa/pipe/cell/spu')
-rw-r--r-- | src/mesa/pipe/cell/spu/spu_vertex_shader.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/pipe/cell/spu/spu_vertex_shader.c b/src/mesa/pipe/cell/spu/spu_vertex_shader.c index 82165501c5..125b2c3a43 100644 --- a/src/mesa/pipe/cell/spu/spu_vertex_shader.c +++ b/src/mesa/pipe/cell/spu/spu_vertex_shader.c @@ -93,7 +93,8 @@ run_vertex_program(struct spu_vs_context *draw, assert(count <= 4); - /* Consts does not require 16 byte alignment. */ + machine->Processor = TGSI_PROCESSOR_VERTEX; + ASSERT_ALIGN16(draw->constants); machine->Consts = (float (*)[4]) draw->constants; |