[Bug 25871] nearest neighbour samples wrong texel (precision/rounding problem)

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Sep 12 06:03:19 PDT 2012


https://bugs.freedesktop.org/show_bug.cgi?id=25871

--- Comment #10 from Pierre Ossman <pierre-bugzilla at ossman.eu> 2012-09-12 13:03:19 UTC ---
(In reply to comment #7)
> 
> What is the expected behavior?

It's so long ago I don't remember the exact details. You can easily figure it
out though. The test program creates a 4x4 checker board texture and then uses
a single point on it to draw the triangles. The range [0.25,0.5[ should all be
the same color. The bug was that as you approached 0.5, it started sampling the
next pixel prematurely.

So change the fragment program to use coordinate 0.4 or something like that.
That colour should be the same as 0.4999... . Looking at the code, white seems
to be the correct colour.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the dri-devel mailing list