summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/llvmpipe
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2009-09-20 18:04:00 +0100
committerJosé Fonseca <jfonseca@vmware.com>2009-09-20 18:09:34 +0100
commit911a7a82cd44e89dd7c24a256a0a172f01eadde3 (patch)
tree2c05177525a9015ec568aa5af496130af6754e69 /src/gallium/drivers/llvmpipe
parent76c2e34b22836c3a71a096be5620ded97a2ae636 (diff)
llvmpipe: Fix lp_get_cached_tile.
Align coordinates to tile boundaries.
Diffstat (limited to 'src/gallium/drivers/llvmpipe')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_tile_cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_tile_cache.c b/src/gallium/drivers/llvmpipe/lp_tile_cache.c
index ddda5650a9..2e576e6039 100644
--- a/src/gallium/drivers/llvmpipe/lp_tile_cache.c
+++ b/src/gallium/drivers/llvmpipe/lp_tile_cache.c
@@ -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;