[igt-dev] [PATCH 4/4] HAX: Add VRR negative tests to BAT
Bhanuprakash Modem
bhanuprakash.modem at intel.com
Fri Apr 22 07:52:23 UTC 2022
Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem at intel.com>
---
tests/intel-ci/fast-feedback.testlist | 2 ++
tests/kms_vrr.c | 7 +++++--
2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/tests/intel-ci/fast-feedback.testlist b/tests/intel-ci/fast-feedback.testlist
index f6329708..71ff4748 100644
--- a/tests/intel-ci/fast-feedback.testlist
+++ b/tests/intel-ci/fast-feedback.testlist
@@ -134,6 +134,8 @@ igt at kms_psr@cursor_plane_move
igt at kms_psr@sprite_plane_onoff
igt at kms_psr@primary_mmap_gtt
igt at kms_setmode@basic-clone-single-crtc
+igt at kms_vrr@negative-basic
+igt at kms_vrr@parse-vrr-range
igt at i915_pm_backlight@basic-brightness
igt at i915_pm_rpm@basic-pci-d3-state
igt at i915_pm_rpm@basic-rte
diff --git a/tests/kms_vrr.c b/tests/kms_vrr.c
index ad5b10ac..974a7ec2 100644
--- a/tests/kms_vrr.c
+++ b/tests/kms_vrr.c
@@ -465,6 +465,7 @@ static void
test_negative_basic(data_t *data, enum pipe pipe,
igt_output_t *output, uint32_t flags)
{
+ uint64_t vrr_enabled;
igt_info("VRR Negative Test execution on %s, PIPE_%s.\n",
output->name, kmstest_pipe_name(pipe));
@@ -476,8 +477,10 @@ test_negative_basic(data_t *data, enum pipe pipe,
* enabled the VRR on selected pipe.
*/
igt_wait_for_vblank(data->drm_fd, data->display.pipes[pipe].crtc_offset);
- igt_assert_f(!igt_pipe_get_prop(&data->display, pipe, IGT_CRTC_VRR_ENABLED),
- "VRR shouln't be enabled on Non-VRR panel.\n");
+ vrr_enabled = igt_pipe_get_prop(&data->display, pipe, IGT_CRTC_VRR_ENABLED);
+
+ igt_info("VRR_ENABLED: %ld\n", vrr_enabled);
+ igt_assert_f(!vrr_enabled, "VRR shouln't be enabled on Non-VRR panel.\n");
/* Clean-up */
igt_plane_set_fb(data->primary, NULL);
--
2.35.1
More information about the igt-dev
mailing list