[Mesa-dev] [PATCH 10/21] intel/isl: Use ISL_DIM_LAYOUT_GEN9_1D for Yf/Ys
Jason Ekstrand
jason at jlekstrand.net
Fri Feb 23 07:06:50 UTC 2018
---
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 fcbe2ad..68a92b8 100644
--- a/src/intel/isl/isl.c
+++ b/src/intel/isl/isl.c
@@ -678,8 +678,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.5.0.400.gff86faf
More information about the mesa-dev
mailing list