Skip to content
Snippets Groups Projects
Commit 8f40003a authored by Sjoerd Simons's avatar Sjoerd Simons
Browse files

HACK: MTK: Disable AFBC support

Starting with Mesa 25 AFBC will get more eagerly used. Unfortunately it
seems both primary and overlay planes on Genio 700 and Genio 1200 are
broken in this regard. On 1200 it results in odd corrupted frames, while
on 700 it results in vblank timeouts (for primary planes)

Add a HACK to disable AFBC for now until this can be further diagnosed
parent 5dfb3dd5
No related branches found
No related tags found
No related merge requests found
......@@ -21,9 +21,11 @@
static const u64 modifiers[] = {
DRM_FORMAT_MOD_LINEAR,
/* HACK disable AFBC support for now
DRM_FORMAT_MOD_ARM_AFBC(AFBC_FORMAT_MOD_BLOCK_SIZE_32x8 |
AFBC_FORMAT_MOD_SPLIT |
AFBC_FORMAT_MOD_SPARSE),
*/
DRM_FORMAT_MOD_INVALID,
};
......@@ -74,6 +76,9 @@ static bool mtk_plane_format_mod_supported(struct drm_plane *plane,
if (modifier == DRM_FORMAT_MOD_LINEAR)
return true;
/* HACK: Disable AFBC support for all planes */
return false;
if (modifier != DRM_FORMAT_MOD_ARM_AFBC(
AFBC_FORMAT_MOD_BLOCK_SIZE_32x8 |
AFBC_FORMAT_MOD_SPLIT |
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment