diff options
-rw-r--r-- | src/intel/genxml/gen12.xml | 1 | ||||
-rw-r--r-- | src/intel/isl/isl_surface_state.c | 5 |
2 files changed, 6 insertions, 0 deletions
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 @@ <field name="Enable Unorm Path In Color Pipe" start="63" end="63" type="bool"/> <field name="Width" start="64" end="77" type="uint"/> <field name="Height" start="80" end="93" type="uint"/> + <field name="Depth Stencil Resource" start="95" end="95" type="bool"/> <field name="Surface Pitch" start="96" end="113" type="uint"/> <field name="Null Probing Enable" start="114" end="114" type="uint"/> <field name="Standard Tiling Mode Extensions" start="115" end="115" type="uint"/> 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 |