projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e8957f4
)
mesa: when emitting vertex program fog, set yzw=0,0,1
author
Brian Paul
<brianp@vmware.com>
Tue, 18 Aug 2009 23:39:55 +0000
(17:39 -0600)
committer
Brian Paul
<brianp@vmware.com>
Tue, 18 Aug 2009 23:39:55 +0000
(17:39 -0600)
Fixes piglit fp-fog failure with gallium.
src/mesa/main/ffvertex_prog.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/ffvertex_prog.c
b/src/mesa/main/ffvertex_prog.c
index 80dde4b5aa2338a93a79d3db5ddd4625f3266d7e..8e21a27f897c08ff1c4ee5f0ea3b7e748149d40b 100644
(file)
--- a/
src/mesa/main/ffvertex_prog.c
+++ b/
src/mesa/main/ffvertex_prog.c
@@
-1306,7
+1306,9
@@
static void build_fog( struct tnl_program *p )
input = swizzle1(register_input(p, VERT_ATTRIB_FOG), X);
}
+ /* result.fog = {abs(f),0,0,1}; */
emit_op1(p, OPCODE_ABS, fog, WRITEMASK_X, input);
+ emit_op1(p, OPCODE_MOV, fog, WRITEMASK_YZW, get_identity_param(p));
}