drm: Add a new helper to validate damage during atomic_check
This helper function makes sure that damage from plane state is discarded for full modeset. Signed-off-by: Deepak Rawat <drawat@vmware.com> Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch> Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com> Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
This commit is contained in:

committed by
Thomas Hellstrom

parent
d3b2176782
commit
d9778b4026
@@ -32,6 +32,7 @@
|
||||
#include <drm/drm_crtc_helper.h>
|
||||
#include <drm/drm_atomic_helper.h>
|
||||
#include <drm/drm_writeback.h>
|
||||
#include <drm/drm_damage_helper.h>
|
||||
#include <linux/dma-fence.h>
|
||||
|
||||
#include "drm_crtc_helper_internal.h"
|
||||
@@ -862,6 +863,8 @@ drm_atomic_helper_check_planes(struct drm_device *dev,
|
||||
|
||||
drm_atomic_helper_plane_changed(state, old_plane_state, new_plane_state, plane);
|
||||
|
||||
drm_atomic_helper_check_plane_damage(state, new_plane_state);
|
||||
|
||||
if (!funcs || !funcs->atomic_check)
|
||||
continue;
|
||||
|
||||
|
Reference in New Issue
Block a user