[Piglit] [PATCH 7/8] arb_texture_multisample: add test for texelFetch()

Paul Berry stereotype441 at gmail.com
Mon Jan 7 14:31:10 PST 2013


On 7 January 2013 14:21, Chris Forbes <chrisf at ijw.co.nz> wrote:

> This test actually gets *simpler*, generalized to arbitrary sample
> counts. I'll cook something up tonight.
>

Ok, cool.  While you're looking into that, there are several other ways I
think this test needs to be generalized:

- We need to test a pixel other than just (32, 32), so that if a bug causes
the x and y coordinates to be interpreted incorrectly, we'll catch it.
- We need to test texelFetch of multisampled 2D array textures.
- We need to test texelFetch of integer and unsigned integer textures.

Rather than writing a new test to do all this, you might want to consider
adding multisampled texture capability to the existing file
tests/texturing/shaders/texelFetch.c, which is very thorough.  I think the
only major difficulty in adapting that test would be to deal with the fact
that multisampled textures can't be uploaded using glTexImage2D(), so when
testing multisampled textures, you'd need to replace the call to
generate_texture() with code that renders to the texture using a shader.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/piglit/attachments/20130107/e1a77de8/attachment-0001.html>


More information about the Piglit mailing list