mirror of https://gitlab.freedesktop.org/mesa/mesa
isl: set NullPageCoherencyEnable for depth/stencil sparse surfaces
Not setting this bits, it seems we get incorrect depth values (i.e not zero) for null depth/stencil tiles. Fixes vkd3d-proton's test_sparse_depth_stencil_rendering CTS doesn´t seem to exercise any depth/stencil format. Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Cc: mesa-stable Reviewed-by: Tapani Pälli <tapani.palli@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28611>
This commit is contained in:
parent
74955dbed7
commit
2dd321963f
|
@ -200,6 +200,9 @@ isl_genX(emit_depth_stencil_hiz_s)(const struct isl_device *dev, void *batch,
|
||||||
#if GFX_VER == 12
|
#if GFX_VER == 12
|
||||||
db.ControlSurfaceEnable = db.DepthBufferCompressionEnable =
|
db.ControlSurfaceEnable = db.DepthBufferCompressionEnable =
|
||||||
isl_aux_usage_has_ccs(info->hiz_usage);
|
isl_aux_usage_has_ccs(info->hiz_usage);
|
||||||
|
#endif
|
||||||
|
#if GFX_VER >= 12
|
||||||
|
db.NullPageCoherencyEnable = info->depth_surf->usage & ISL_SURF_USAGE_SPARSE_BIT;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -271,6 +274,9 @@ isl_genX(emit_depth_stencil_hiz_s)(const struct isl_device *dev, void *batch,
|
||||||
#if GFX_VER >= 8
|
#if GFX_VER >= 8
|
||||||
sb.SurfaceQPitch =
|
sb.SurfaceQPitch =
|
||||||
isl_surf_get_array_pitch_el_rows(info->stencil_surf) >> 2;
|
isl_surf_get_array_pitch_el_rows(info->stencil_surf) >> 2;
|
||||||
|
#endif
|
||||||
|
#if GFX_VER >= 12
|
||||||
|
sb.NullPageCoherencyEnable = info->stencil_surf->usage & ISL_SURF_USAGE_SPARSE_BIT;
|
||||||
#endif
|
#endif
|
||||||
} else {
|
} else {
|
||||||
#if GFX_VER >= 12
|
#if GFX_VER >= 12
|
||||||
|
|
Loading…
Reference in New Issue