[PATCH i-g-t 14/22] tests/kms_flip_scaled_crc: Adopt to use allocator
Bhanuprakash Modem
bhanuprakash.modem at intel.com
Fri Jun 25 12:54:08 UTC 2021
Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem at intel.com>
---
tests/kms_flip_scaled_crc.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/tests/kms_flip_scaled_crc.c b/tests/kms_flip_scaled_crc.c
index 19c879fe11..fda3899248 100644
--- a/tests/kms_flip_scaled_crc.c
+++ b/tests/kms_flip_scaled_crc.c
@@ -180,6 +180,9 @@ static enum subrval test_flip_to_scaled(data_t *data, uint32_t index,
kmstest_pipe_name(pipe));
if (data->big_fb.fb_id == 0) {
+ uint64_t ahnd = get_reloc_ahnd(data->drm_fd, 0);
+ data->small_fb.ahnd = data->big_fb.ahnd = ahnd;
+
setup_fb(data, &data->small_fb,
data->attemptmodewidth * flip_scenario_test[index].firstmultiplier,
data->attemptmodeheight * flip_scenario_test[index].firstmultiplier,
@@ -196,6 +199,8 @@ static enum subrval test_flip_to_scaled(data_t *data, uint32_t index,
data->small_fb.height);
igt_debug("big fb %dx%d\n", data->big_fb.width,
data->big_fb.height);
+
+ put_ahnd(ahnd);
}
igt_output_set_pipe(output, pipe);
--
2.20.1
More information about the Intel-gfx-trybot
mailing list