summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIan Romanick <idr@us.ibm.com>2008-01-30 19:25:47 -0800
committerBen Skeggs <skeggsb@gmail.com>2008-02-15 13:50:27 +1100
commitfea350d91133174254f544de30032049199991bf (patch)
tree8644e2db7d58777a29b2a91ce73edfa698ccd743 /src
parentdcfe7e1dca656dd897b7b0bdebbed3cee6f9cfd9 (diff)
Set machine->Processor
The default value is 0, which is TGSI_PROCESSOR_FRAGMENT...not correct for a vertex shader!
Diffstat (limited to 'src')
-rw-r--r--src/mesa/pipe/cell/spu/spu_vertex_shader.c3
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;