isl: Fix get_image_offset_sa_gen4_2d for multisample surfaces
authorJason Ekstrand <jason.ekstrand@intel.com>
Fri, 24 Jun 2016 04:50:22 +0000 (21:50 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Wed, 17 Aug 2016 21:46:22 +0000 (14:46 -0700)
commitf6c75df083a65f2525fa366396c1ac8b7e6298eb
tree57d788929c8e32d780dfc6a04421591b75c7a162
parent7997f4f95b59a48a579d5f57a26a89dbcc5b2c7f
isl: Fix get_image_offset_sa_gen4_2d for multisample surfaces

The function takes a logical array layer but was assuming it was a physical
array layer.  While we'er here, we also make it not assert-fail on gen9 3-D
surfaces.

Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
src/intel/isl/isl.c