summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2021-06-29 01:11:26 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2021-06-29 01:11:26 +0000
commit76a9369a19305bd0c3afd1576e15bb8b929f654b (patch)
treea9c10ac6c8ea06fcc41095cf79635e486f72c572
parent590e65bea4cc3a54f69cd4b1520606779c44d2f2 (diff)
parent5ad27568f5b28ecbe87f0f96dc6717bf5d2dc412 (diff)
downloadgs101-76a9369a19305bd0c3afd1576e15bb8b929f654b.tar.gz
Snap for 7501202 from 5ad27568f5b28ecbe87f0f96dc6717bf5d2dc412 to sc-d2-release
Change-Id: I255d5fa72abac1466f6515ff81ac5dd10bdb5bf7
-rw-r--r--libhwc2.1/ExynosResourceRestriction.h28
1 files changed, 18 insertions, 10 deletions
diff --git a/libhwc2.1/ExynosResourceRestriction.h b/libhwc2.1/ExynosResourceRestriction.h
index 218e16e..7b6fd8b 100644
--- a/libhwc2.1/ExynosResourceRestriction.h
+++ b/libhwc2.1/ExynosResourceRestriction.h
@@ -256,20 +256,28 @@ const dpu_attr_map_t dpu_attr_map_table [] =
};
static ppc_table ppc_table_map = {
- {PPC_IDX(MPP_G2D,PPC_FORMAT_YUV420,PPC_ROT_NO), {2.9, 2.6, 3.4, 5.1, 11.9, 2.6, 3.0}},
- {PPC_IDX(MPP_G2D,PPC_FORMAT_YUV420,PPC_ROT), {2.0, 1.9, 3.3, 5.2, 7.0, 1.9, 3.2}},
+ /* G2D support only 2 plane YUV, so all YUV format should use YUV2P PPC table */
+ /* In case of Scale-Up, G2D should use same PPC table */
+ {PPC_IDX(MPP_G2D,PPC_FORMAT_YUV420,PPC_ROT_NO), {3.5, 3.6, 4.3, 4.3, 3.5, 3.7, 3.7}},
+ {PPC_IDX(MPP_G2D,PPC_FORMAT_YUV420,PPC_ROT), {2.8, 3.2, 3.9, 4.3, 3.6, 2.6, 2.6}},
- {PPC_IDX(MPP_G2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