projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9bc12ef
)
softpipe: fix pt->resource assert placement
author
Dave Airlie
<airlied@redhat.com>
Wed, 11 Jun 2014 04:03:11 +0000
(14:03 +1000)
committer
Dave Airlie
<airlied@redhat.com>
Wed, 11 Jun 2014 04:03:11 +0000
(14:03 +1000)
oops meant to move this.
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/gallium/drivers/softpipe/sp_tile_cache.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/softpipe/sp_tile_cache.c
b/src/gallium/drivers/softpipe/sp_tile_cache.c
index ceb66f6750218817beda8e07730d88695df50365..78534b55902619dd8b5bd35bb50f1493f42d8c9e 100644
(file)
--- a/
src/gallium/drivers/softpipe/sp_tile_cache.c
+++ b/
src/gallium/drivers/softpipe/sp_tile_cache.c
@@
-529,7
+529,6
@@
sp_find_cached_tile(struct softpipe_tile_cache *tc,
if (addr.value != tc->tile_addrs[pos].value) {
- assert(pt->resource);
layer = tc->tile_addrs[pos].bits.layer;
if (tc->tile_addrs[pos].bits.invalid == 0) {
/* put dirty tile back in framebuffer */
@@
-570,6
+569,7
@@
sp_find_cached_tile(struct softpipe_tile_cache *tc,
layer = tc->tile_addrs[pos].bits.layer;
pt = tc->transfer[layer];
+ assert(pt->resource);
if (is_clear_flag_set(tc->clear_flags, addr, tc->clear_flags_size)) {
/* don't get tile from framebuffer, just clear it */