projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
137cb72
)
Set machine->Processor
author
Ian Romanick
<idr@us.ibm.com>
Thu, 31 Jan 2008 03:25:47 +0000
(19:25 -0800)
committer
Ian 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
patch
|
blob
|
history
diff --git
a/src/mesa/pipe/cell/spu/spu_vertex_shader.c
b/src/mesa/pipe/cell/spu/spu_vertex_shader.c
index 82165501c5cdf83ce2313f59babd2c747a3436c4..125b2c3a436eeb522519cc7052cdbac2e7309751 100644
(file)
--- 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;