diff options
author | Robert Foss <robert.foss@collabora.com> | 2017-01-23 12:03:26 -0500 |
---|---|---|
committer | Robert Foss <robert.foss@collabora.com> | 2017-01-31 16:46:14 -0500 |
commit | 2ecbdca3ff009b1833968febe2e50b3fa4c1f44e (patch) | |
tree | 5a7c258f1b6566809286281d87bd17ead9fd9785 /lib/igt_kms.c | |
parent | 859f5e54194524d9dfb91e023e84627a157ae009 (diff) |
lib/igt_kms: Remove code obsoleted by dyn n_planes implementation
Due to the dyn n_planes implementation some attributes and functions
were made obsolete and cand be removed.
However to keep all of the tests building the obsolete code is
removed after all of the tests have been made compatible with the
dyn n_planes changes.
Signed-off-by: Robert Foss <robert.foss@collabora.com>
Reviewed-by: Mika Kahola <mika.kahola@intel.com>
Diffstat (limited to 'lib/igt_kms.c')
-rw-r--r-- | lib/igt_kms.c | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/lib/igt_kms.c b/lib/igt_kms.c index 961a3e4d..4ba6316d 100644 --- a/lib/igt_kms.c +++ b/lib/igt_kms.c @@ -346,32 +346,6 @@ int kmstest_pipe_to_index(char pipe) } /** - * kmstest_plane_name: - * @plane: display plane - * - * Returns: String representing @plane, e.g. "plane1". - */ -const char *kmstest_plane_name(enum igt_plane plane) -{ - static const char *names[] = { - [IGT_PLANE_1] = "plane1", - [IGT_PLANE_2] = "plane2", - [IGT_PLANE_3] = "plane3", - [IGT_PLANE_4] = "plane4", - [IGT_PLANE_5] = "plane5", - [IGT_PLANE_6] = "plane6", - [IGT_PLANE_7] = "plane7", - [IGT_PLANE_8] = "plane8", - [IGT_PLANE_9] = "plane9", - [IGT_PLANE_CURSOR] = "cursor", - }; - - igt_assert(plane < ARRAY_SIZE(names) && names[plane]); - - return names[plane]; -} - -/** * kmstest_plane_type_name: * @plane: display plane * @@ -1671,7 +1645,6 @@ void igt_display_init(igt_display_t *display, int drm_fd) plane = &pipe->planes[p]; plane->index = p++; } - plane->is_primary = 1; break; case DRM_PLANE_TYPE_CURSOR: if (pipe->plane_cursor == -1) { @@ -1683,7 +1656,6 @@ void igt_display_init(igt_display_t *display, int drm_fd) plane->index = p++; } display->has_cursor_plane = true; - plane->is_cursor = 1; break; default: plane = &pipe->planes[p]; |