blob: 3ad155f2607937d9f7e81cfe4bbe60c5c4a44407 [file] [log] [blame]
Naseer Ahmed726b5d32018-12-18 15:48:41 -05001# Display product definitions
2PRODUCT_PACKAGES += \
Naseer Ahmed726b5d32018-12-18 15:48:41 -05003 android.hardware.graphics.mapper@2.0-impl-qti-display \
Tharaga Balachandrand3331da2019-06-06 11:33:29 -04004 vendor.qti.hardware.display.allocator-service \
Rajavenu Kyatham8193f742019-06-11 19:19:02 +05305 vendor.qti.hardware.display.composer-service \
Naseer Ahmed726b5d32018-12-18 15:48:41 -05006 android.hardware.memtrack@1.0-impl \
7 android.hardware.memtrack@1.0-service \
8 android.hardware.light@2.0-impl \
9 android.hardware.light@2.0-service \
Naseer Ahmed082f2282019-04-15 19:49:29 -040010 gralloc.$(TARGET_BOARD_PLATFORM) \
11 lights.$(TARGET_BOARD_PLATFORM) \
12 hwcomposer.$(TARGET_BOARD_PLATFORM) \
13 memtrack.$(TARGET_BOARD_PLATFORM) \
Ravikanth Tunikiabe9d8d2019-04-01 10:15:54 -070014 libqdMetaData \
Ramakant Singhf4d170f2019-05-27 15:27:26 +053015 libdisplayconfig.vendor \
Naseer Ahmed726b5d32018-12-18 15:48:41 -050016 vendor.display.config@1.0.vendor \
17 vendor.display.config@1.1.vendor \
18 vendor.display.config@1.2.vendor \
19 vendor.display.config@1.3.vendor \
20 vendor.display.config@1.4.vendor \
21 vendor.display.config@1.5.vendor \
Ramkumar Radhakrishnan2f8ebf42019-02-28 16:50:08 -080022 vendor.display.config@1.6.vendor \
23 vendor.display.config@1.7.vendor \
24 vendor.display.config@1.8.vendor \
Archit Srivastavaa59c4ff2019-05-20 10:54:22 +053025 vendor.display.config@1.9.vendor \
Dileep Marchyaafa45bc2019-06-21 17:05:31 +053026 vendor.display.config@1.10.vendor \
Naseer Ahmed726b5d32018-12-18 15:48:41 -050027 modetest
28
29#QDCM calibration xml file for 2k panel
30PRODUCT_COPY_FILES += hardware/qcom/display/config/qdcm_calib_data_nt35597_cmd_mode_dsi_truly_panel_with_DSC.xml:$(TARGET_COPY_OUT_VENDOR)/etc/qdcm_calib_data_nt35597_cmd_mode_dsi_truly_panel_with_DSC.xml
31PRODUCT_COPY_FILES += hardware/qcom/display/config/qdcm_calib_data_nt35597_cmd_mode_dsi_truly_panel_with_DSC.xml:$(TARGET_COPY_OUT_VENDOR)/etc/qdcm_calib_data_nt35597_video_mode_dsi_truly_panel_with_DSC.xml
32#QDCM calibration xml file for 4k panel
33PRODUCT_COPY_FILES += hardware/qcom/display/config/qdcm_calib_data_Sharp_4k_cmd_mode_dsc_dsi_panel.xml:$(TARGET_COPY_OUT_VENDOR)/etc/qdcm_calib_data_Sharp_4k_cmd_mode_dsc_dsi_panel.xml
34PRODUCT_COPY_FILES += hardware/qcom/display/config/qdcm_calib_data_Sharp_4k_cmd_mode_dsc_dsi_panel.xml:$(TARGET_COPY_OUT_VENDOR)/etc/qdcm_calib_data_Sharp_4k_video_mode_dsc_dsi_panel.xml
35#QDCM calibration xml file for amoled panel
36PRODUCT_COPY_FILES += hardware/qcom/display/config/qdcm_calib_data_sw43404_amoled_cmd_mode_dsi_boe_panel_with_DSC.xml:$(TARGET_COPY_OUT_VENDOR)/etc/qdcm_calib_data_sw43404_amoled_cmd_mode_dsi_boe_panel_with_DSC.xml
37PRODUCT_COPY_FILES += hardware/qcom/display/config/qdcm_calib_data_sw43404_amoled_cmd_mode_dsi_boe_panel_with_DSC.xml:$(TARGET_COPY_OUT_VENDOR)/etc/qdcm_calib_data_sw43404_amoled_video_mode_dsi_boe_panel_with_DSC.xml
Qing Huang04de0302019-05-16 15:04:42 +080038PRODUCT_COPY_FILES += hardware/qcom/display/config/qdcm_calib_data_sw43404_amoled_cmd_mode_dsi_boe_panel_with_DSC.xml:$(TARGET_COPY_OUT_VENDOR)/etc/qdcm_calib_data_sw43404_amoled_boe_fhd+_panel_with_DSC.xml
39#QDCM calibration xml file for dual panel
40PRODUCT_COPY_FILES += hardware/qcom/display/config/qdcm_calib_data_default.xml:$(TARGET_COPY_OUT_VENDOR)/etc/qdcm_calib_data_sharp_1080p_cmd_mode_dsi_panel.xml
41PRODUCT_COPY_FILES += hardware/qcom/display/config/qdcm_calib_data_default.xml:$(TARGET_COPY_OUT_VENDOR)/etc/qdcm_calib_data_nt35695b_truly_fhd_command_mode_dsi_panel.xml
Naseer Ahmed726b5d32018-12-18 15:48:41 -050042
43PRODUCT_PROPERTY_OVERRIDES += \
44 persist.demo.hdmirotationlock=false \
45 persist.sys.sf.color_saturation=1.0 \
Naseer Ahmed3cd263a2019-05-01 14:38:27 -040046 persist.sys.sf.color_mode=9 \
Naseer Ahmed726b5d32018-12-18 15:48:41 -050047 debug.sf.hw=0 \
48 debug.egl.hw=0 \
49 debug.sf.latch_unsignaled=1 \
50 debug.mdpcomp.logs=0 \
Naseer Ahmed726b5d32018-12-18 15:48:41 -050051 vendor.gralloc.disable_ubwc=0 \
Alex Sarraf5705bcb2019-03-21 09:38:54 -070052 vendor.display.disable_scaler=0 \
Naseer Ahmed726b5d32018-12-18 15:48:41 -050053 vendor.display.disable_excl_rect=0 \
54 vendor.display.comp_mask=0 \
Ray Zhang9bace4c2019-05-22 20:11:00 +080055 vendor.display.enable_posted_start_dyn=1 \
Padmanabhan Komandurufafa0222019-03-18 14:57:56 +053056 vendor.display.enable_optimize_refresh=1 \
Sushil Chauhan1c8ea882019-07-31 13:26:04 -070057 vendor.display.use_smooth_motion=1
58
59ifeq ($(TARGET_BOARD_PLATFORM),kona)
60PRODUCT_PROPERTY_OVERRIDES += \
Sushil Chauhanab7c3572019-06-27 18:37:35 -070061 debug.sf.early_phase_offset_ns=500000 \
62 debug.sf.early_app_phase_offset_ns=500000 \
63 debug.sf.early_gl_phase_offset_ns=3000000 \
64 debug.sf.early_gl_app_phase_offset_ns=15000000 \
65 debug.sf.high_fps_early_phase_offset_ns=6100000 \
66 debug.sf.high_fps_early_gl_phase_offset_ns=9000000 \
67 debug.sf.phase_offset_threshold_for_next_vsync_ns=6100000
Sushil Chauhan1c8ea882019-07-31 13:26:04 -070068endif
Naseer Ahmed726b5d32018-12-18 15:48:41 -050069
Naseer Ahmedb84b31d2019-02-28 19:36:23 -050070#Set WCG properties
71PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.surface_flinger.has_wide_color_display=true
72PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.surface_flinger.has_HDR_display=true
73PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.surface_flinger.use_color_management=true
74PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.surface_flinger.wcg_composition_dataspace=143261696
75
Naseer Ahmed726b5d32018-12-18 15:48:41 -050076ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
77# Recovery is enabled, logging is enabled
78PRODUCT_PROPERTY_OVERRIDES += \
79 vendor.display.disable_hw_recovery_dump=0
80else
81# Recovery is enabled, logging is disabled
82PRODUCT_PROPERTY_OVERRIDES += \
83 vendor.display.disable_hw_recovery_dump=1
84endif
85
Alex Sarraf51797cd2019-03-01 10:03:54 -080086QMAA_ENABLED_HAL_MODULES += display
87ifeq ($(TARGET_USES_QMAA),true)
88ifeq ($(TARGET_USES_QMAA_OVERRIDE_DISPLAY),true)
89PRODUCT_PROPERTY_OVERRIDES += \
90 vendor.display.enable_null_display=0
91else
92PRODUCT_PROPERTY_OVERRIDES += \
93 vendor.display.enable_null_display=1
94endif
95endif
96
Naseer Ahmed726b5d32018-12-18 15:48:41 -050097# Properties using default value:
98# vendor.display.disable_hw_recovery=0