projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f361eda
)
note problem with fragment coord Y orientation
author
Brian
<brian.paul@tungstengraphics.com>
Fri, 16 Nov 2007 17:39:08 +0000
(10:39 -0700)
committer
Brian
<brian.paul@tungstengraphics.com>
Fri, 16 Nov 2007 17:39:08 +0000
(10:39 -0700)
src/mesa/pipe/softpipe/sp_quad_fs.c
patch
|
blob
|
history
diff --git
a/src/mesa/pipe/softpipe/sp_quad_fs.c
b/src/mesa/pipe/softpipe/sp_quad_fs.c
index 17fb10ea72b79fda96e2d7cc407b5c75a83b688b..ed14dac18e4566487618ee31ee40cdfd2054ad59 100644
(file)
--- a/
src/mesa/pipe/softpipe/sp_quad_fs.c
+++ b/
src/mesa/pipe/softpipe/sp_quad_fs.c
@@
-104,6
+104,10
@@
shade_quad(
machine->Inputs[0].xyzw[0].f[2] = fx;
machine->Inputs[0].xyzw[0].f[3] = fx + 1.0f;
+ /* XXX for OpenGL we need to invert the Y pos here (y=0=top).
+ * but that'll mess up linear/perspective interpolation of other
+ * attributes...
+ */
machine->Inputs[0].xyzw[1].f[0] = fy;
machine->Inputs[0].xyzw[1].f[1] = fy;
machine->Inputs[0].xyzw[1].f[2] = fy + 1.0f;