llvmpipe: Update tile status on flush.
authorJosé Fonseca <jfonseca@vmware.com>
Sun, 20 Sep 2009 11:28:07 +0000 (12:28 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Sun, 20 Sep 2009 17:09:34 +0000 (18:09 +0100)
src/gallium/drivers/llvmpipe/lp_tile_cache.c

index 143afec3d35313da6335383dc518980854ebea50..ddda5650a9266c1ea6dffa82ac549c1694e6c1a4 100644 (file)
@@ -225,11 +225,14 @@ lp_flush_tile_cache(struct llvmpipe_tile_cache *tc)
                            tc->clear_val);
 
             screen->transfer_unmap(screen, pt);
+
+            tile->status = LP_TILE_STATUS_UNDEFINED;
             break;
          }
 
          case LP_TILE_STATUS_DEFINED:
             lp_put_tile_rgba_soa(pt, x, y, tile->color);
+            tile->status = LP_TILE_STATUS_UNDEFINED;
             break;
          }
       }