[Mesa-dev] [PATCH] intel/blorp: Assert that we don't re-layout a compressed surface
Jason Ekstrand
jason at jlekstrand.net
Thu Apr 5 17:50:29 UTC 2018
---
src/intel/blorp/blorp_blit.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/intel/blorp/blorp_blit.c b/src/intel/blorp/blorp_blit.c
index 0757db0..0f9ecb3 100644
--- a/src/intel/blorp/blorp_blit.c
+++ b/src/intel/blorp/blorp_blit.c
@@ -1395,6 +1395,9 @@ blorp_surf_convert_to_single_slice(const struct isl_device *isl_dev,
{
bool ok UNUSED;
+ /* It would be insane to try and do this on a compressed surface */
+ assert(info->aux_usage == ISL_AUX_USAGE_NONE);
+
/* Just bail if we have nothing to do. */
if (info->surf.dim == ISL_SURF_DIM_2D &&
info->view.base_level == 0 && info->view.base_array_layer == 0 &&
--
2.5.0.400.gff86faf
More information about the mesa-dev
mailing list