summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/softpipe/sp_tile_cache.c
diff options
context:
space:
mode:
authorBrian <[email protected]>2008-03-19 08:53:02 -0600
committerBrian <[email protected]>2008-03-19 11:14:18 -0600
commit4b39ba72166c6468525b19797c3d8a058814d789 (patch)
tree82193c89875b9b8b89bda1c984e0f8e9553592e0 /src/gallium/drivers/softpipe/sp_tile_cache.c
parente08501b45763cf177f03fb34b737050d23ba4bc0 (diff)
gallium: set tc->surface_map = NULL after unmapping
Diffstat (limited to 'src/gallium/drivers/softpipe/sp_tile_cache.c')
-rw-r--r--src/gallium/drivers/softpipe/sp_tile_cache.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/softpipe/sp_tile_cache.c b/src/gallium/drivers/softpipe/sp_tile_cache.c
index 4caf2dd3fc9..19f71887e7e 100644
--- a/src/gallium/drivers/softpipe/sp_tile_cache.c
+++ b/src/gallium/drivers/softpipe/sp_tile_cache.c
@@ -156,6 +156,7 @@ sp_tile_cache_set_surface(struct softpipe_tile_cache *tc,
if (tc->surface_map) {
/*assert(tc->surface != ps);*/
pipe_surface_unmap(tc->surface);
+ tc->surface_map = NULL;
}
pipe_surface_reference(&tc->surface, ps);