[PATCH i-g-t v3 0/3] tests/kms_writeback: Add clone mode subtest
Jessica Zhang
quic_jesszhan at quicinc.com
Thu Sep 19 17:26:49 UTC 2024
Add a subtest that will iterate through all pairs of
non-writeback and writeback cloned outputs and dump the writeback
framebuffer for each pair.
This series includes:
- Fixes for properly cleaning up the kms_writeback state
- Adjust the duplicate pipe check in igt_display_refresh() to allow for
combinations of valid clones
- Moving the writeback dump to its own subtest
- Adding a subtest to dump all writeback+non-writeback cloned pairs
This series depends on this DRM framework change [1] to avoid issues
where modeset isn't happening when the writeback and primary display
outputs have the same mode.
[1] https://patchwork.freedesktop.org/series/138284/
To dump the clone mode buffer, run the following command:
IGT_FRAME_DUMP_PATH=<dump path> FRAME_PNG_FILE_NAME=<file name> \
./build/tests/kms_writeback [--run-subtest dump-valid-clones] -d
This will output a file named <file name>-encoder<writeback encoder
id>-encoder<primary display encoder id>
---
Changes in v3:
- Dropped change to force a modeset after igt_display_require()
- Fixed incorrect author name
- Grab the primary display mode as part of the clone mode subtest
(instead of requiring user to specify the mode)
- Link to v2: https://lore.kernel.org/r/20240828-igt-cwb-v2-0-7b255c730c55@quicinc.com
Changes in v2:
- Corrected author email
- Link to v1: https://lore.kernel.org/r/20240828-igt-cwb-v1-0-48aee421fc97@quicinc.com
---
Esha Bharadwaj (2):
lib/igt_kms: Add helper to get encoder index
tests/kms_writeback: Add dump for valid clone mode
Jessica Zhang (1):
tests/kms_writeback: clear writeback properties in teardown path
lib/igt_kms.c | 15 ++++++++
lib/igt_kms.h | 1 +
tests/kms_setmode.c | 14 ++------
tests/kms_writeback.c | 97 ++++++++++++++++++++++++++++++++++++++++++++-------
4 files changed, 102 insertions(+), 25 deletions(-)
---
base-commit: c459544b7af00e4599e1ad010e9f773086cb0c19
change-id: 20240827-igt-cwb-23fd81d3a7a4
Best regards,
--
Jessica Zhang <quic_jesszhan at quicinc.com>
More information about the igt-dev
mailing list