diff options
author | Nanley Chery <[email protected]> | 2019-08-09 18:04:58 -0700 |
---|---|---|
committer | Nanley Chery <[email protected]> | 2019-10-28 10:47:05 -0700 |
commit | 6312328a61a372e78d246068ea0004868954a0aa (patch) | |
tree | 2c5a43224dd92ba39ce570a75fcb3f923980eb69 /src/intel | |
parent | 5d34a9975f47e8cd4f57c304f5e39ab6c7201603 (diff) |
intel: Use RENDER_SURFACE_STATE::DepthStencilResource
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/intel')
-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 |