svga: fix layer/level mix-up in svga_mark_surface_dirty() 23/7123/1
authorBrian Paul <brianp@vmware.com>
Mon, 24 Jun 2013 22:25:09 +0000 (16:25 -0600)
committerBrian Paul <brianp@vmware.com>
Tue, 25 Jun 2013 23:54:24 +0000 (17:54 -0600)
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
src/gallium/drivers/svga/svga_surface.c

index f561956..3cbe4cb 100644 (file)
@@ -315,7 +315,7 @@ svga_mark_surface_dirty(struct pipe_surface *surf)
       /* 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);
+      svga_age_texture_view(tex, surf->u.tex.first_layer);
    }
 }