projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dcfe7e1
)
Set machine->Processor
author
Ian Romanick
<idr@us.ibm.com>
Thu, 31 Jan 2008 03:25:47 +0000
(19:25 -0800)
committer
Ben Skeggs
<skeggsb@gmail.com>
Fri, 15 Feb 2008 02:50:27 +0000
(13:50 +1100)
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;