From 6312328a61a372e78d246068ea0004868954a0aa Mon Sep 17 00:00:00 2001 From: Nanley Chery Date: Fri, 9 Aug 2019 18:04:58 -0700 Subject: [PATCH] intel: Use RENDER_SURFACE_STATE::DepthStencilResource Reviewed-by: Kenneth Graunke --- src/intel/genxml/gen12.xml | 1 + src/intel/isl/isl_surface_state.c | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/src/intel/genxml/gen12.xml b/src/intel/genxml/gen12.xml index 11f0d926466..1e8c0908851 100644 --- a/src/intel/genxml/gen12.xml +++ b/src/intel/genxml/gen12.xml @@ -711,6 +711,7 @@ + diff --git a/src/intel/isl/isl_surface_state.c b/src/intel/isl/isl_surface_state.c index dfa0656f7b2..a7ef407360d 100644 --- a/src/intel/isl/isl_surface_state.c +++ b/src/intel/isl/isl_surface_state.c @@ -281,6 +281,11 @@ isl_genX(surf_fill_state_s)(const struct isl_device *dev, void *state, s.SurfaceFormat = info->view->format; +#if GEN_GEN >= 12 + s.DepthStencilResource = + isl_surf_usage_is_depth_or_stencil(info->surf->usage); +#endif + #if GEN_GEN <= 5 s.ColorBufferComponentWriteDisables = info->write_disables; #else -- 2.30.2