From 77ef7050587bba43c219e9d22170237898b2bb23 Mon Sep 17 00:00:00 2001 From: José Fonseca Date: Sun, 4 Oct 2009 13:25:24 +0100 Subject: llvmpipe: Ensure tile cache transfers are mapped before flushing it. --- src/gallium/drivers/llvmpipe/lp_tile_cache.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/gallium/drivers/llvmpipe/lp_tile_cache.c') diff --git a/src/gallium/drivers/llvmpipe/lp_tile_cache.c b/src/gallium/drivers/llvmpipe/lp_tile_cache.c index 68d3fa3282..ec3e002d62 100644 --- a/src/gallium/drivers/llvmpipe/lp_tile_cache.c +++ b/src/gallium/drivers/llvmpipe/lp_tile_cache.c @@ -236,6 +236,8 @@ lp_flush_tile_cache(struct llvmpipe_tile_cache *tc) if(!pt) return; + assert(tc->transfer_map); + /* push the tile to all positions marked as clear */ for (y = 0; y < pt->height; y += TILE_SIZE) { for (x = 0; x < pt->width; x += TILE_SIZE) { -- cgit v1.2.3