From 488fa591dc5ad38a7da118f60964af174482dcf4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joonas=20Kylm=C3=A4l=C3=A4?= Date: Wed, 22 Jul 2020 18:22:39 -0400 Subject: Correct graphics settings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The hardware seems to support vsync, at least no erros come without this setting. Overlay planes also work, the issue with graphics corruption was previously because we allocated graphics buffers for SCANOUT (buffers to be shown on display) on the GPU render node which seems to allocate the memory non-contiguously with MMU. The exynos display controller seems to require contiguous memory. When gralloc.gbm.device is card0 and kmsro driver is enabled then it handles the allocation between card and render nodes correctly. Signed-off-by: Joonas Kylmälä --- init.smdk4x12.rc | 3 --- system.prop | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/init.smdk4x12.rc b/init.smdk4x12.rc index f230ba4..1d2ce36 100644 --- a/init.smdk4x12.rc +++ b/init.smdk4x12.rc @@ -46,9 +46,6 @@ on early-boot chmod 777 /sys/class/backlight/panel/brightness chown graphics graphics /sys/kernel/debug/sync/info - setprop debug.sf.no_hw_vsync 1 - setprop hwc.drm.use_overlay_planes 0 # 1 causes graphics corruption with Lima - on post-fs-data setprop vold.post_fs_data_done 1 start resize2fs_partitions diff --git a/system.prop b/system.prop index ba3db67..8b789ea 100644 --- a/system.prop +++ b/system.prop @@ -19,6 +19,6 @@ ro.hardware.hwcomposer=drm ro.hardware.gralloc=gbm drm.gpu.force_software=1 hwc.drm.device=/dev/dri/card0 -gralloc.gbm.device=/dev/dri/renderD129 +gralloc.gbm.device=/dev/dri/card0 ro.config.avoid_gfx_accel=1 debug.sf.nobootanimation=1 -- cgit v1.2.3