mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 13:28:06 +02:00
intel/isl: Support HIZ_CCS in emit_depth_stencil_hiz
v2. Remove undocumented CCS_E-only mode for depth. (Nanley) Co-authored-by: Nanley Chery <nanley.g.chery@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
6312328a61
commit
ab994ecae6
1 changed files with 10 additions and 2 deletions
|
|
@ -109,6 +109,11 @@ isl_genX(emit_depth_stencil_hiz_s)(const struct isl_device *dev, void *batch,
|
|||
db.SurfaceQPitch =
|
||||
isl_surf_get_array_pitch_el_rows(info->depth_surf) >> 2;
|
||||
#endif
|
||||
|
||||
#if GEN_GEN >= 12
|
||||
db.DepthBufferCompressionEnable =
|
||||
info->hiz_usage == ISL_AUX_USAGE_HIZ_CCS;
|
||||
#endif
|
||||
}
|
||||
|
||||
#if GEN_GEN == 5 || GEN_GEN == 6
|
||||
|
|
@ -177,8 +182,11 @@ isl_genX(emit_depth_stencil_hiz_s)(const struct isl_device *dev, void *batch,
|
|||
};
|
||||
|
||||
assert(info->hiz_usage == ISL_AUX_USAGE_NONE ||
|
||||
info->hiz_usage == ISL_AUX_USAGE_HIZ);
|
||||
if (info->hiz_usage == ISL_AUX_USAGE_HIZ) {
|
||||
info->hiz_usage == ISL_AUX_USAGE_HIZ ||
|
||||
info->hiz_usage == ISL_AUX_USAGE_HIZ_CCS);
|
||||
if (info->hiz_usage == ISL_AUX_USAGE_HIZ ||
|
||||
info->hiz_usage == ISL_AUX_USAGE_HIZ_CCS) {
|
||||
assert(GEN_GEN >= 12 || info->hiz_usage == ISL_AUX_USAGE_HIZ);
|
||||
db.HierarchicalDepthBufferEnable = true;
|
||||
|
||||
hiz.SurfaceBaseAddress = info->hiz_address;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue