blob: 01a031a013da5db80c3a54261d8f5c0363f6889d [file] [log] [blame]
Naseer Ahmed726b5d32018-12-18 15:48:41 -05001# Display product definitions
2PRODUCT_PACKAGES += \
Tharaga Balachandran887bed42019-09-26 19:17:58 -04003 android.hardware.graphics.mapper@3.0-impl-qti-display \
Tharaga Balachandran0a6dfc42020-01-08 17:17:56 -05004 android.hardware.graphics.mapper@4.0-impl-qti-display \
Tharaga Balachandrand3331da2019-06-06 11:33:29 -04005 vendor.qti.hardware.display.allocator-service \
Rajavenu Kyatham8193f742019-06-11 19:19:02 +05306 vendor.qti.hardware.display.composer-service \
Naseer Ahmed726b5d32018-12-18 15:48:41 -05007 android.hardware.memtrack@1.0-impl \
8 android.hardware.memtrack@1.0-service \
Naseer Ahmed082f2282019-04-15 19:49:29 -04009 gralloc.$(TARGET_BOARD_PLATFORM) \
10 lights.$(TARGET_BOARD_PLATFORM) \
11 hwcomposer.$(TARGET_BOARD_PLATFORM) \
12 memtrack.$(TARGET_BOARD_PLATFORM) \
Alex Sarraf6555fbf2019-09-27 10:45:45 -070013 libsdmcore \
14 libsdmutils \
Ravikanth Tunikiabe9d8d2019-04-01 10:15:54 -070015 libqdMetaData \
Ramakant Singhf4d170f2019-05-27 15:27:26 +053016 libdisplayconfig.vendor \
Naseer Ahmedf9ece752019-10-04 15:22:13 -040017 vendor.qti.hardware.display.mapper@2.0.vendor \
18 vendor.qti.hardware.display.mapper@3.0.vendor \
Tharaga Balachandran0a6dfc42020-01-08 17:17:56 -050019 vendor.qti.hardware.display.mapper@4.0.vendor \
Naseer Ahmed726b5d32018-12-18 15:48:41 -050020 modetest
21
22#QDCM calibration xml file for 2k panel
23PRODUCT_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
24PRODUCT_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
25#QDCM calibration xml file for 4k panel
26PRODUCT_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
27PRODUCT_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
28#QDCM calibration xml file for amoled panel
29PRODUCT_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
30PRODUCT_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 +080031PRODUCT_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
32#QDCM calibration xml file for dual panel
33PRODUCT_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
34PRODUCT_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
Renchao Liu6b836a62019-11-11 10:08:49 +080035#QDCM calibration xml file for td4330 panel
36PRODUCT_COPY_FILES += hardware/qcom/display/config/qdcm_calib_data_bengal_default.xml:$(TARGET_COPY_OUT_VENDOR)/etc/qdcm_calib_data_td4330_v2_cmd_mode_dsi_truly_panel.xml
37PRODUCT_COPY_FILES += hardware/qcom/display/config/qdcm_calib_data_bengal_default.xml:$(TARGET_COPY_OUT_VENDOR)/etc/qdcm_calib_data_td4330_v2_video_mode_dsi_truly_panel.xml
Renchao Liud1f7de82019-11-21 15:22:08 +080038#QDCM calibration xml file for Sharp fhd panel
39PRODUCT_COPY_FILES += hardware/qcom/display/config/qdcm_calib_data_default.xml:$(TARGET_COPY_OUT_VENDOR)/etc/qdcm_calib_data_Sharp_fhd_cmd_mode_qsync_dsi_panel.xml
40PRODUCT_COPY_FILES += hardware/qcom/display/config/qdcm_calib_data_default.xml:$(TARGET_COPY_OUT_VENDOR)/etc/qdcm_calib_data_Sharp_fhd_video_mode_qsync_dsi_panel.xml
41#QDCM calibration xml file for Sharp 2k panel
42PRODUCT_COPY_FILES += hardware/qcom/display/config/qdcm_calib_data_default.xml:$(TARGET_COPY_OUT_VENDOR)/etc/qdcm_calib_data_Sharp_2k_cmd_mode_qsync_dsi_panel.xml
43PRODUCT_COPY_FILES += hardware/qcom/display/config/qdcm_calib_data_default.xml:$(TARGET_COPY_OUT_VENDOR)/etc/qdcm_calib_data_Sharp_2k_video_mode_qsync_dsi_panel.xml
Renchao Liu3873de92020-03-21 09:10:36 +080044#QDCM calibration xml file for r66451 amoled panel
45PRODUCT_COPY_FILES += hardware/qcom/display/config/qdcm_calib_data_default.xml:$(TARGET_COPY_OUT_VENDOR)/etc/qdcm_calib_data_r66451_amoled_cmd_mode_dsi_visionox_panel_with_DSC.xml
46PRODUCT_COPY_FILES += hardware/qcom/display/config/qdcm_calib_data_default.xml:$(TARGET_COPY_OUT_VENDOR)/etc/qdcm_calib_data_r66451_amoled_cmd_mode_dsi_visionox_60HZ_panel_with_DSC.xml
47PRODUCT_COPY_FILES += hardware/qcom/display/config/qdcm_calib_data_default.xml:$(TARGET_COPY_OUT_VENDOR)/etc/qdcm_calib_data_r66451_amoled_cmd_mode_dsi_visionox_90HZ_panel_with_DSC.xml
48PRODUCT_COPY_FILES += hardware/qcom/display/config/qdcm_calib_data_default.xml:$(TARGET_COPY_OUT_VENDOR)/etc/qdcm_calib_data_r66451_amoled_cmd_mode_dsi_visionox_120HZ_panel_with_DSC.xml
49PRODUCT_COPY_FILES += hardware/qcom/display/config/qdcm_calib_data_default.xml:$(TARGET_COPY_OUT_VENDOR)/etc/qdcm_calib_data_r66451_amoled_video_mode_dsi_visionox_60HZ_panel_with_DSC.xml
50PRODUCT_COPY_FILES += hardware/qcom/display/config/qdcm_calib_data_default.xml:$(TARGET_COPY_OUT_VENDOR)/etc/qdcm_calib_data_r66451_amoled_video_mode_dsi_visionox_90HZ_panel_with_DSC.xml
51PRODUCT_COPY_FILES += hardware/qcom/display/config/qdcm_calib_data_default.xml:$(TARGET_COPY_OUT_VENDOR)/etc/qdcm_calib_data_r66451_amoled_video_mode_dsi_visionox_120HZ_panel_with_DSC.xml
52#QDCM calibration xml file for rm69299 amoled fhd+ panel
53PRODUCT_COPY_FILES += hardware/qcom/display/config/qdcm_calib_data_default.xml:$(TARGET_COPY_OUT_VENDOR)/etc/qdcm_calib_data_rm69299_amoled_fhd+_video_mode_dsi_visionox_panel.xml
54PRODUCT_COPY_FILES += hardware/qcom/display/config/qdcm_calib_data_default.xml:$(TARGET_COPY_OUT_VENDOR)/etc/qdcm_calib_data_rm69299_amoled_fhd+_cmd_mode_dsi_visionox_panel.xml
Renchao Liu2d1e28a2020-04-14 13:52:52 +080055#QDCM calibration xml file for nt36525 truly panel
56PRODUCT_COPY_FILES += hardware/qcom/display/config/qdcm_calib_data_bengal_default.xml:$(TARGET_COPY_OUT_VENDOR)/etc/qdcm_calib_data_nt36525_video_mode_dsi_truly_panel.xml
Naseer Ahmed726b5d32018-12-18 15:48:41 -050057
58PRODUCT_PROPERTY_OVERRIDES += \
59 persist.demo.hdmirotationlock=false \
60 persist.sys.sf.color_saturation=1.0 \
Naseer Ahmed3cd263a2019-05-01 14:38:27 -040061 persist.sys.sf.color_mode=9 \
Naseer Ahmed726b5d32018-12-18 15:48:41 -050062 debug.sf.hw=0 \
63 debug.egl.hw=0 \
64 debug.sf.latch_unsignaled=1 \
Padmanabhan Komandurue7fc2cc2019-11-29 12:28:11 +053065 debug.sf.high_fps_late_app_phase_offset_ns=1000000 \
Naseer Ahmed726b5d32018-12-18 15:48:41 -050066 debug.mdpcomp.logs=0 \
Naseer Ahmed726b5d32018-12-18 15:48:41 -050067 vendor.gralloc.disable_ubwc=0 \
Alex Sarraf5705bcb2019-03-21 09:38:54 -070068 vendor.display.disable_scaler=0 \
Naseer Ahmed726b5d32018-12-18 15:48:41 -050069 vendor.display.disable_excl_rect=0 \
Rajavenu Kyatham8beafb52020-01-09 12:46:05 +053070 vendor.display.disable_excl_rect_partial_fb=1 \
Naseer Ahmed726b5d32018-12-18 15:48:41 -050071 vendor.display.comp_mask=0 \
Ray Zhang9bace4c2019-05-22 20:11:00 +080072 vendor.display.enable_posted_start_dyn=1 \
Padmanabhan Komandurufafa0222019-03-18 14:57:56 +053073 vendor.display.enable_optimize_refresh=1 \
Sushil Chauhanf0ff19f2020-04-06 16:42:04 -070074 vendor.display.use_smooth_motion=1 \
Sushil Chauhan1c8ea882019-07-31 13:26:04 -070075
Pullakavi Srinivas8ec9ab32019-12-01 13:46:22 +053076# Enable offline rotator for Bengal.
77ifneq ($(TARGET_BOARD_PLATFORM),bengal)
78PRODUCT_PROPERTY_OVERRIDES += \
Ramakant Singh0fa5e662019-12-24 10:06:14 +053079 vendor.display.disable_offline_rotator=1
Pullakavi Srinivas05654632019-12-05 14:47:45 +053080else
81PRODUCT_PROPERTY_OVERRIDES += \
Ramakant Singh0fa5e662019-12-24 10:06:14 +053082 vendor.display.disable_rotator_ubwc=1 \
83 vendor.display.normal_noc_efficiency_factor=0.85 \
Pullakavi Srinivas15bf07c2019-12-20 12:32:54 +053084 vendor.display.camera_noc_efficiency_factor=0.70 \
Pullakavi Srinivas028cc322020-03-30 15:44:29 +053085 vendor.display.disable_layer_stitch=0 \
Pullakavi Srinivas0e0c5512020-04-28 17:05:23 +053086 vendor.display.secure_preview_buffer_format=420_sp \
Padmanabhan Komanduru099ff052020-07-20 12:38:39 +053087 vendor.gralloc.secure_preview_buffer_format=420_sp \
88 debug.sf.enable_advanced_sf_phase_offset=1 \
89 debug.sf.high_fps_late_sf_phase_offset_ns=-5000000 \
90 debug.sf.high_fps_early_phase_offset_ns=-5000000 \
91 debug.sf.high_fps_early_gl_phase_offset_ns=-5000000
Pullakavi Srinivas8ec9ab32019-12-01 13:46:22 +053092endif
93
Sushil Chauhan1c8ea882019-07-31 13:26:04 -070094ifeq ($(TARGET_BOARD_PLATFORM),kona)
95PRODUCT_PROPERTY_OVERRIDES += \
Padmanabhan Komanduru099ff052020-07-20 12:38:39 +053096 debug.sf.enable_gl_backpressure=1 \
97 debug.sf.enable_advanced_sf_phase_offset=1 \
98 debug.sf.high_fps_late_sf_phase_offset_ns=-4000000 \
99 debug.sf.high_fps_early_phase_offset_ns=-4000000 \
100 debug.sf.high_fps_early_gl_phase_offset_ns=-4000000
Sushil Chauhan1c8ea882019-07-31 13:26:04 -0700101endif
Naseer Ahmed726b5d32018-12-18 15:48:41 -0500102
Padmanabhan Komanduruc72032b2020-02-03 17:11:47 +0530103ifeq ($(TARGET_BOARD_PLATFORM),lito)
104PRODUCT_PROPERTY_OVERRIDES += \
105 debug.sf.high_fps_late_sf_phase_offset_ns=-4000000 \
106 debug.sf.high_fps_early_phase_offset_ns=-4000000 \
107 debug.sf.high_fps_early_gl_phase_offset_ns=-4000000 \
108 debug.sf.perf_fps_late_sf_phase_offset_ns=-5000000 \
109 debug.sf.perf_fps_early_phase_offset_ns=-5000000 \
110 debug.sf.perf_fps_early_gl_phase_offset_ns=-5000000 \
111 debug.sf.enable_advanced_sf_phase_offset=1
112endif
113
Naseer Ahmede0728c62019-11-07 16:01:16 -0500114ifneq ($(PLATFORM_VERSION), 10)
115 PRODUCT_PROPERTY_OVERRIDES += vendor.display.enable_async_powermode=0
116endif
117
Naseer Ahmedb84b31d2019-02-28 19:36:23 -0500118#Set WCG properties
119PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.surface_flinger.has_wide_color_display=true
120PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.surface_flinger.has_HDR_display=true
121PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.surface_flinger.use_color_management=true
122PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.surface_flinger.wcg_composition_dataspace=143261696
Rajavenu Kyatham61c88292019-11-05 12:22:27 +0530123PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.surface_flinger.protected_contents=true
Sushil Chauhan280b58a2020-04-24 15:09:48 -0700124PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.surface_flinger.set_touch_timer_ms=200
Naseer Ahmedb84b31d2019-02-28 19:36:23 -0500125
Naseer Ahmed726b5d32018-12-18 15:48:41 -0500126ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
127# Recovery is enabled, logging is enabled
128PRODUCT_PROPERTY_OVERRIDES += \
129 vendor.display.disable_hw_recovery_dump=0
130else
131# Recovery is enabled, logging is disabled
132PRODUCT_PROPERTY_OVERRIDES += \
133 vendor.display.disable_hw_recovery_dump=1
134endif
135
Alex Sarraf51797cd2019-03-01 10:03:54 -0800136QMAA_ENABLED_HAL_MODULES += display
137ifeq ($(TARGET_USES_QMAA),true)
138ifeq ($(TARGET_USES_QMAA_OVERRIDE_DISPLAY),true)
139PRODUCT_PROPERTY_OVERRIDES += \
140 vendor.display.enable_null_display=0
141else
Naseer Ahmedf4753692019-09-17 13:51:36 -0400142TARGET_IS_HEADLESS := true
Alex Sarraf51797cd2019-03-01 10:03:54 -0800143PRODUCT_PROPERTY_OVERRIDES += \
144 vendor.display.enable_null_display=1
145endif
146endif
147
Naseer Ahmed726b5d32018-12-18 15:48:41 -0500148# Properties using default value:
149# vendor.display.disable_hw_recovery=0