summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVille Syrjälä <ville.syrjala@linux.intel.com>2019-11-28 22:45:34 +0200
committerVille Syrjälä <ville.syrjala@linux.intel.com>2021-02-23 22:33:58 +0200
commite9fe42cc058cfd18362a2954404394c9b2e37f2e (patch)
tree509d71a71214266a471ea71782313de52f4a90d0
parenta6c7181747850161377dae5161d33c0675ab273e (diff)
tests/kms_rmfb: Use COMMIT_UNIVERSAL for overlay/cursor planes
Using COMMIT_LEGACY for the cursor plane makes the test fail because the cursor framebuffer is never handed over to the kernel, and instead only the BO gets passed in via the legacy cursor ioctl. Thus the rmfb ioctl will not turn off the cursor plane since the kernel is using an internal fb for the cursor. Let's avoid that by treating the cursor as just another universal plane. Reviewed-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
-rw-r--r--tests/kms_rmfb.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/kms_rmfb.c b/tests/kms_rmfb.c
index 81932e0d8..2d49be8ea 100644
--- a/tests/kms_rmfb.c
+++ b/tests/kms_rmfb.c
@@ -87,8 +87,10 @@ test_rmfb(struct rmfb_data *data, igt_output_t *output, enum pipe pipe, bool reo
igt_plane_set_fb(plane, &fb);
}
- if (igt_display_try_commit2(&data->display, data->display.is_atomic ?
- COMMIT_ATOMIC : COMMIT_LEGACY)) {
+ if (igt_display_try_commit2(&data->display,
+ data->display.is_atomic ? COMMIT_ATOMIC :
+ plane->type == DRM_PLANE_TYPE_PRIMARY ?
+ COMMIT_LEGACY : COMMIT_UNIVERSAL)) {
/*
* Disable any plane that fails (presumably
* due to exceeding some hardware limit).