svga: fix layer/level mix-up in svga_mark_surface_dirty()
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 f5619561269bcb6bc165014865f0d64cb711d732..3cbe4cb80d49bf94dbafb0996811bf4d62254186 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);
    }
 }