Commit 61f938df authored by DerTeufel's avatar DerTeufel Committed by fire855
Browse files

allow building with hwc1

TARGET_USES_HWC1 := true has to be set in device tree (BoardConfig.mk), at the top (before vendor/mad gets included)
parent 4f88b678
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -6,10 +6,15 @@ USE_OPENGL_RENDERER := true
TARGET_FORCE_HWC_FOR_VIRTUAL_DISPLAYS := true
NUM_FRAMEBUFFER_SURFACE_BUFFERS := 3
TARGET_RUNNING_WITHOUT_SYNC_FRAMEWORK := true

# HWC2 by default
ifneq ($(TARGET_USES_HWC1), true)
VSYNC_EVENT_PHASE_OFFSET_NS := -8000000
SF_VSYNC_EVENT_PHASE_OFFSET_NS := -8000000
PRESENT_TIME_OFFSET_FROM_VSYNC_NS := 0
TARGET_USES_HWC2 := true
endif

BOARD_EGL_CFG := vendor/mad/prebuilt/etc/egl.cfg

# Boot animation