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>
else {
/* this will happen later in svga_propagate_surface */
}
+
+ /* Increment the view_age and texture age for this surface's slice
+ * so that any sampler views into the texture are re-validated too.
+ */
+ tex->view_age[surf->u.tex.first_layer] = ++(tex->age);
}
}