summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeonsi/si_blit.c
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2017-06-05 19:51:38 +0200
committerMarek Olšák <[email protected]>2017-06-07 19:38:39 +0200
commitd2ee423b69660a219c031abad101decd0ecae327 (patch)
tree3414d58d95f398ed714fb1f75ed5c93fba4830dd /src/gallium/drivers/radeonsi/si_blit.c
parente003e3c4c058e69e3dcaee3d31493b27ffc0052c (diff)
radeonsi: enable TC-compatible stencil compression on VI
Most things are in place. Ideally we won't see decompress blits for stencil anymore. Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_blit.c')
-rw-r--r--src/gallium/drivers/radeonsi/si_blit.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeonsi/si_blit.c b/src/gallium/drivers/radeonsi/si_blit.c
index f5d9048d8c9..500c5bfcf7c 100644
--- a/src/gallium/drivers/radeonsi/si_blit.c
+++ b/src/gallium/drivers/radeonsi/si_blit.c
@@ -332,6 +332,8 @@ si_flush_depth_texture(struct si_context *sctx,
}
assert(!tex->tc_compatible_htile || levels_z == 0);
+ assert(!tex->tc_compatible_htile || levels_s == 0 ||
+ !r600_can_sample_zs(tex, true));
/* We may have to allocate the flushed texture here when called from
* si_decompress_subresource.