aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Jakobi2015-06-12 13:15:13 -0500
committerEmil Velikov2015-06-29 13:19:23 -0500
commitb26c8efb6566e78d12a93fee7c01f6857e07f611 (patch)
treec0f9d690888847a259b127bf1307cba333cf9158 /tests/exynos/exynos_fimg2d_test.c
parent13ad10afc306a76f9a61e6a339e412a34a59bfe4 (diff)
downloadexternal-libgbm-b26c8efb6566e78d12a93fee7c01f6857e07f611.tar.gz
external-libgbm-b26c8efb6566e78d12a93fee7c01f6857e07f611.tar.xz
external-libgbm-b26c8efb6566e78d12a93fee7c01f6857e07f611.zip
tests/exynos: remove connector_find_plane
No test uses DRM planes at the moment so this function is never called. Inspection of the git history shows that DRM planes were also never used in these tests in the past. Signed-off-by: Tobias Jakobi <tjakobi@math.uni-bielefeld.de> Acked-by: Emil Velikov <emil.l.velikov@gmail.com>
Diffstat (limited to 'tests/exynos/exynos_fimg2d_test.c')
-rw-r--r--tests/exynos/exynos_fimg2d_test.c31
1 files changed, 0 insertions, 31 deletions
diff --git a/tests/exynos/exynos_fimg2d_test.c b/tests/exynos/exynos_fimg2d_test.c
index 1ec7340d..59de4ba4 100644
--- a/tests/exynos/exynos_fimg2d_test.c
+++ b/tests/exynos/exynos_fimg2d_test.c
@@ -112,37 +112,6 @@ static void connector_find_mode(int fd, struct connector *c,
112 c->crtc = c->encoder->crtc_id; 112 c->crtc = c->encoder->crtc_id;
113} 113}
114 114
115static int connector_find_plane(int fd, unsigned int *plane_id)
116{
117 drmModePlaneRes *plane_resources;
118 drmModePlane *ovr;
119 int i;
120
121 plane_resources = drmModeGetPlaneResources(fd);
122 if (!plane_resources) {
123 fprintf(stderr, "drmModeGetPlaneResources failed: %s\n",
124 strerror(errno));
125 return -1;
126 }
127
128 for (i = 0; i < plane_resources->count_planes; i++) {
129 plane_id[i] = 0;
130
131 ovr = drmModeGetPlane(fd, plane_resources->planes[i]);
132 if (!ovr) {
133 fprintf(stderr, "drmModeGetPlane failed: %s\n",
134 strerror(errno));
135 continue;
136 }
137
138 if (ovr->possible_crtcs & (1 << 0))
139 plane_id[i] = ovr->plane_id;
140 drmModeFreePlane(ovr);
141 }
142
143 return 0;
144}
145
146static int drm_set_crtc(struct exynos_device *dev, struct connector *c, 115static int drm_set_crtc(struct exynos_device *dev, struct connector *c,
147 unsigned int fb_id) 116 unsigned int fb_id)
148{ 117{