summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-05-02 23:23:48 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-05-02 23:23:48 +0000
commit4e807be66ee94810ba99599b5e963fe3d7f018e0 (patch)
tree18bcd0aacf74b3e5206e36b6dfde071dd8ec1e41
parent2f39b5a202c22a55831793c54058ff0b29a5a1bb (diff)
parente6f6b177bba37c69a3b2aff4c367de03c27a062a (diff)
downloadgs101-4e807be66ee94810ba99599b5e963fe3d7f018e0.tar.gz
Snap for 10053356 from e6f6b177bba37c69a3b2aff4c367de03c27a062a to udc-d1-release
Change-Id: Ib82b69e3decfd56597c9b8d355ff45a9ed1edd8c
-rw-r--r--libhwc2.1/ExynosResourceRestriction.h50
1 files changed, 25 insertions, 25 deletions
diff --git a/libhwc2.1/ExynosResourceRestriction.h b/libhwc2.1/ExynosResourceRestriction.h
index de896d9..97aef4a 100644
--- a/libhwc2.1/ExynosResourceRestriction.h
+++ b/libhwc2.1/ExynosResourceRestriction.h
@@ -182,6 +182,31 @@ static const restriction_key_t restriction_format_table[] = {
{MPP_G2D, NODE_NONE, HAL_PIXEL_FORMAT_GOOGLE_NV12_SP_10B, 0},
};
+static ppc_table ppc_table_map = {
+ /* 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_G2D,PPC_FORMAT_YUV422,PPC_ROT_NO), {3.5, 3.6, 4.3, 4.3, 3.5, 3.7, 3.7}},
+ {PPC_IDX(MPP_G2D,PPC_FORMAT_YUV422,PPC_ROT), {2.8, 3.2, 3.9, 4.3, 3.6, 2.6, 2.6}},
+
+ {PPC_IDX(MPP_G2D,PPC_FORMAT_P010,PPC_ROT_NO), {3.5, 3.6, 4.3, 4.3, 3.5, 3.7, 3.7}},
+ {PPC_IDX(MPP_G2D,PPC_FORMAT_P010,PPC_ROT), {2.8, 3.2, 3.9, 4.3, 3.6, 2.6, 2.6}},
+
+ {PPC_IDX(MPP_G2D,PPC_FORMAT_RGB32,PPC_ROT_NO), {3.2, 2.1, 2.6, 3.3, 3.6, 3.8, 3.8}},
+ {PPC_IDX(MPP_G2D,PPC_FORMAT_RGB32,PPC_ROT), {3.6, 2.1, 2.7, 3.3, 3.8, 3.5, 3.5}},
+
+ {PPC_IDX(MPP_G2D,PPC_FORMAT_SBWC,PPC_ROT_NO), {2.6, 1.4, 0.9, 1.0, 1.0, 3.6, 3.6}},
+ {PPC_IDX(MPP_G2D,PPC_FORMAT_SBWC,PPC_ROT), {2.6, 1.4, 0.9, 1.0, 1.0, 2.6, 2.6}},
+
+ {PPC_IDX(MPP_G2D,PPC_FORMAT_AFBC_RGB,PPC_ROT_NO), {3.4, 0.3, 0.5, 0.8, 0.7, 1.6, 1.6}},
+ {PPC_IDX(MPP_G2D,PPC_FORMAT_AFBC_RGB,PPC_ROT), {3.6, 0.3, 0.8, 0.9, 0.9, 1.4, 1.4}},
+
+ {PPC_IDX(MPP_G2D,PPC_FORMAT_AFBC_YUV,PPC_ROT_NO), {2.0, 0.8, 0.3, 0.3, 0.4, 2.9, 2.9}},
+ {PPC_IDX(MPP_G2D,PPC_FORMAT_AFBC_YUV,PPC_ROT), {2.0, 0.8, 0.3, 0.3, 0.4, 2.6, 2.6}},
+};
+
} // namespace gs101
const restriction_size_element restriction_size_table_rgb[] =
@@ -258,29 +283,4 @@ const dpu_attr_map_t dpu_attr_map_table [] =
{DPP_ATTR_WCG, MPP_ATTR_WCG},
};
-static ppc_table ppc_table_map = {
- /* G2D support only 2 plane YUV, so all YUV format should use YUV2P PPC table */
- /* In case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