From mboxrd@z Thu Jan 1 00:00:00 1970
From: bugzilla-daemon@freedesktop.org
Subject: [Bug 25871] nearest neighbour samples wrong texel
(precision/rounding problem)
Date: Wed, 12 Sep 2012 13:03:19 +0000
Message-ID:
References:
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Return-path:
Received: from culpepper.freedesktop.org (unknown [131.252.210.165])
by gabe.freedesktop.org (Postfix) with ESMTP id 50EB89E84F
for ;
Wed, 12 Sep 2012 06:03:19 -0700 (PDT)
In-Reply-To:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Sender: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org
Errors-To: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org
To: dri-devel@lists.freedesktop.org
List-Id: dri-devel@lists.freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=25871
--- Comment #10 from Pierre Ossman 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.