| # Display product definitions |
| include hardware/qcom/display/config/display-modules.mk |
| PRODUCT_PACKAGES += $(DISPLAY_MODULES_HARDWARE) |
| |
| ifneq ($(TARGET_HAS_LOW_RAM),true) |
| #QDCM calibration xml file for 2k panel |
| PRODUCT_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 |
| PRODUCT_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 |
| #QDCM calibration xml file for 4k panel |
| PRODUCT_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 |
| PRODUCT_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 |
| #QDCM calibration xml file for amoled panel |
| PRODUCT_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 |
| PRODUCT_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 |
| PRODUCT_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 |
| #QDCM calibration xml file for dual panel |
| PRODUCT_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 |
| PRODUCT_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 |
| #QDCM calibration xml file for Sharp fhd panel |
| PRODUCT_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 |
| PRODUCT_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 |
| #QDCM calibration xml file for Sharp 2k panel |
| PRODUCT_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 |
| PRODUCT_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 |
| #QDCM calibration xml file for nt35597 truly panel |
| PRODUCT_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_Dual_nt35597_cmd_mode_dsi_truly_panel_without_DSC.xml |
| PRODUCT_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_Dual_nt35597_video_mode_dsi_truly_panel_without_DSC.xml |
| #QDCM calibration xml file for Sharp qhd panel |
| PRODUCT_COPY_FILES += hardware/qcom/display/config/qdcm_calib_data_default.xml:$(TARGET_COPY_OUT_VENDOR)/etc/qdcm_calib_data_Sharp_qhd_cmd_mode_dsi_panel.xml |
| #QDCM calibration xml file for rm69299 amoled fhd+ panel |
| PRODUCT_COPY_FILES += hardware/qcom/display/config/qdcm_calib_data_bengal_default.xml:$(TARGET_COPY_OUT_VENDOR)/etc/qdcm_calib_data_rm69299_amoled_fhd+_video_mode_dsi_visionox_panel.xml |
| PRODUCT_COPY_FILES += hardware/qcom/display/config/qdcm_calib_data_bengal_default.xml:$(TARGET_COPY_OUT_VENDOR)/etc/qdcm_calib_data_rm69299_amoled_fhd+_cmd_mode_dsi_visionox_panel.xml |
| |
| #Multi-stc libraries config xml file |
| PRODUCT_COPY_FILES += hardware/qcom/display/config/snapdragon_color_libs_config.xml:$(TARGET_COPY_OUT_VENDOR)/etc/snapdragon_color_libs_config.xml |
| endif |
| #QDCM calibration xml file for td4330 panel |
| PRODUCT_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 |
| PRODUCT_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 |
| |
| #QDCM calibration json file for r66451 panel |
| PRODUCT_COPY_FILES += hardware/qcom/display/config/qdcm_calib_data_r66451_amoled_cmd_mode_dsi_visionox_panel_with_DSC.json:$(TARGET_COPY_OUT_VENDOR)/etc/display/qdcm_calib_data_r66451_amoled_cmd_mode_dsi_visionox_panel_with_DSC.json |
| PRODUCT_COPY_FILES += hardware/qcom/display/config/qdcm_calib_data_r66451_amoled_video_mode_dsi_visionox_panel_with_DSC.json:$(TARGET_COPY_OUT_VENDOR)/etc/display/qdcm_calib_data_r66451_amoled_video_mode_dsi_visionox_panel_with_DSC.json |
| PRODUCT_COPY_FILES += hardware/qcom/display/config/qdcm_calib_data_r66451_amoled_cmd_mode_dsi_visionox_panel_without_DSC.json:$(TARGET_COPY_OUT_VENDOR)/etc/display/qdcm_calib_data_r66451_amoled_cmd_mode_dsi_visionox_panel_without_DSC.json |
| PRODUCT_COPY_FILES += hardware/qcom/display/config/qdcm_calib_data_r66451_amoled_video_mode_dsi_visionox_panel_without_DSC.json:$(TARGET_COPY_OUT_VENDOR)/etc/display/qdcm_calib_data_r66451_amoled_video_mode_dsi_visionox_panel_without_DSC.json |
| |
| #QDCM calibration json file for Sharp panel |
| PRODUCT_COPY_FILES += hardware/qcom/display/config/qdcm_calib_data_Sharp_4k_cmd_mode_dsc_dsi_panel.json:$(TARGET_COPY_OUT_VENDOR)/etc/display/qdcm_calib_data_Sharp_4k_cmd_mode_dsc_dsi_panel.json |
| PRODUCT_COPY_FILES += hardware/qcom/display/config/qdcm_calib_data_Sharp_4k_video_mode_dsc_dsi_panel.json:$(TARGET_COPY_OUT_VENDOR)/etc/display/qdcm_calib_data_Sharp_4k_video_mode_dsc_dsi_panel.json |
| PRODUCT_COPY_FILES += hardware/qcom/display/config/qdcm_calib_data_Sharp_2k_cmd_mode_qsync_dsi_panel.json:$(TARGET_COPY_OUT_VENDOR)/etc/display/qdcm_calib_data_Sharp_2k_cmd_mode_qsync_dsi_panel.json |
| PRODUCT_COPY_FILES += hardware/qcom/display/config/qdcm_calib_data_Sharp_2k_video_mode_qsync_dsi_panel.json:$(TARGET_COPY_OUT_VENDOR)/etc/display/qdcm_calib_data_Sharp_2k_video_mode_qsync_dsi_panel.json |
| PRODUCT_COPY_FILES += hardware/qcom/display/config/qdcm_calib_data_Sharp_qhd_cmd_mode_dsi_panel.json:$(TARGET_COPY_OUT_VENDOR)/etc/display/qdcm_calib_data_Sharp_qhd_cmd_mode_dsi_panel.json |
| PRODUCT_COPY_FILES += hardware/qcom/display/config/qdcm_calib_data_sharp_1080p_cmd_mode_dsi_panel.json:$(TARGET_COPY_OUT_VENDOR)/etc/display/qdcm_calib_data_sharp_1080p_cmd_mode_dsi_panel.json |
| |
| #QDCM calibration JSON file for nt36672e LCD video mode single dsi with DSC panel. |
| PRODUCT_COPY_FILES += hardware/qcom/display/config/qdcm_calib_data_nt36672e_lcd_video_mode_dsi_novatek_panel_with_DSC.json:$(TARGET_COPY_OUT_VENDOR)/etc/display/qdcm_calib_data_nt36672e_lcd_video_mode_dsi_novatek_panel_with_DSC.json |
| PRODUCT_COPY_FILES += hardware/qcom/display/config/qdcm_calib_data_nt36672e_lcd_video_mode_dsi_novatek_panel_without_DSC.json:$(TARGET_COPY_OUT_VENDOR)/etc/display/qdcm_calib_data_nt36672e_lcd_video_mode_dsi_novatek_panel_without_DSC.json |
| |
| #Backlight calibration xml file for r66451 amoled panels |
| PRODUCT_COPY_FILES += hardware/qcom/display/config/backlight_calib_r66451_amoled_cmd_mode_dsi_visionox_panel_with_DSC.xml:$(TARGET_COPY_OUT_VENDOR)/etc/display/backlight_calib_r66451_amoled_cmd_mode_dsi_visionox_panel_with_DSC.xml |
| PRODUCT_COPY_FILES += hardware/qcom/display/config/backlight_calib_r66451_amoled_cmd_mode_dsi_visionox_panel_with_DSC.xml:$(TARGET_COPY_OUT_VENDOR)/etc/display/backlight_calib_r66451_amoled_video_mode_dsi_visionox_panel_with_DSC.xml |
| |
| #Smomo config xml file |
| PRODUCT_COPY_FILES += hardware/qcom/display/config/smomo_setting.xml:$(TARGET_COPY_OUT_VENDOR)/etc/smomo_setting.xml |
| |
| PRODUCT_PROPERTY_OVERRIDES += \ |
| persist.demo.hdmirotationlock=false \ |
| persist.sys.sf.color_saturation=1.0 \ |
| persist.sys.sf.color_mode=9 \ |
| debug.sf.hw=0 \ |
| debug.egl.hw=0 \ |
| debug.sf.latch_unsignaled=1 \ |
| debug.sf.high_fps_late_app_phase_offset_ns=1000000 \ |
| debug.mdpcomp.logs=0 \ |
| vendor.gralloc.disable_ubwc=0 \ |
| vendor.display.disable_scaler=0 \ |
| vendor.display.disable_excl_rect=0 \ |
| vendor.display.disable_excl_rect_partial_fb=1 \ |
| vendor.display.comp_mask=0 \ |
| vendor.display.enable_optimize_refresh=0 \ |
| vendor.display.use_smooth_motion=1 \ |
| vendor.display.disable_stc_dimming=1 \ |
| vendor.display.enable_dpps_dynamic_fps=1 \ |
| debug.sf.high_fps_late_sf_phase_offset_ns=-2000000 \ |
| debug.sf.high_fps_early_phase_offset_ns=-4000000 \ |
| debug.sf.high_fps_early_gl_phase_offset_ns=-2000000 \ |
| debug.sf.disable_client_composition_cache=1 \ |
| debug.sf.enable_gl_backpressure=1 \ |
| debug.sf.enable_hwc_vds=1 \ |
| debug.sf.enable_advanced_sf_phase_offset=1 \ |
| vendor.display.vds_allow_hwc=0 \ |
| vendor.display.enable_async_vds_creation=1 \ |
| vendor.display.enable_rounded_corner=1 \ |
| vendor.display.disable_3d_adaptive_tm=1 \ |
| vendor.display.disable_sdr_dimming=1 \ |
| vendor.display.enable_rc_support=1 \ |
| vendor.display.disable_sdr_histogram=1 \ |
| vendor.display.enable_hdr10_gpu_target=1 |
| |
| # Enable offline rotator for Bengal. |
| ifneq ($(TARGET_BOARD_PLATFORM),bengal) |
| PRODUCT_PROPERTY_OVERRIDES += \ |
| vendor.display.disable_offline_rotator=1 |
| else |
| PRODUCT_PROPERTY_OVERRIDES += \ |
| vendor.display.disable_rotator_ubwc=1 \ |
| vendor.display.disable_layer_stitch=0 |
| endif |
| |
| ifeq ($(TARGET_BOARD_PLATFORM),holi) |
| PRODUCT_PROPERTY_OVERRIDES += \ |
| vendor.display.secure_preview_buffer_format=420_sp \ |
| vendor.gralloc.secure_preview_buffer_format=420_sp \ |
| vendor.gralloc.secure_preview_only=1 |
| #QDCM calibration xml file for r66451 amoled panel in holi |
| PRODUCT_COPY_FILES += hardware/qcom/display/config/qdcm_calib_data_bengal_default.xml:$(TARGET_COPY_OUT_VENDOR)/etc/qdcm_calib_data_r66451_amoled_cmd_mode_dsi_visionox_panel_with_DSC.xml |
| PRODUCT_COPY_FILES += hardware/qcom/display/config/qdcm_calib_data_bengal_default.xml:$(TARGET_COPY_OUT_VENDOR)/etc/qdcm_calib_data_r66451_amoled_video_mode_dsi_visionox_panel_with_DSC.xml |
| PRODUCT_PROPERTY_OVERRIDES += vendor.display.enable_rounded_corner=1 |
| PRODUCT_PROPERTY_OVERRIDES += vendor.display.disable_rounded_corner_thread=0 |
| else |
| #QDCM calibration xml file for r66451 amoled panel in lahaina and shima |
| PRODUCT_COPY_FILES += hardware/qcom/display/config/qdcm_calib_data_r66451_amoled_cmd_mode_dsi_visionox_panel_with_DSC.xml:$(TARGET_COPY_OUT_VENDOR)/etc/qdcm_calib_data_r66451_amoled_cmd_mode_dsi_visionox_panel_with_DSC.xml |
| PRODUCT_COPY_FILES += hardware/qcom/display/config/qdcm_calib_data_r66451_amoled_cmd_mode_dsi_visionox_panel_with_DSC.xml:$(TARGET_COPY_OUT_VENDOR)/etc/qdcm_calib_data_r66451_amoled_video_mode_dsi_visionox_panel_with_DSC.xml |
| endif |
| |
| ifneq ($(PLATFORM_VERSION), 10) |
| PRODUCT_PROPERTY_OVERRIDES += vendor.display.enable_async_powermode=0 |
| endif |
| |
| #Set WCG properties |
| PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.surface_flinger.has_wide_color_display=true |
| PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.surface_flinger.has_HDR_display=true |
| PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.surface_flinger.use_color_management=true |
| PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.surface_flinger.wcg_composition_dataspace=143261696 |
| PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.surface_flinger.protected_contents=true |
| PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.surface_flinger.use_content_detection_for_refresh_rate=true |
| PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.surface_flinger.set_touch_timer_ms=200 |
| PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.surface_flinger.force_hwc_copy_for_virtual_displays=true |
| PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.surface_flinger.max_frame_buffer_acquired_buffers=3 |
| PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.surface_flinger.max_virtual_display_dimension=4096 |
| PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.surface_flinger.supports_background_blur=1 |
| |
| ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT))) |
| # Recovery is enabled, logging is enabled |
| PRODUCT_PROPERTY_OVERRIDES += \ |
| vendor.display.disable_hw_recovery_dump=0 |
| PRODUCT_PROPERTY_OVERRIDES += \ |
| vendor.display.hw_recovery_threshold=5 |
| else |
| # Recovery is enabled, logging is disabled |
| PRODUCT_PROPERTY_OVERRIDES += \ |
| vendor.display.disable_hw_recovery_dump=1 |
| endif |
| |
| ifeq ($(TARGET_USES_QMAA),true) |
| ifneq ($(TARGET_USES_QMAA_OVERRIDE_DISPLAY),true) |
| #QMAA Mode is enabled |
| TARGET_IS_HEADLESS := true |
| endif |
| endif |
| |
| # Soong Namespace |
| SOONG_CONFIG_NAMESPACES += qtidisplay |
| |
| # Soong Keys |
| SOONG_CONFIG_qtidisplay := drmpp headless llvmsa gralloc4 displayconfig_enabled default var1 var2 var3 |
| |
| # Soong Values |
| SOONG_CONFIG_qtidisplay_drmpp := true |
| SOONG_CONFIG_qtidisplay_headless := false |
| SOONG_CONFIG_qtidisplay_llvmsa := false |
| SOONG_CONFIG_qtidisplay_gralloc4 := true |
| SOONG_CONFIG_qtidisplay_displayconfig_enabled := false |
| SOONG_CONFIG_qtidisplay_default := true |
| SOONG_CONFIG_qtidisplay_var1 := false |
| SOONG_CONFIG_qtidisplay_var2 := false |
| SOONG_CONFIG_qtidisplay_var3 := false |
| |
| ifeq ($(call is-vendor-board-platform,QCOM),true) |
| SOONG_CONFIG_qtidisplay_displayconfig_enabled := true |
| endif |
| |
| # Techpack values |
| |
| ifeq ($(TARGET_IS_HEADLESS), true) |
| # TODO: QMAA prebuilts |
| PRODUCT_SOONG_NAMESPACES += hardware/qcom/display/qmaa |
| SOONG_CONFIG_qtidisplay_headless := true |
| SOONG_CONFIG_qtidisplay_default := false |
| else |
| #Packages that should not be installed in QMAA are enabled here. |
| PRODUCT_PACKAGES += libdrmutils |
| PRODUCT_PACKAGES += libsdedrm |
| PRODUCT_PACKAGES += libgpu_tonemapper |
| #Properties that should not be set in QMAA are enabled here. |
| PRODUCT_PROPERTY_OVERRIDES += \ |
| vendor.display.enable_early_wakeup=1 |
| ifneq ($(BUILD_DISPLAY_TECHPACK_SOURCE), true) |
| SOONG_CONFIG_qtidisplay_var1 := true |
| SOONG_CONFIG_qtidisplay_var2 := true |
| SOONG_CONFIG_qtidisplay_var3 := true |
| endif |
| ifneq ($(BUILD_DISPLAY_TECHPACK_SOURCE_VARIANT), true) |
| SOONG_CONFIG_qtidisplay_var1 := true |
| SOONG_CONFIG_qtidisplay_var2 := true |
| endif |
| |
| ifeq (,$(wildcard $(QCPATH)/display-noship)) |
| SOONG_CONFIG_qtidisplay_var1 := true |
| endif |
| |
| ifeq (,$(wildcard $(QCPATH)/display)) |
| SOONG_CONFIG_qtidisplay_var2 := true |
| endif |
| endif |
| |
| |
| |
| |
| QMAA_ENABLED_HAL_MODULES += display |
| |
| # Properties using default value: |
| # vendor.display.disable_hw_recovery=0 |