projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b00b06b
)
llvmpipe: Ensure transfers are mapped.
author
José Fonseca
<jfonseca@vmware.com>
Fri, 4 Dec 2009 21:16:14 +0000
(21:16 +0000)
committer
José Fonseca
<jfonseca@vmware.com>
Fri, 4 Dec 2009 21:27:03 +0000
(21:27 +0000)
This shouldn't happen but it does by some misterious reason. Fail the
assertion but at least do not segfault on release builds.
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 50891c42271b88a54dfa53751b6ab249edc134a1..e83210f93bc32acdfb70d2884d04b93b7ad9aaf4 100644
(file)
--- a/
src/gallium/drivers/llvmpipe/lp_tile_cache.c
+++ b/
src/gallium/drivers/llvmpipe/lp_tile_cache.c
@@
-290,6
+290,10
@@
lp_get_cached_tile(struct llvmpipe_tile_cache *tc,
assert(tc->surface);
assert(tc->transfer);
+ assert(tc->transfer_map);
+
+ if(!tc->transfer_map)
+ lp_tile_cache_map_transfers(tc);
switch(tile->status) {
case LP_TILE_STATUS_CLEAR: