intel: Use 3DSTATE_DEPTH_BUFFER::ControlSurfaceEnable
authorNanley Chery <nanley.g.chery@intel.com>
Sat, 10 Aug 2019 00:18:48 +0000 (17:18 -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_emit_depth_stencil.c

index 1e8c0908851343289a1f67c76017928e91b5a67e..8970ddf51a81945b512a6dc246635cc48081f22f 100644 (file)
     <field name="Command SubType" start="27" end="28" type="uint" default="3"/>
     <field name="Command Type" start="29" end="31" type="uint" default="3"/>
     <field name="Surface Pitch" start="32" end="49" type="uint"/>
+    <field name="Control Surface Enable" start="51" end="51" type="bool"/>
     <field name="Depth Buffer Compression Enable" start="53" end="53" type="bool"/>
     <field name="Hierarchical Depth Buffer Enable" start="54" end="54" type="bool"/>
     <field name="Corner Texel Mode" start="55" end="55" type="bool"/>
index e28ec836255f74d0bd35306ce4130f7b6a8443e0..c3815a6ac56e2aff6f626fa6e1728e1ad7426579 100644 (file)
@@ -111,7 +111,7 @@ isl_genX(emit_depth_stencil_hiz_s)(const struct isl_device *dev, void *batch,
 #endif
 
 #if GEN_GEN >= 12
-      db.DepthBufferCompressionEnable =
+      db.ControlSurfaceEnable = db.DepthBufferCompressionEnable =
          info->hiz_usage == ISL_AUX_USAGE_HIZ_CCS;
 #endif
    }