mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 13:28:06 +02:00
isl: disable CPB surface compression
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>
This commit is contained in:
parent
dff08cbf8e
commit
3ab7f4471c
2 changed files with 11 additions and 0 deletions
|
|
@ -2161,6 +2161,12 @@ isl_surf_supports_ccs(const struct isl_device *dev,
|
|||
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 */
|
||||
|
|
|
|||
|
|
@ -96,6 +96,11 @@ isl_genX(emit_cpb_control_s)(const struct isl_device *dev, void *batch,
|
|||
* 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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue