From 5749c0ebc43674aab1632bfd590238b13182fcdb Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Sat, 10 Feb 2018 10:52:51 -0800 Subject: [PATCH] intel/blorp: Assert that we don't re-layout a compressed surface Reviewed-by: Lionel Landwerlin --- 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 ae3e3c50930..a5da7d015e2 100644 --- a/src/intel/blorp/blorp_blit.c +++ b/src/intel/blorp/blorp_blit.c @@ -1518,6 +1518,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.30.2