aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/llvmpipe/lp_tile_cache.c
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2009-10-04 13:25:24 +0100
committerJosé Fonseca <[email protected]>2009-10-04 22:03:16 +0100
commit77ef7050587bba43c219e9d22170237898b2bb23 (patch)
tree0fecc4510aafc235a522d126a0db2ff36f007a53 /src/gallium/drivers/llvmpipe/lp_tile_cache.c
parent589ec337f0080893baba996201cf65bb6e1a2fec (diff)
llvmpipe: Ensure tile cache transfers are mapped before flushing it.
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_tile_cache.c')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_tile_cache.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_tile_cache.c b/src/gallium/drivers/llvmpipe/lp_tile_cache.c
index 68d3fa3282d..ec3e002d628 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) {