projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
76c2e34
)
llvmpipe: Fix lp_get_cached_tile.
author
José Fonseca
<jfonseca@vmware.com>
Sun, 20 Sep 2009 17:04:00 +0000
(18:04 +0100)
committer
José Fonseca
<jfonseca@vmware.com>
Sun, 20 Sep 2009 17:09:34 +0000
(18:09 +0100)
Align coordinates to tile boundaries.
src/gallium/drivers/llvmpipe/lp_tile_cache.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/llvmpipe/lp_tile_cache.c
b/src/gallium/drivers/llvmpipe/lp_tile_cache.c
index ddda5650a9266c1ea6dffa82ac549c1694e6c1a4..2e576e6039d45f841b6aa9012c0dcba0a50b4057 100644
(file)
--- 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;