intel/isl/gen6: Allow arrayed stencil
authorTopi Pohjolainen <topi.pohjolainen@intel.com>
Sun, 14 May 2017 16:02:20 +0000 (19:02 +0300)
committerTopi Pohjolainen <topi.pohjolainen@intel.com>
Sat, 17 Jun 2017 03:38:56 +0000 (06:38 +0300)
Nothing prevents arrayed stencil surfaces even though hardware
doesn't support mipmapping.

Reviewed-by: Nanley Chery <nanley.g.chery@intel.com>
Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
src/intel/isl/isl.c

index 351612ad4f7079ffd22ff4f3751c6529cd3cc5cc..2449ffb29ae01c662f51d585e7804a40c27a0cbc 100644 (file)
@@ -447,7 +447,6 @@ isl_choose_array_pitch_span(const struct isl_device *dev,
           *    the storage for LODs other than LOD 0 is not needed.
           */
          assert(info->levels == 1);
-         assert(phys_level0_sa->array_len == 1);
          return ISL_ARRAY_PITCH_SPAN_COMPACT;
       } else {
          if ((ISL_DEV_GEN(dev) == 5 || ISL_DEV_GEN(dev) == 6) &&