intel: Use RENDER_SURFACE_STATE::DepthStencilResource

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
Nanley Chery 2019-08-09 18:04:58 -07:00
parent 5d34a9975f
commit 6312328a61
2 changed files with 6 additions and 0 deletions

View file

@ -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"/>

View 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