disp: msm: sde: Avoid kcallocs in atomic commit path
To avoid kcalloc for the multirect plane states and plane states will now be stored sde crtc. These states are populated momentarily and accessed in a single context for a handful of functions then are not used. This will clean up parameters passed between functions in the commit path as well. Change-Id: I6a8116a43c140b3f1c0464734032b8db13c1cfb0 Signed-off-by: Samantha Tran <samtran@codeaurora.org>
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2015-2020, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2015-2021, The Linux Foundation. All rights reserved.
|
||||
* Copyright (C) 2013 Red Hat
|
||||
* Author: Rob Clark <robdclark@gmail.com>
|
||||
*
|
||||
@@ -137,16 +137,6 @@ struct sde_plane_state {
|
||||
struct sde_hw_pipe_cdp_cfg cdp_cfg;
|
||||
};
|
||||
|
||||
/**
|
||||
* struct sde_multirect_plane_states: Defines multirect pair of drm plane states
|
||||
* @r0: drm plane configured on rect 0
|
||||
* @r1: drm plane configured on rect 1
|
||||
*/
|
||||
struct sde_multirect_plane_states {
|
||||
const struct drm_plane_state *r0;
|
||||
const struct drm_plane_state *r1;
|
||||
};
|
||||
|
||||
#define to_sde_plane_state(x) \
|
||||
container_of(x, struct sde_plane_state, base)
|
||||
|
||||
|
Reference in New Issue
Block a user