[PATCH i-g-t v6 01/12] benchmarks/kms_fb_stress: Set DRM_CLIENT_CAP_WRITEBACK_CONNECTORS before igt_require()
Arthur Grillo
arthurgrillo at riseup.net
Fri Sep 13 00:39:25 UTC 2024
After commit dc2d7fb4f978 ("lib/igt_kms: move setting
DRM_CLIENT_CAP_WRITEBACK_CONNECTORS to kms_writeback") igt_require() no
longer sets DRM_CLIENT_CAP_WRITEBACK_CONNECTORS. So set it before
calling igt_require().
Signed-off-by: Arthur Grillo <arthurgrillo at riseup.net>
Fixes: dc2d7fb4f978 ("lib/igt_kms: move setting DRM_CLIENT_CAP_WRITEBACK_CONNECTORS to kms_writeback")
---
benchmarks/kms_fb_stress.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/benchmarks/kms_fb_stress.c b/benchmarks/kms_fb_stress.c
index 00eaa0a4931a..804bb81a4cf7 100644
--- a/benchmarks/kms_fb_stress.c
+++ b/benchmarks/kms_fb_stress.c
@@ -145,6 +145,7 @@ igt_simple_main
enum pipe pipe = PIPE_NONE;
struct timespec then, now;
double elapsed;
+ int ret;
data.kms = default_kms;
@@ -152,6 +153,10 @@ igt_simple_main
kmstest_set_vt_graphics_mode();
+ ret = drmSetClientCap(data.display.drm_fd, DRM_CLIENT_CAP_WRITEBACK_CONNECTORS, 1);
+
+ igt_require_f(!ret, "error setting DRM_CLIENT_CAP_WRITEBACK_CONNECTORS\n");
+
igt_display_require(&data.display, data.fd);
igt_require(data.display.is_atomic);
--
2.46.0
More information about the igt-dev
mailing list