svga: fix synchronization bug between sampler views and surfaces
authorBrian Paul <brianp@vmware.com>
Mon, 18 Jun 2012 16:22:06 +0000 (10:22 -0600)
committerBrian Paul <brianp@vmware.com>
Mon, 18 Jun 2012 16:22:59 +0000 (10:22 -0600)
commit8ae93c68ea3538e9e2c2462710a87192e026238d
tree5b4d4e113e34017b65ce6cd645753f932d80ef5c
parent2d7b2d7a87f037fa435772b7ce7c7cc0f426d912
svga: fix synchronization bug between sampler views and surfaces

This fixes a bug where a sampler view was using stale texture/resource
data when the texture was modified through a surface (render to texture).
Bumping the texture and layer ages triggers sampler view revalidation.

Fixes piglit fbo-blit failure.

Reviewed-by: José Fonseca <jfonseca@vmware.com>
src/gallium/drivers/svga/svga_surface.c