Skip to content

Commit

Permalink
Merge tag 'LA.UM.9.12.r1-11300-SMxx50.0' of https://source.codeaurora…
Browse files Browse the repository at this point in the history
….org/quic/la/platform/hardware/qcom/display into rippa-8250

"LA.UM.9.12.r1-11300-SMxx50.0"
  • Loading branch information
markakash committed May 4, 2021
2 parents 959e731 + 159e5bd commit 2e1b870
Show file tree
Hide file tree
Showing 7 changed files with 30 additions and 7 deletions.
8 changes: 8 additions & 0 deletions common.mk
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ ifeq ($(TARGET_USES_COLOR_METADATA), true)
common_flags += -DUSE_COLOR_METADATA
endif

ifeq ($(TARGET_USES_5.4_KERNEL),true)
common_flags += -DKERNEL_5_4
endif

ifeq ($(TARGET_USES_QCOM_BSP),true)
common_flags += -DQTI_BSP
endif
Expand Down Expand Up @@ -52,4 +56,8 @@ ifeq ($(TARGET_COMPILE_WITH_MSM_KERNEL),true)
# failing which, they are picked from bionic.
common_deps += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
kernel_includes += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include
ifeq ($(TARGET_USES_5.4_KERNEL), true)
kernel_includes += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include/display
kernel_includes += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include/vidc
endif
endif
6 changes: 5 additions & 1 deletion composer/hwc_display.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2014-2020, The Linux Foundation. All rights reserved.
* Copyright (c) 2014-2021, The Linux Foundation. All rights reserved.
* Not a Contribution.
*
* Copyright 2015 The Android Open Source Project
Expand Down Expand Up @@ -720,6 +720,10 @@ void HWCDisplay::BuildLayerStack() {
is_secure = true;
}

if (IS_RGB_FORMAT(layer->input_buffer.format) && hwc_layer->IsScalingPresent()) {
layer_stack_.flags.scaling_rgb_layer_present = true;
}

if (hwc_layer->IsSingleBuffered() &&
!(hwc_layer->IsRotationPresent() || hwc_layer->IsScalingPresent())) {
layer->flags.single_buffer = true;
Expand Down
4 changes: 3 additions & 1 deletion libdrmutils/Android.mk
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
ifneq ($(TARGET_IS_HEADLESS), true)
LOCAL_PATH := $(call my-dir)
include $(LOCAL_PATH)/../common.mk
include $(CLEAR_VARS)

LOCAL_MODULE := libdrmutils
LOCAL_SANITIZE := integer_overflow
LOCAL_VENDOR_MODULE := true
LOCAL_MODULE_TAGS := optional
LOCAL_C_INCLUDES := external/libdrm \
$(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include
$(kernel_includes)
LOCAL_HEADER_LIBRARIES := display_headers
LOCAL_SHARED_LIBRARIES := libdrm libdl libdisplaydebug
LOCAL_CFLAGS := -DLOG_TAG=\"DRMUTILS\" -Wall -Werror -fno-operator-names
LOCAL_CFLAGS += $(common_flags)
LOCAL_CLANG := true
LOCAL_ADDITIONAL_DEPENDENCIES := $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
LOCAL_SRC_FILES := drm_master.cpp drm_res_mgr.cpp drm_lib_loader.cpp
Expand Down
4 changes: 4 additions & 0 deletions libdrmutils/drm_interface.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@
#include <drm/msm_drm.h>
#include <drm/msm_drm_pp.h>

#ifdef KERNEL_5_4
#include <drm/sde_drm.h>
#endif

namespace sde_drm {

typedef std::map<std::pair<uint32_t, uint64_t>, float> CompRatioMap;
Expand Down
7 changes: 4 additions & 3 deletions libhistogram/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,15 @@
# limitations under the License.

LOCAL_PATH:= $(call my-dir)
include $(LOCAL_PATH)/../common.mk
include $(CLEAR_VARS)

LOCAL_MODULE := libhistogram
LOCAL_VENDOR_MODULE := true
LOCAL_MODULE_TAGS := optional
LOCAL_HEADER_LIBRARIES := display_headers
LOCAL_SHARED_LIBRARIES := libdrm liblog libcutils libutils libbase
LOCAL_C_INCLUDES := $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include/ \
LOCAL_C_INCLUDES := $(kernel_includes) \
-isystem external/libdrm
LOCAL_ADDITIONAL_DEPENDENCIES := $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
LOCAL_CFLAGS := -DLOG_TAG=\"SDM-histogram\" -Wall -std=c++14 -Werror -fno-operator-names \
Expand All @@ -37,7 +38,7 @@ LOCAL_HEADER_LIBRARIES := display_headers
LOCAL_MODULE := color_sampling_tool
LOCAL_SRC_FILES := color_sampling_tool.cpp
LOCAL_SHARED_LIBRARIES := libhistogram libdrm liblog libcutils libutils libbase
LOCAL_C_INCLUDES := $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include/ \
LOCAL_C_INCLUDES := $(kernel_includes) \
-isystem external/libdrm
LOCAL_ADDITIONAL_DEPENDENCIES := $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
LOCAL_CFLAGS := -DLOG_TAG=\"SDM-histogram\" -Wall -std=c++14 -Werror -fno-operator-names \
Expand All @@ -55,7 +56,7 @@ LOCAL_MODULE := color_sampling_test
LOCAL_SRC_FILES := ringbuffer_test.cpp
LOCAL_STATIC_LIBRARIES := libgtest libgmock
LOCAL_SHARED_LIBRARIES := libhistogram libdrm liblog libcutils libutils libbase
LOCAL_C_INCLUDES := $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include/ \
LOCAL_C_INCLUDES := $(kernel_includes) \
-isystem external/libdrm
LOCAL_ADDITIONAL_DEPENDENCIES := $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
LOCAL_CFLAGS := -DLOG_TAG=\"SDM-histogram\" -Wall -std=c++14 -Werror -fno-operator-names \
Expand Down
4 changes: 3 additions & 1 deletion sde-drm/Android.mk
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
ifneq ($(TARGET_IS_HEADLESS), true)
LOCAL_PATH := $(call my-dir)
include $(LOCAL_PATH)/../common.mk
include $(CLEAR_VARS)

common_header_export_path := qcom/display
Expand All @@ -9,11 +10,12 @@ LOCAL_SANITIZE := integer_overflow
LOCAL_MODULE_TAGS := optional
LOCAL_SHARED_LIBRARIES := libdrm libdrmutils libdisplaydebug
LOCAL_HEADER_LIBRARIES := display_headers
LOCAL_C_INCLUDES := $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include/ \
LOCAL_C_INCLUDES := $(kernel_includes) \
-isystem external/libdrm
LOCAL_ADDITIONAL_DEPENDENCIES := $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
LOCAL_CFLAGS := -Wno-missing-field-initializers -Wall -Werror -fno-operator-names \
-Wno-unused-parameter -DLOG_TAG=\"SDE_DRM\"
LOCAL_CFLAGS += $(common_flags)
LOCAL_CLANG := true
LOCAL_SRC_FILES := drm_manager.cpp \
drm_connector.cpp \
Expand Down
4 changes: 3 additions & 1 deletion sdm/include/core/layer_stack.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2014-2020, The Linux Foundation. All rights reserved.
* Copyright (c) 2014-2021, The Linux Foundation. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted
* provided that the following conditions are met:
Expand Down Expand Up @@ -270,6 +270,8 @@ struct LayerStackFlags {
uint32_t mask_present : 1; //!< Set if layer stack has mask layers.

uint32_t config_changed : 1; //!< This flag indicates Display config must be validated.

uint32_t scaling_rgb_layer_present : 1; //!< This flag indicates scaling rgb layer presense
};

uint32_t flags = 0; //!< For initialization purpose only.
Expand Down

0 comments on commit 2e1b870

Please sign in to comment.