[Piglit] [PATCH] copyteximage: Fix the test to eliminate GL_TEXTURE_1D failures on NVIDIA

Brian Paul brian.e.paul at gmail.com
Tue Aug 21 18:25:55 PDT 2012


On Tue, Aug 21, 2012 at 6:57 PM, Matt Turner <mattst88 at gmail.com> wrote:
> On Tue, Aug 21, 2012 at 4:32 PM, Anuj Phogat <anuj.phogat at gmail.com> wrote:
>> Draw and probe a QUAD (in place of a LINE) in case of GL_TEXTURE_1D. This
>> fixes the test failures on NVIDIA's proprietary linux drivers. In case of
>> LINE, glReadPixels() misses the relevant pixels by one pixel on NVIDIA.
>>
>> Signed-off-by: Anuj Phogat <anuj.phogat at gmail.com>
>> ---
>> Brian, both these patches (including the one I sent earlier today) resolve
>> separate issues. So, I'm keeping this fix in a separate patch. Let me know
>> if you have any comments on the patches.
>>
>>  tests/texturing/copyteximage.c |   16 +++++-----------
>>  1 files changed, 5 insertions(+), 11 deletions(-)
>
> I've only been following this casually, but does this cover up a test
> failure on NVIDIA? They've got a bug -- right? I don't understand why
> we'd want to modify the test so that it misses the driver bug.

Hitting specific pixels when drawing lines is a bit tricky.  The
vertex transformation has to be set up just right (one of the
appendices of the OpenGL programming guide covers this) and I don't
think this piglit test is doing that.  I doubt it's a driver bug.

-Brian


More information about the Piglit mailing list