[Mesa-dev] [PATCH] i965: setup address rounding enable bits
Eric Anholt
eric at anholt.net
Tue Oct 18 14:45:54 PDT 2011
On Mon, 17 Oct 2011 11:52:05 +0800, Yuanhan Liu <yuanhan.liu at linux.intel.com> wrote:
> On Sat, Oct 15, 2011 at 08:59:52AM +0800, Liu Aleaxander wrote:
> > On Sat, Oct 15, 2011 at 2:11 AM, Eric Anholt <eric at anholt.net> wrote:
> > > On Thu, 13 Oct 2011 11:34:34 +0800, Yuanhan Liu <yuanhan.liu at linux.intel.com> wrote:
> > >> The patch(based on the reading of the emulator) came from while I was
> > >> trying to fix the oglc pbo texImage.1PBODefaults fail. This case
> > >> generates a texture with the width and height equal to window's width
> > >> and height respectively, then try to texture it on the whole window.
> > >> So, it's exactly one texel for one pixel. And, the min filter and mag
> > >> filter are GL_LINEAR. It runs with swrast OK, as expected. But it failed
> > >> with i965 driver.
> > >>
> > >> Well, you can't tell the difference from the screen, as the error is
> > >> quite tiny. From my digging, it seems that there are some tiny error
> > >> happened while getting tex address. This will break the one texel for
> > >> one pixel rule in this case. Thus the linear result is taken, with tiny
> > >> error.
> > >>
> > >> This patch would fix several oglc pbo subcase fail on both ILK, SNB and
> > >> IVB.
> > >
> > > I would really like to see a piglit test for 1:1 linear-filtered
> > > texturing being precise, like apparently you found in oglconform. It's
> > > important to compositor developers.
> >
> > Will try to write one next week.
>
> Patch sent. BTW, I don't have the piglit git write access. Eric, would
> you please help me to get the access?
You have piglit write access now.
I didn't have much comment on the patch because the docs on the bits
weren't really clear on what they did. But if it fixes the piglit
testcase and doesn't regress other things, I'd say go for it.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20111018/2aa04e8e/attachment-0001.pgp>
More information about the mesa-dev
mailing list