intel: Use RENDER_SURFACE_STATE::DepthStencilResource
authorNanley Chery <nanley.g.chery@intel.com>
Sat, 10 Aug 2019 01:04:58 +0000 (18:04 -0700)
committerNanley Chery <nanley.g.chery@intel.com>
Mon, 28 Oct 2019 17:47:05 +0000 (10:47 -0700)
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/intel/genxml/gen12.xml
src/intel/isl/isl_surface_state.c

index 11f0d926466ac4d2e4ba1ff25f1e9b2f531ddae3..1e8c0908851343289a1f67c76017928e91b5a67e 100644 (file)
     <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"/>
index dfa0656f7b2b5dbc31de9c1ef769ec7d8682fe1d..a7ef407360d20c79cbc61ce4c53c4c339b1e2154 100644 (file)
@@ -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