[Piglit] [PATCH] Test interaction between transform feedback and mipmap generation.

Eric Anholt eric at anholt.net
Tue Dec 27 12:50:57 PST 2011


On Wed, 21 Dec 2011 13:08:58 -0800, Paul Berry <stereotype441 at gmail.com> wrote:
> On many implementations (including Mesa for i965 Gen6),
> glGenerateMipmapEXT works by temporarily reconfiguring the graphics
> pipeline to generate the mipmap, and then restoring the old
> configuration.  This test verifies that the reconfiguration properly
> pauses any transform feedback that is in progress, and resets
> GL_RASTERIZER_DISCARD.
> 
> Although it seems unlikely that a client program would try to generate
> mipmaps while transform feedback is active, on Mesa the "meta"
> mechanism (which is used to save and restore graphics pipeline state
> for use by glGenerateMipmapEXT) is also used by many other operations,
> including HiZ resolves.  So this test serves to verify that all other
> "meta" operations will interact properly with transform feedback.

I'd be tempted to drop the FBO-related pieces of this and just do
piglit_rgbw_texture() and then glGenerateMipmap that texture.  When I
wrote fbo-generatemipmap we were in dire need of more FBO-related
testing, and I needed more experience writing FBO code.  Now I feel a
lot less of both of those issues.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/piglit/attachments/20111227/8a2b927e/attachment.pgp>


More information about the Piglit mailing list