struct pipe_surface *tex_surf;
int tex_face, tex_level, tex_z;
+
+ struct softpipe_cached_tile tile; /**< scratch tile for clears */
};
const uint w = tc->surface->width;
const uint h = tc->surface->height;
uint x, y;
- struct softpipe_cached_tile tile;
uint numCleared = 0;
- /* clear one tile to the clear value */
- clear_tile(&tile, ps->format, tc->clear_val);
+ /* clear the scratch tile to the clear value */
+ clear_tile(&tc->tile, ps->format, tc->clear_val);
/* push the tile to all positions marked as clear */
for (y = 0; y < h; y += TILE_SIZE) {
if (is_clear_flag_set(tc->clear_flags, x, y)) {
pipe->put_tile(pipe, ps,
x, y, TILE_SIZE, TILE_SIZE,
- tile.data.color32, 0/*STRIDE*/);
+ tc->tile.data.color32, 0/*STRIDE*/);
/* do this? */
clear_clear_flag(tc->clear_flags, x, y);