llvmpipe: Fix lp_get_cached_tile.
Align coordinates to tile boundaries.
This commit is contained in:
parent
76c2e34b22
commit
911a7a82cd
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue