From: Brian Date: Wed, 19 Mar 2008 14:53:02 +0000 (-0600) Subject: gallium: set tc->surface_map = NULL after unmapping X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4b39ba72166c6468525b19797c3d8a058814d789;p=mesa.git gallium: set tc->surface_map = NULL after unmapping --- 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);