intel/isl: Support Yf/Ys/Tile-64 in isl_surf_get_image_offset_sa
authorJason Ekstrand <jason.ekstrand@intel.com>
Thu, 22 Feb 2018 22:53:59 +0000 (14:53 -0800)
committerMarge Bot <emma+marge@anholt.net>
Wed, 22 Mar 2023 08:32:52 +0000 (08:32 +0000)
commit87efb9c3b33660804c123c7db7e8e51edde95bb2
tree2a5437fa26efdac274bf7d4d7edeecefbe921de2
parentd4bce9508b12c521515614fac0848f73255cd473
intel/isl: Support Yf/Ys/Tile-64 in isl_surf_get_image_offset_sa

All that's really needed here is to handle the array offsetting by using
an Z or array offset instead of the Y offset.

This patch originally changed get_image_offset_sa_gfx9_1d(), but since
we only use linear with the 1d case, it was dropped.

Rework:
 * Jordan: Include ISL_TILING_64 as well
 * Jordan: Drop change to get_image_offset_sa_gfx9_1d as
   recommended by Nanley

Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
Reviewed-by: Nanley Chery <nanley.g.chery@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21113>
src/intel/isl/isl.c