]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/atomic: Create __drm_atomic_helper_crtc_reset() for subclassing crtc_state.
authorMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Fri, 1 Mar 2019 12:56:12 +0000 (13:56 +0100)
committerMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Wed, 24 Apr 2019 09:51:30 +0000 (11:51 +0200)
commit7d26097b4beb802fb6ce7cd6389ac4bf12b1a6ae
tree30f4686e2fe67b2527dc98bae989eafe6af40eb6
parent9158e3c31163488364c76bf6948507e7640d511f
drm/atomic: Create __drm_atomic_helper_crtc_reset() for subclassing crtc_state.

We already have __drm_atomic_helper_connector_reset() and
__drm_atomic_helper_plane_reset(), extend this to crtc as well.

This will allow us to set default values in the crtc_state, without
having to do it in each driver separately.

Of all drivers that need conversion, only nouveau is done in this
commit, because it wrote its own __drm_atomic_helper_crtc_reset(),
clashing with the drm core.

Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Cc: Ben Skeggs <bskeggs@redhat.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20190301125627.7285-3-maarten.lankhorst@linux.intel.com
drivers/gpu/drm/drm_atomic_state_helper.c
drivers/gpu/drm/nouveau/dispnv50/head.c
include/drm/drm_atomic_state_helper.h