summaryrefslogtreecommitdiff
path: root/samsung/exynos_drm_plane.c
diff options
context:
space:
mode:
authorJiun Yu <jiun.yu@samsung.com>2019-10-15 16:33:50 +0900
committerAdrian Salido <salidoa@google.com>2020-09-29 13:59:15 -0700
commit8f5854d409a535e2c6f1d4968e56f3be9db57ada (patch)
tree56c923ea4525946a4a47d86ffaf9290fce165f21 /samsung/exynos_drm_plane.c
parent8d795902b92d1687645bb26d322db438636e4053 (diff)
downloaddisplay-8f5854d409a535e2c6f1d4968e56f3be9db57ada.tar.gz
drm: samsung: compression source is moved to modifier.
The interface of compression source is changed from plane property to modifier because this information is related to buffer. This information is useful if there is a problem with AFBC compressed buffer. Signed-off-by: Jiun Yu <jiun.yu@samsung.com> Change-Id: Ib96cc5cfed71f05a8aa31ebd78f51d8dd2f087f8
Diffstat (limited to 'samsung/exynos_drm_plane.c')
-rw-r--r--samsung/exynos_drm_plane.c29
1 files changed, 0 insertions, 29 deletions
diff --git a/samsung/exynos_drm_plane.c b/samsung/exynos_drm_plane.c
index 003ec1c..5e1f91b 100644
--- a/samsung/exynos_drm_plane.c
+++ b/samsung/exynos_drm_plane.c
@@ -191,8 +191,6 @@ static int exynos_drm_plane_set_property(struct drm_plane *plane,
exynos_state->blend_mode = val;
else if (property == exynos_plane->props.color)
exynos_state->color = val;
- else if (property == exynos_plane->props.comp_src)
- exynos_state->comp_src = val;
else if (property == exynos_plane->props.dataspace)
exynos_state->dataspace = val;
else if (property == exynos_plane->props.max_luminance)
@@ -220,8 +218,6 @@ static int exynos_drm_plane_get_property(struct drm_plane *plane,
*val = exynos_state->blend_mode;
else if (property == exynos_plane->props.color)
*val = exynos_state->color;
- else if (property == exynos_plane->props.comp_src)
- *val = exynos_state->comp_src;
else if (property == exynos_plane->props.restriction)
*val = exynos_state->blob_id_restriction;
else if (property == exynos_plane->props.dataspace)
@@ -433,30 +429,6 @@ int exynos_drm_plane_create_blend_mode_property(
return 0;
}
-int exynos_drm_plane_create_comp_src_property(
- struct exynos_drm_plane *exynos_plane,
- const struct exynos_drm_plane_config *config)
-{
- struct drm_plane *plane = &exynos_plane->base;
- struct drm_property *prop;
- static const struct drm_prop_enum_list comp_src_list[] = {
- { EXYNOS_DRM_MODE_COMP_SRC_NONE, "None" },
- { EXYNOS_DRM_MODE_COMP_SRC_G2D, "G2D" },
- { EXYNOS_DRM_MODE_COMP_SRC_GPU, "GPU" },
- };
-
- prop = drm_property_create_enum(plane->dev, 0, "compression source",
- comp_src_list, ARRAY_SIZE(comp_src_list));
- if (!prop)
- return -ENOMEM;
-
- drm_object_attach_property(&plane->base, prop,
- EXYNOS_DRM_MODE_COMP_SRC_NONE);
- exynos_plane->props.comp_src = prop;
-
- return 0;
-}
-
static int exynos_drm_plane_create_restriction_property(
struct exynos_drm_plane *exynos_plane,
const struct exynos_drm_plane_config *config)
@@ -587,7 +559,6 @@ int exynos_plane_init(struct drm_device *dev,
exynos_drm_plane_create_alpha_property(exynos_plane, config);
exynos_drm_plane_create_blend_mode_property(exynos_plane, config);
exynos_drm_plane_create_color_property(exynos_plane, config);
- exynos_drm_plane_create_comp_src_property(exynos_plane, config);
exynos_drm_plane_create_restriction_property(exynos_plane, config);
exynos_drm_plane_create_dataspace_property(exynos_plane);