[PATCH libdrm v1 0/2] Add Writeback Support for Modetest

Rohith Iyer quic_rohiiyer at quicinc.com
Mon Jul 25 19:26:37 UTC 2022


Add writeback support to modetest with the below options:

- Passing in -c will now also show the writeback connector

- Test a built-in mode on writeback connector

- Test a custom mode from user input on writeback connector
  Usage: "./modetest -M msm -x <connector_id>:<mode_parameters>
            -a -P <plane_id>@<crtc_id>:<widthxheight>+0+0 at RG24."
  Refer to --help for exact syntax

- Dump the writeback output buffer to bitstream
  Usage: "./modetest -M msm -s <connector_id>:<widthxheight>
          -a -o <filepath>
          -P <plane_id>@<crtc_id>:<widthxheight>+0+0 at RG24"

This currently supports a singular writeback connector.
This patch also fixes a bug for running modetest with the atomic flag.

Rohith Iyer (2):
  tests/modetest: Allocate drmModeAtomicReq before setting properties
  tests/modetest: Add support for writeback connector

 tests/modetest/buffers.c  |  19 ++++++
 tests/modetest/buffers.h  |   1 +
 tests/modetest/modetest.c | 128 ++++++++++++++++++++++++++++++++------
 3 files changed, 128 insertions(+), 20 deletions(-)

-- 
2.31.0



More information about the dri-devel mailing list