llvmpipe: Fix lp_get_cached_tile.

Align coordinates to tile boundaries.
This commit is contained in:
José Fonseca 2009-09-20 18:04:00 +01:00
parent 76c2e34b22
commit 911a7a82cd
1 changed files with 1 additions and 1 deletions

View File

@ -260,7 +260,7 @@ lp_get_cached_tile(struct llvmpipe_tile_cache *tc,
case LP_TILE_STATUS_UNDEFINED:
/* get new tile data from transfer */
lp_get_tile_rgba_soa(pt, x, y, tile->color);
lp_get_tile_rgba_soa(pt, x & ~(TILE_SIZE - 1), y & ~(TILE_SIZE - 1), tile->color);
tile->status = LP_TILE_STATUS_DEFINED;
break;