Set machine->Processor

The default value is 0, which is TGSI_PROCESSOR_FRAGMENT...not correct
for a vertex shader!
This commit is contained in:
Ian Romanick
2008-01-30 19:25:47 -08:00
parent 137cb72284
commit fb348c2cb1
+2 -1
View 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;