]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/damage-helper: add const qualifier in drm_atomic_helper_damage_merged()
authorVinod Govindapillai <vinod.govindapillai@intel.com>
Fri, 28 Feb 2025 09:37:55 +0000 (11:37 +0200)
committerMika Kahola <mika.kahola@intel.com>
Mon, 3 Mar 2025 12:45:40 +0000 (14:45 +0200)
commit9a112dd8c17fa6397785f2227dfe4f6f175ed524
tree9fa0782e212f8131c1e241d659a4e0c6c1cd3b79
parent840cb2dc27174e06697b5d16ad76cd5adbfb4cdc
drm/damage-helper: add const qualifier in drm_atomic_helper_damage_merged()

Add a const qualifier for the "state" parameter as well as we could
use this helper to get the combined damage in cases of const
drm_plane_state as well. Needed mainly for xe driver big joiner cases
where we need to track the damage from immutable plane state.

Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Vinod Govindapillai <vinod.govindapillai@intel.com>
Acked-by: Thomas Zimmermann <tzimmermann@suse.de>
Signed-off-by: Mika Kahola <mika.kahola@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250228093802.27091-3-vinod.govindapillai@intel.com
drivers/gpu/drm/drm_damage_helper.c
include/drm/drm_damage_helper.h