mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 04:38:03 +02:00
intel: Use RENDER_SURFACE_STATE::DepthStencilResource
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
5d34a9975f
commit
6312328a61
2 changed files with 6 additions and 0 deletions
|
|
@ -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"/>
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue