intel/blorp: Allow single slice converter to suppress number of layers
authorTopi Pohjolainen <topi.pohjolainen@intel.com>
Mon, 29 Aug 2016 12:21:51 +0000 (15:21 +0300)
committerTopi Pohjolainen <topi.pohjolainen@intel.com>
Thu, 8 Sep 2016 05:53:45 +0000 (08:53 +0300)
Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/intel/blorp/blorp_blit.c

index f5cb16a2c2a45820ef215744e59bb5d5f7b13e5a..2b6adc39f01ecd8b307fc983df0c1f20251d2f0e 100644 (file)
@@ -1271,9 +1271,6 @@ static void
 surf_convert_to_single_slice(const struct isl_device *isl_dev,
                              struct brw_blorp_surface_info *info)
 {
-   /* This only makes sense for a single level and array slice */
-   assert(info->view.levels == 1 && info->view.array_len == 1);
-
    /* 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 &&