Mesa (master): svga: fix layer/level mix-up in svga_mark_surface_dirty()
Brian Paul
brianp at kemper.freedesktop.org
Tue Jun 25 23:57:03 UTC 2013
Module: Mesa
Branch: master
Commit: 2cc27c3faac79988dbf4693a543555cc58b2e4b0
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=2cc27c3faac79988dbf4693a543555cc58b2e4b0
Author: Brian Paul <brianp at vmware.com>
Date: Mon Jun 24 16:25:09 2013 -0600
svga: fix layer/level mix-up in svga_mark_surface_dirty()
Reviewed-by: Jose Fonseca <jfonseca at vmware.com>
---
src/gallium/drivers/svga/svga_surface.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/gallium/drivers/svga/svga_surface.c b/src/gallium/drivers/svga/svga_surface.c
index f561956..3cbe4cb 100644
--- a/src/gallium/drivers/svga/svga_surface.c
+++ b/src/gallium/drivers/svga/svga_surface.c
@@ -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);
}
}
More information about the mesa-commit
mailing list