diff options
author | Santhosh Reddy Guddati <santhosh.reddy.guddati@intel.com> | 2024-11-13 19:55:55 +0530 |
---|---|---|
committer | Santhosh Reddy Guddati <santhosh.reddy.guddati@intel.com> | 2024-11-19 10:51:33 +0530 |
commit | 10a7dcaa598461073d6c7268704f32043af8722f (patch) | |
tree | b917a35dd9daebef54e479d6ac970178eaf9e07a | |
parent | 4942fc57c20f9cb2195e70991c4e4df03dd3db21 (diff) |
tests/kms_hdr: Skip brightness on non-internal panels
Skip the brightness test if the output is not an internal panel and log
the skip message.
-Add closes tag in commit message (Swati).
Closes: https://gitlab.freedesktop.org/drm/xe/kernel/-/issues/3312
Signed-off-by: Santhosh Reddy Guddati <santhosh.reddy.guddati@intel.com>
Reviewed-by: Pranay Samala <pranay.samala@intel.com>
Reviewed-by: Swati Sharma <swati2.sharma@intel.com>
-rw-r--r-- | tests/kms_hdr.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/kms_hdr.c b/tests/kms_hdr.c index b67902d43..c4c9df3fc 100644 --- a/tests/kms_hdr.c +++ b/tests/kms_hdr.c @@ -696,6 +696,12 @@ static void test_hdr(data_t *data, uint32_t flags) continue; } + if ((flags & TEST_BRIGHTNESS) && !output_is_internal_panel(output)) { + igt_info("%s: Can't run brightness test on non-internal panel.\n", + igt_output_name(output)); + continue; + } + for_each_pipe(display, pipe) { igt_output_set_pipe(output, pipe); if (!intel_pipe_output_combo_valid(display)) { |