Module: Mesa Branch: master Commit: 911a7a82cd44e89dd7c24a256a0a172f01eadde3 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=911a7a82cd44e89dd7c24a256a0a172f01eadde3
Author: José Fonseca <[email protected]> Date: Sun Sep 20 18:04:00 2009 +0100 llvmpipe: Fix lp_get_cached_tile. Align coordinates to tile boundaries. --- src/gallium/drivers/llvmpipe/lp_tile_cache.c | 2 +- 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 ddda565..2e576e6 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; _______________________________________________ mesa-commit mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/mesa-commit
