[Mesa-dev] [PATCH v2 20/32] intel/isl: Don't compute image tiling data for Yf/Ys tiling
Jason Ekstrand
jason at jlekstrand.net
Fri Oct 12 18:46:50 UTC 2018
Reviewed-by: Topi Pohjolainen <topi.pohjolainen at intel.com>
---
src/intel/isl/isl_storage_image.c | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/src/intel/isl/isl_storage_image.c b/src/intel/isl/isl_storage_image.c
index d9c45505a14..93805bb98ea 100644
--- a/src/intel/isl/isl_storage_image.c
+++ b/src/intel/isl/isl_storage_image.c
@@ -240,6 +240,17 @@ isl_surf_fill_image_param(const struct isl_device *dev,
view->array_len :
isl_minify(surf->logical_level0_px.d, view->base_level);
+ if (isl_tiling_is_std_y(surf->tiling)) {
+ /* The shader code for doing manual tiling calculations doesn't support
+ * Yf or Ys tiling. Fortunately, we never need it on gen9 where Yf and
+ * Ys were added.
+ */
+ assert(ISL_DEV_GEN(dev) >= 9);
+ assert(isl_has_matching_typed_storage_image_format(dev->info,
+ view->format));
+ return;
+ }
+
uint32_t tile_z_el, phys_array_layer;
isl_surf_get_image_offset_el(surf, view->base_level,
surf->dim == ISL_SURF_DIM_3D ?
--
2.19.1
More information about the mesa-dev
mailing list