svga: use new svga_age_texture_view() helper
authorBrian Paul <brianp@vmware.com>
Mon, 24 Jun 2013 20:44:08 +0000 (14:44 -0600)
committerBrian Paul <brianp@vmware.com>
Tue, 25 Jun 2013 23:54:24 +0000 (17:54 -0600)
commit04e3969597b485691925dda717e4c986995fdb59
tree9efce6742bf86088f8e17c4fa54ba00f40057f50
parenta4e4a413e5b24d36ac135a2eb42d5e57b8b4ccca
svga: use new svga_age_texture_view() helper

The function does array bounds checking.  Note, this exposes a
bug in the svga_mark_surface_dirty() function: we're calling
svga_age_texture_view() with a texture slice instead of mipmap
level.  This can lead to a failed assertion.  That'll be fixed next.

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
src/gallium/drivers/svga/svga_resource_texture.c
src/gallium/drivers/svga/svga_resource_texture.h