[Mesa-dev] [PATCH v2 11/32] intel/isl: Use ISL_DIM_LAYOUT_GEN9_1D for Yf/Ys
Jason Ekstrand
jason at jlekstrand.net
Fri Oct 12 18:46:41 UTC 2018
Reviewed-by: Topi Pohjolainen <topi.pohjolainen at intel.com>
---
src/intel/isl/isl.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/intel/isl/isl.c b/src/intel/isl/isl.c
index 21d2babdb56..58091795a26 100644
--- a/src/intel/isl/isl.c
+++ b/src/intel/isl/isl.c
@@ -696,8 +696,10 @@ isl_surf_choose_dim_layout(const struct isl_device *dev,
*
* In other words, ISL_DIM_LAYOUT_GEN9_1D is only used for linear
* surfaces and, for tiled surfaces, ISL_DIM_LAYOUT_GEN4_2D is used.
+ * Yf and Ys tiled surfaces are considered to be linear for the
+ * purposes of handling 1D surfaces.
*/
- if (tiling == ISL_TILING_LINEAR)
+ if (tiling == ISL_TILING_LINEAR || isl_tiling_is_std_y(tiling))
return ISL_DIM_LAYOUT_GEN9_1D;
else
return ISL_DIM_LAYOUT_GEN4_2D;
--
2.19.1
More information about the mesa-dev
mailing list