intel/blorp: Assert that we don't re-layout a compressed surface
authorJason Ekstrand <jason.ekstrand@intel.com>
Sat, 10 Feb 2018 18:52:51 +0000 (10:52 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Wed, 12 Dec 2018 14:32:32 +0000 (08:32 -0600)
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/intel/blorp/blorp_blit.c

index ae3e3c5093065e57eb9bf7536f139ef96bf60f01..a5da7d015e292198aa72f4d8f42ecade53147e30 100644 (file)
@@ -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 &&