llvmpipe: Start hiding llvmpipe_cached_tile.
[mesa.git] / src / gallium / drivers / llvmpipe / lp_tile_cache.c
index c280cfe3ebc655496eb593e0c60d4098aecb0081..2aa3d091710e2a6f807fde810c8c89ab549d37d6 100644 (file)
@@ -330,7 +330,7 @@ lp_flush_tile_cache(struct llvmpipe_tile_cache *tc)
  * Get a tile from the cache.
  * \param x, y  position of tile, in pixels
  */
-struct llvmpipe_cached_tile *
+void *
 lp_find_cached_tile(struct llvmpipe_tile_cache *tc, 
                     union tile_address addr )
 {
@@ -368,7 +368,8 @@ lp_find_cached_tile(struct llvmpipe_tile_cache *tc,
    }
 
    tc->last_tile = tile;
-   return tile;
+
+   return tile->data.color;
 }