diff options
author | Dave Airlie <[email protected]> | 2014-06-11 14:03:11 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2014-06-11 14:03:11 +1000 |
commit | 0d8944866293c147cb043322cc68e13136278ae5 (patch) | |
tree | c7a83d6b45414b2d68d571fca601dbbd3cbbff68 /src | |
parent | 9bc12ef241a18002782ae79048891e89e07ef68d (diff) |
softpipe: fix pt->resource assert placement
oops meant to move this.
Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/softpipe/sp_tile_cache.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/softpipe/sp_tile_cache.c b/src/gallium/drivers/softpipe/sp_tile_cache.c index ceb66f67502..78534b55902 100644 --- 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 */ |