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

Eric Anholt eric at anholt.net
Thu Jan 12 14:00:22 PST 2012


On Wed, 11 Jan 2012 15:06:28 -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.
> 
> v2: Use piglit_rgbw_texture() instead of drawing the texture into an
> FBO.

I think this could be a concurrent test if you dropped the
BindFramebuffer to 0 (since you're not binding it to anything else) and
replaced SwapBuffers with piglit_present_results().

Other than that,

Reviewed-by: Eric Anholt <eric at anholt.net>
-------------- 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/20120112/e399f9b4/attachment.pgp>


More information about the Piglit mailing list