aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoonas Kylmälä <joonas.kylmala@iki.fi>2020-07-22 18:30:44 -0400
committerJoonas Kylmälä <joonas.kylmala@iki.fi>2020-07-22 18:30:44 -0400
commit46dff9f0653f0e5673d9e5e32e86a1f69a88f435 (patch)
tree5a5ec08fc2c98ae1f444962d5c003778e5f0e3ad
parentd591a18a804f9c10bb4e66156b154a6f8ffd5d99 (diff)
downloaddevice_samsung_i9300-46dff9f0653f0e5673d9e5e32e86a1f69a88f435.tar.gz
device_samsung_i9300-46dff9f0653f0e5673d9e5e32e86a1f69a88f435.tar.bz2
device_samsung_i9300-46dff9f0653f0e5673d9e5e32e86a1f69a88f435.zip
Correct graphics settings
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ä <joonas.kylmala@iki.fi>
-rw-r--r--init.smdk4x12.rc3
-rw-r--r--system.prop2
2 files changed, 1 insertions, 4 deletions
diff --git a/init.smdk4x12.rc b/init.smdk4x12.rc
index ea8ade0..97dbeb7 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