blob: 6383a73223173f4bdb141df7590a0e4bcc4075c0 [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 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) \
Alex Sarraf6555fbf2019-09-27 10:45:45 -070014 libsdmcore \
15 libsdmutils \
Ravikanth Tunikiabe9d8d2019-04-01 10:15:54 -070016 libqdMetaData \
Ramakant Singhf4d170f2019-05-27 15:27:26 +053017 libdisplayconfig.vendor \
Naseer Ahmed726b5d32018-12-18 15:48:41 -050018 vendor.display.config@1.0.vendor \
19 vendor.display.config@1.1.vendor \
20 vendor.display.config@1.2.vendor \
21 vendor.display.config@1.3.vendor \
22 vendor.display.config@1.4.vendor \
23 vendor.display.config@1.5.vendor \
Ramkumar Radhakrishnan2f8ebf42019-02-28 16:50:08 -080024 vendor.display.config@1.6.vendor \
25 vendor.display.config@1.7.vendor \
26 vendor.display.config@1.8.vendor \
Archit Srivastavaa59c4ff2019-05-20 10:54:22 +053027 vendor.display.config@1.9.vendor \
Dileep Marchyaafa45bc2019-06-21 17:05:31 +053028 vendor.display.config@1.10.vendor \
Sushil Chauhan1566a132019-10-02 11:59:28 -070029 vendor.display.config@1.11.vendor \
30 vendor.display.config@1.12.vendor \
Padmanabhan Komanduruf5b7f992019-07-08 13:33:44 +053031 vendor.display.config@1.13.vendor \
Naseer Ahmedf9ece752019-10-04 15:22:13 -040032 vendor.qti.hardware.display.mapper@2.0.vendor \
33 vendor.qti.hardware.display.mapper@3.0.vendor \
Naseer Ahmed726b5d32018-12-18 15:48:41 -050034 modetest
35
36#QDCM calibration xml file for 2k panel
37PRODUCT_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
38PRODUCT_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
39#QDCM calibration xml file for 4k panel
40PRODUCT_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
41PRODUCT_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
42#QDCM calibration xml file for amoled panel
43PRODUCT_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
44PRODUCT_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 +080045PRODUCT_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
46#QDCM calibration xml file for dual panel
47PRODUCT_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
48PRODUCT_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 -050049
50PRODUCT_PROPERTY_OVERRIDES += \
51 persist.demo.hdmirotationlock=false \
52 persist.sys.sf.color_saturation=1.0 \
Naseer Ahmed3cd263a2019-05-01 14:38:27 -040053 persist.sys.sf.color_mode=9 \
Naseer Ahmed726b5d32018-12-18 15:48:41 -050054 debug.sf.hw=0 \
55 debug.egl.hw=0 \
56 debug.sf.latch_unsignaled=1 \
Sushil Chauhanb9a21e32019-09-23 15:05:02 -070057 debug.sf.enable_gl_backpressure=1 \
Naseer Ahmed726b5d32018-12-18 15:48:41 -050058 debug.mdpcomp.logs=0 \
Naseer Ahmed726b5d32018-12-18 15:48:41 -050059 vendor.gralloc.disable_ubwc=0 \
Alex Sarraf5705bcb2019-03-21 09:38:54 -070060 vendor.display.disable_scaler=0 \
Manoj Kumar AVMbe7f3242019-08-05 19:35:47 -070061 vendor.display.disable_offline_rotator=1 \
Naseer Ahmed726b5d32018-12-18 15:48:41 -050062 vendor.display.disable_excl_rect=0 \
63 vendor.display.comp_mask=0 \
Ray Zhang9bace4c2019-05-22 20:11:00 +080064 vendor.display.enable_posted_start_dyn=1 \
Padmanabhan Komandurufafa0222019-03-18 14:57:56 +053065 vendor.display.enable_optimize_refresh=1 \
Sushil Chauhan1c8ea882019-07-31 13:26:04 -070066 vendor.display.use_smooth_motion=1
67
68ifeq ($(TARGET_BOARD_PLATFORM),kona)
69PRODUCT_PROPERTY_OVERRIDES += \
Sushil Chauhanab7c3572019-06-27 18:37:35 -070070 debug.sf.early_phase_offset_ns=500000 \
71 debug.sf.early_app_phase_offset_ns=500000 \
72 debug.sf.early_gl_phase_offset_ns=3000000 \
73 debug.sf.early_gl_app_phase_offset_ns=15000000 \
74 debug.sf.high_fps_early_phase_offset_ns=6100000 \
75 debug.sf.high_fps_early_gl_phase_offset_ns=9000000 \
Sushil Chauhand0fc4f82019-10-16 17:08:34 -070076 debug.sf.high_fps_late_app_phase_offset_ns=1000000 \
Sushil Chauhanab7c3572019-06-27 18:37:35 -070077 debug.sf.phase_offset_threshold_for_next_vsync_ns=6100000
Sushil Chauhan1c8ea882019-07-31 13:26:04 -070078endif
Naseer Ahmed726b5d32018-12-18 15:48:41 -050079
Naseer Ahmedb84b31d2019-02-28 19:36:23 -050080#Set WCG properties
81PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.surface_flinger.has_wide_color_display=true
82PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.surface_flinger.has_HDR_display=true
83PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.surface_flinger.use_color_management=true
84PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.surface_flinger.wcg_composition_dataspace=143261696
Rajavenu Kyatham61c88292019-11-05 12:22:27 +053085PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.surface_flinger.protected_contents=true
Naseer Ahmedb84b31d2019-02-28 19:36:23 -050086
Naseer Ahmed726b5d32018-12-18 15:48:41 -050087ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
88# Recovery is enabled, logging is enabled
89PRODUCT_PROPERTY_OVERRIDES += \
90 vendor.display.disable_hw_recovery_dump=0
91else
92# Recovery is enabled, logging is disabled
93PRODUCT_PROPERTY_OVERRIDES += \
94 vendor.display.disable_hw_recovery_dump=1
95endif
96
Alex Sarraf51797cd2019-03-01 10:03:54 -080097QMAA_ENABLED_HAL_MODULES += display
98ifeq ($(TARGET_USES_QMAA),true)
99ifeq ($(TARGET_USES_QMAA_OVERRIDE_DISPLAY),true)
100PRODUCT_PROPERTY_OVERRIDES += \
101 vendor.display.enable_null_display=0
102else
Naseer Ahmedf4753692019-09-17 13:51:36 -0400103TARGET_IS_HEADLESS := true
Alex Sarraf51797cd2019-03-01 10:03:54 -0800104PRODUCT_PROPERTY_OVERRIDES += \
105 vendor.display.enable_null_display=1
106endif
107endif
108
Naseer Ahmed726b5d32018-12-18 15:48:41 -0500109# Properties using default value:
110# vendor.display.disable_hw_recovery=0