<div class="gmail_quote">2011/4/19 Michel Dänzer <span dir="ltr"><<a href="mailto:michel@daenzer.net">michel@daenzer.net</a>></span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im">On Die, 2011-04-19 at 12:00 +0200, Christoph Bumiller wrote:<br>
> On 16.04.2011 18:50, Christoph Bumiller wrote:<br>
> > I hope the new version is correct, the commit message describes why I<br>
> > did the first change, and the second change is described in a comment.<br>
> ><br>
> > Note that the MAD for inversion uses Height - 1 instead of Height.<br>
> ><br>
> > With this, piglit glsl-arb-fragment-coord-conventions and<br>
> > fbo-depth-sample-compare pass on nvc0.<br>
> ><br>
> > I was assuming that integer pixel centers for size 100 range from 0 to<br>
> > 99 and half-integer pixel centers from 0.5 to 99.5.<br>
> ><br>
> Attached a better version of the patch, potentially saving an<br>
> instruction and avoiding precision issues with NEAREST filtering that<br>
> made piglit's blending-in-shader fail.<br>
><br>
> The only other location I found STATE_FB_WPOS_Y_TRANSFORM used was<br>
> r600 classic, which should also work more correctly now since (at<br>
> least according to gallium caps) it uses half-integer pixel center,<br>
> and for H=100, 0.5 * -1 + 99 obviously isn't the desired 99.5.<br>
<br>
</div>FWIW, this fixes compiz alpha-blurred contents being off by one<br>
vertically on r300g. Thanks!<br></blockquote><div><br></div></div>If that's true, it should be a candidate for 7.10 as well.<br><br>Marek<br>