intel/isl: Allow 1D surfaces with compressed formats
authorTopi Pohjolainen <topi.pohjolainen@intel.com>
Wed, 5 Jul 2017 07:26:03 +0000 (10:26 +0300)
committerTopi Pohjolainen <topi.pohjolainen@intel.com>
Fri, 21 Jul 2017 21:14:16 +0000 (00:14 +0300)
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
src/intel/isl/isl.c

index d4a7d00208f32b8babf49554a77664211175870c..8cfec47733c3630064fe5979de619ad324e8fb30 100644 (file)
@@ -1090,7 +1090,7 @@ isl_calc_phys_total_extent_el_gen9_1d(
 {
    MAYBE_UNUSED const struct isl_format_layout *fmtl = isl_format_get_layout(info->format);
 
-   assert(phys_level0_sa->height == 1);
+   assert(phys_level0_sa->height / fmtl->bh == 1);
    assert(phys_level0_sa->depth == 1);
    assert(info->samples == 1);
    assert(image_align_sa->w >= fmtl->bw);