summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/igt_kms.c10
-rw-r--r--lib/igt_kms.h3
2 files changed, 11 insertions, 2 deletions
diff --git a/lib/igt_kms.c b/lib/igt_kms.c
index 0815c418..6c3a536c 100644
--- a/lib/igt_kms.c
+++ b/lib/igt_kms.c
@@ -319,12 +319,12 @@ const unsigned char* igt_kms_get_alt_edid(void)
*/
const char *kmstest_pipe_name(enum pipe pipe)
{
- const char *str[] = { "A", "B", "C" };
+ const char *str[] = { "A", "B", "C", "D", "E", "F"};
if (pipe == PIPE_NONE)
return "None";
- if (pipe > 2)
+ if (pipe >= I915_MAX_PIPES)
return "invalid";
return str[pipe];
@@ -344,6 +344,12 @@ int kmstest_pipe_to_index(char pipe)
return 1;
else if (pipe == 'C')
return 2;
+ else if (pipe == 'D')
+ return 3;
+ else if (pipe == 'E')
+ return 4;
+ else if (pipe == 'F')
+ return 5;
else
return -EINVAL;
}
diff --git a/lib/igt_kms.h b/lib/igt_kms.h
index 0ef5d9d7..8d33cdd1 100644
--- a/lib/igt_kms.h
+++ b/lib/igt_kms.h
@@ -54,6 +54,9 @@ enum pipe {
PIPE_A = 0,
PIPE_B,
PIPE_C,
+ PIPE_D,
+ PIPE_E,
+ PIPE_F,
I915_MAX_PIPES
};
const char *kmstest_pipe_name(enum pipe pipe);