softpipe: fix off-by-one error in setup_fragcoord_coeff()
authorBrian Paul <brianp@vmware.com>
Tue, 25 Jan 2011 18:57:35 +0000 (11:57 -0700)
committerBrian Paul <brianp@vmware.com>
Tue, 25 Jan 2011 18:58:15 +0000 (11:58 -0700)
commit40ac24e631e694e00652a2df6c0ac5d0f07f620f
tree3fc0f6ad8446992a6a35a45330c8fad997611749
parent23490d7a8bb77cc0a39ffe7c1ce83ce8e9e9c5bb
softpipe: fix off-by-one error in setup_fragcoord_coeff()

If we invert Y, need to subtract one from the surface height.

Fixes https://bugs.freedesktop.org/show_bug.cgi?id=26795
for softpipe.

NOTE: This is a candidate for the 7.9 and 7.10 branches.
src/gallium/drivers/softpipe/sp_setup.c