Set machine->Processor
authorIan Romanick <idr@us.ibm.com>
Thu, 31 Jan 2008 03:25:47 +0000 (19:25 -0800)
committerIan Romanick <idr@us.ibm.com>
Thu, 31 Jan 2008 04:14:52 +0000 (20:14 -0800)
The default value is 0, which is TGSI_PROCESSOR_FRAGMENT...not correct
for a vertex shader!

src/mesa/pipe/cell/spu/spu_vertex_shader.c

index 8216550..125b2c3 100644 (file)
@@ -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;