From: Jason Ekstrand Date: Sat, 10 Feb 2018 18:52:51 +0000 (-0800) Subject: intel/blorp: Assert that we don't re-layout a compressed surface X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5749c0ebc43674aab1632bfd590238b13182fcdb;p=mesa.git intel/blorp: Assert that we don't re-layout a compressed surface Reviewed-by: Lionel Landwerlin --- 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 &&