[PATCH 0/3] drm: Test for primary plane in new drm_atomic_helper_check_crtc_state()

Thomas Zimmermann tzimmermann at suse.de
Fri Jun 17 10:32:23 UTC 2022


Provide drm_atomic_helper_check_crtc_state() for validating a CRTC
state against common constraints. As many CRTC need a primary plane
to work correctly, add this as the first test.

The simple-KMS helpers already contain related code. Convert it
to the new helper. Also add this test to ast.

The simple-kms changes were tested with simpledrm. The ast changes
were tested in AST2300 hardware.

Thomas Zimmermann (3):
  drm/atomic-helper: Add helper drm_atomic_helper_check_crtc_state()
  drm/simple-kms: Use drm_atomic_helper_check_crtc_state()
  drm/ast: Enable primary plane with CRTC

 drivers/gpu/drm/ast/ast_mode.c          | 13 ++++--
 drivers/gpu/drm/drm_atomic_helper.c     | 55 +++++++++++++++++++++++++
 drivers/gpu/drm/drm_simple_kms_helper.c | 14 +++----
 include/drm/drm_atomic_helper.h         |  2 +
 4 files changed, 72 insertions(+), 12 deletions(-)


base-commit: 822a8442835012ce405080cb40f6317ef1e854ac
-- 
2.36.1



More information about the dri-devel mailing list