Mesa (master): move assert to avoid crash in debug build.

Alan Hourihane alanh at kemper.freedesktop.org
Tue Dec 8 05:11:36 PST 2009


Module: Mesa
Branch: master
Commit: 2aebc5e01fbab6046f80c881d30717f788a390bc
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=2aebc5e01fbab6046f80c881d30717f788a390bc

Author: Alan Hourihane <alanh at vmware.com>
Date:   Tue Dec  8 13:11:09 2009 +0000

move assert to avoid crash in debug build.

---

 src/gallium/drivers/llvmpipe/lp_tile_cache.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/gallium/drivers/llvmpipe/lp_tile_cache.c b/src/gallium/drivers/llvmpipe/lp_tile_cache.c
index e83210f..7a1ecf5 100644
--- a/src/gallium/drivers/llvmpipe/lp_tile_cache.c
+++ b/src/gallium/drivers/llvmpipe/lp_tile_cache.c
@@ -290,11 +290,12 @@ lp_get_cached_tile(struct llvmpipe_tile_cache *tc,
    
    assert(tc->surface);
    assert(tc->transfer);
-   assert(tc->transfer_map);
 
    if(!tc->transfer_map)
       lp_tile_cache_map_transfers(tc);
 
+   assert(tc->transfer_map);
+
    switch(tile->status) {
    case LP_TILE_STATUS_CLEAR:
       /* don't get tile from framebuffer, just clear it */



More information about the mesa-commit mailing list