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>
This commit is contained in:
parent
2d7b2d7a87
commit
8ae93c68ea
|
@ -320,6 +320,11 @@ svga_mark_surface_dirty(struct pipe_surface *surf)
|
|||
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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue