Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Nanley Chery <nanley.g.chery@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13739>
if (surf->tiling == ISL_TILING_LINEAR)
return false;
+ /* TODO: Disable for now, as we're not sure about the meaning of
+ * 3DSTATE_CPSIZE_CONTROL_BUFFER::CPCBCompressionEnable
+ */
+ if (isl_surf_usage_is_cpb(surf->usage))
+ return false;
+
if (ISL_GFX_VER(dev) >= 12) {
if (isl_surf_usage_is_stencil(surf->usage)) {
/* HiZ and MCS aren't allowed with stencil */
* Start LOD" to 15 to prevent the hardware from trying to use them.
*/
cpb.MipTailStartLOD = 15;
+ /* TODO:
+ *
+ * cpb.CPCBCompressionEnable is this CCS compression? Currently disabled
+ * in isl_surf_supports_ccs() for CPB buffers.
+ */
} else {
cpb.SurfaceType = SURFTYPE_NULL;
cpb.TiledMode = TILE64;