From 298e8dee61dd4fdb5458a8a74c9fe7add118003b Mon Sep 17 00:00:00 2001 From: Lionel Landwerlin Date: Mon, 19 Jun 2023 16:38:24 +0300 Subject: [PATCH] isl: program 3DSTATE_HIER_DEPTH_BUFFER_BODY::TiledMode as documented Since this value is 0, it doesn't change anything, but it's just good practice like we did for Gfx12.5 right above. Signed-off-by: Lionel Landwerlin Reviewed-by: Paulo Zanoni Reviewed-by: Nanley Chery Part-of: --- src/intel/isl/isl_emit_depth_stencil.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/intel/isl/isl_emit_depth_stencil.c b/src/intel/isl/isl_emit_depth_stencil.c index aaa2a8e80d0..da03391ac9c 100644 --- a/src/intel/isl/isl_emit_depth_stencil.c +++ b/src/intel/isl/isl_emit_depth_stencil.c @@ -299,6 +299,19 @@ isl_genX(emit_depth_stencil_hiz_s)(const struct isl_device *dev, void *batch, */ assert(info->hiz_surf->tiling == ISL_TILING_HIZ); hiz.TiledMode = TILE4; +#elif GFX_VERx10 >= 120 + /* From 3DSTATE_HIER_DEPTH_BUFFER_BODY::TiledMode, + * + * HZ buffer only supports Tile Y mode. + * + * and + * + * Value | Name + * ---------------------------------------- + * 0h | No tiled resource (Tile Y Mode). + */ + assert(info->hiz_surf->tiling == ISL_TILING_HIZ); + hiz.TiledMode = NONE; #endif #if GFX_VER >= 12