summaryrefslogtreecommitdiff
path: root/src/mesa
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2007-11-16 10:39:08 -0700
committerBrian <brian.paul@tungstengraphics.com>2007-11-16 10:39:08 -0700
commit95f066fc54ed351a93350b99b584987b88524e71 (patch)
tree81478fd77dec48917081c011f96b96b2b5916bbe /src/mesa
parentf361edae5d495254f4bc27473bf24b1ac7d5af06 (diff)
note problem with fragment coord Y orientation
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/pipe/softpipe/sp_quad_fs.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/pipe/softpipe/sp_quad_fs.c b/src/mesa/pipe/softpipe/sp_quad_fs.c
index 17fb10ea72..ed14dac18e 100644
--- 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;