diff options
author | HyunKyung Kim <hk310.kim@samsung.com> | 2019-07-31 11:16:24 +0900 |
---|---|---|
committer | HyunKyung Kim <hk310.kim@samsung.com> | 2019-10-22 14:03:35 +0900 |
commit | 34e6e0415a1bf51c1687b4cd3a3ce142b48a2ede (patch) | |
tree | 589e3cd153e70696c34c1e609ebbfa5aae144e41 /libhwc2.1/libresource | |
parent | 811a9ed945ba40250b0f26e3f74a3d945a73eb9e (diff) | |
download | gs101-34e6e0415a1bf51c1687b4cd3a3ce142b48a2ede.tar.gz |
libhwc2.1: patch for gs101
Current HWC
sets invalid sysfs path for vsync event to use sw vsync,
disables all of M2M_MPPs,
enables forceGpu to composite layers using GLES,
fixs the base window to a specific value,
disables reading of dpu restrictions.
Change-Id: If03af71470d3de56a0c91ae10e1dfd75ada0d08f
Signed-off-by: HyunKyung Kim <hk310.kim@samsung.com>
Diffstat (limited to 'libhwc2.1/libresource')
-rw-r--r-- | libhwc2.1/libresource/ExynosMPPModule.cpp | 11 | ||||
-rw-r--r-- | libhwc2.1/libresource/ExynosMPPModule.h | 1 | ||||
-rw-r--r-- | libhwc2.1/libresource/ExynosResourceManagerModule.cpp | 7 | ||||
-rw-r--r-- | libhwc2.1/libresource/ExynosResourceManagerModule.h | 3 |
4 files changed, 10 insertions, 12 deletions
diff --git a/libhwc2.1/libresource/ExynosMPPModule.cpp b/libhwc2.1/libresource/ExynosMPPModule.cpp index bd90414..9096a1e 100644 --- a/libhwc2.1/libresource/ExynosMPPModule.cpp +++ b/libhwc2.1/libresource/ExynosMPPModule.cpp @@ -36,16 +36,6 @@ uint32_t ExynosMPPModule::getSrcXOffsetAlign(struct exynos_image &src) return mSrcSizeRestrictions[idx].cropXAlign; } -uint32_t ExynosMPPModule::getDstWidthAlign(struct exynos_image &dst) -{ - if (((dst.format == HAL_PIXEL_FORMAT_EXYNOS_YCbCr_420_SPN_S10B) || - (dst.format == HAL_PIXEL_FORMAT_EXYNOS_YCbCr_420_SP_M_S10B)) && - (mPhysicalType == MPP_MSC)) - return 4; - - return ExynosMPP::getDstWidthAlign(dst); -} - bool ExynosMPPModule::isSupportedCompression(struct exynos_image &src) { if (src.compressed) { @@ -121,7 +111,6 @@ bool ExynosMPPModule::isSupportedTransform(struct exynos_image &src) ExynosMPP *sharedMPP = NULL; switch (mPhysicalType) { - case MPP_MSC: case MPP_G2D: return true; case MPP_DPP_G: diff --git a/libhwc2.1/libresource/ExynosMPPModule.h b/libhwc2.1/libresource/ExynosMPPModule.h index a48a5d6..146ccdd 100644 --- a/libhwc2.1/libresource/ExynosMPPModule.h +++ b/libhwc2.1/libresource/ExynosMPPModule.h @@ -28,7 +28,6 @@ class ExynosMPPModule : public ExynosMPP { virtual bool isSupportedTransform(struct exynos_image &src); virtual bool isSupportedCompression(struct exynos_image &src); virtual uint32_t getSrcXOffsetAlign(struct exynos_image &src); - virtual uint32_t getDstWidthAlign(struct exynos_image &dst); virtual uint32_t getSrcMaxCropSize(struct exynos_image &src); public: uint32_t mChipId; diff --git a/libhwc2.1/libresource/ExynosResourceManagerModule.cpp b/libhwc2.1/libresource/ExynosResourceManagerModule.cpp index 997a5d0..dbd9a97 100644 --- a/libhwc2.1/libresource/ExynosResourceManagerModule.cpp +++ b/libhwc2.1/libresource/ExynosResourceManagerModule.cpp @@ -62,3 +62,10 @@ ExynosResourceManagerModule::ExynosResourceManagerModule(ExynosDevice* device) ExynosResourceManagerModule::~ExynosResourceManagerModule() { } + +#ifdef DISABLE_READ_RESTRICTIONS +bool ExynosResourceManagerModule::makeDPURestrictions(int fd) +{ + return false; +} +#endif diff --git a/libhwc2.1/libresource/ExynosResourceManagerModule.h b/libhwc2.1/libresource/ExynosResourceManagerModule.h index 19da403..04f0d7e 100644 --- a/libhwc2.1/libresource/ExynosResourceManagerModule.h +++ b/libhwc2.1/libresource/ExynosResourceManagerModule.h @@ -22,6 +22,9 @@ class ExynosResourceManagerModule : public ExynosResourceManager { public: ExynosResourceManagerModule(ExynosDevice* device); ~ExynosResourceManagerModule(); +#ifdef DISABLE_READ_RESTRICTIONS + virtual bool makeDPURestrictions(int fd); +#endif }; #endif // _EXYNOS_RESOURCE_MANAGER_MODULE_H |