summaryrefslogtreecommitdiff
path: root/tests/kms_flip.c
diff options
context:
space:
mode:
authorMelissa Wen <melissa.srw@gmail.com>2020-07-06 12:50:59 -0300
committerArkadiusz Hiler <arkadiusz.hiler@intel.com>2020-07-07 17:57:46 +0300
commit90254c14f4e68bec9d4a114ddf039075f3c1a30c (patch)
treee50702df13c197cb7713cb6df9a6d38ffe12335e /tests/kms_flip.c
parent5da80efbc7a2d5bd7b30c0f9eb4b5d001c99b558 (diff)
lib/igt_fb: remove extra parameters from igt_put_cairo_ctx
The function igt_put_cairo_ctx currently requires three parameters, but only one of them is used in it. This patch removes the useless parameters, making the code more readable and cohesive. It also applies the change to all occurrences of the function in the code. Signed-off-by: Melissa Wen <melissa.srw@gmail.com> Reviewed-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
Diffstat (limited to 'tests/kms_flip.c')
-rwxr-xr-xtests/kms_flip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/kms_flip.c b/tests/kms_flip.c
index 2b64b4f3..b33cfe9c 100755
--- a/tests/kms_flip.c
+++ b/tests/kms_flip.c
@@ -983,7 +983,7 @@ static void paint_flip_mode(struct igt_fb *fb, bool odd_frame)
cairo_set_source_rgb(cr, 1, 1, 1);
cairo_fill(cr);
- igt_put_cairo_ctx(drm_fd, fb, cr);
+ igt_put_cairo_ctx(cr);
}
static bool fb_is_bound(struct test_output *o, int fb)