dri-devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: bugzilla-daemon@freedesktop.org
To: dri-devel@lists.freedesktop.org
Subject: [Bug 25871] nearest neighbour samples wrong texel (precision/rounding problem)
Date: Wed, 12 Sep 2012 13:03:19 +0000	[thread overview]
Message-ID: <bug-25871-502-M715oPZQ2F@http.bugs.freedesktop.org/> (raw)
In-Reply-To: <bug-25871-502@http.bugs.freedesktop.org/>

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

--- Comment #10 from Pierre Ossman <pierre-bugzilla@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.

  parent reply	other threads:[~2012-09-12 13:03 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-03 13:01 [Bug 25871] New: nearest neighbour samples wrong texel (precision/rounding problem) bugzilla-daemon
2010-01-04 21:48 ` [Bug 25871] " bugzilla-daemon
2010-01-04 21:49 ` bugzilla-daemon
2011-03-01  2:27 ` bugzilla-daemon
2011-03-01  2:56 ` bugzilla-daemon
2012-09-11 11:32 ` bugzilla-daemon
2012-09-11 13:51 ` bugzilla-daemon
2012-09-11 17:12 ` bugzilla-daemon
2012-09-11 17:23 ` bugzilla-daemon
2012-09-12 12:34 ` bugzilla-daemon
2012-09-12 13:03 ` bugzilla-daemon [this message]
2012-09-12 13:56 ` bugzilla-daemon
2014-04-13 10:46 ` bugzilla-daemon
2014-04-13 20:40 ` bugzilla-daemon
2014-04-13 22:39 ` bugzilla-daemon
2014-04-16  8:13 ` bugzilla-daemon
2014-04-16 15:15 ` bugzilla-daemon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-25871-502-M715oPZQ2F@http.bugs.freedesktop.org/ \
    --to=bugzilla-daemon@freedesktop.org \
    --cc=dri-devel@lists.freedesktop.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox