disp: msm: sde: convert ubwc stats roi into blob property
This change converts the ubwc stats roi into a blob property. This allows for the roi data structure to be passed into kernel. Change-Id: I4b30dcc16bcbd152428861444ff321add860942f Signed-off-by: Nilaan Gunabalachandran <quic_ngunabal@quicinc.com>
This commit is contained in:

committed by
Gerrit - the friendly Code Review server

parent
5a5adbba9f
commit
eab3fd66db
@@ -117,6 +117,7 @@ enum msm_mdp_plane_property {
|
||||
PLANE_PROP_DMA_GC,
|
||||
PLANE_PROP_FP16_GC,
|
||||
PLANE_PROP_FP16_CSC,
|
||||
PLANE_PROP_UBWC_STATS_ROI,
|
||||
|
||||
/* # of blob properties */
|
||||
PLANE_PROP_BLOBCOUNT,
|
||||
@@ -140,7 +141,6 @@ enum msm_mdp_plane_property {
|
||||
PLANE_PROP_INVERSE_PMA,
|
||||
PLANE_PROP_FP16_IGC,
|
||||
PLANE_PROP_FP16_UNMULT,
|
||||
PLANE_PROP_UBWC_STATS_ROI,
|
||||
|
||||
/* enum/bitmask properties */
|
||||
PLANE_PROP_BLEND_OP,
|
||||
|
@@ -2764,7 +2764,7 @@ void sde_crtc_get_frame_data(struct drm_crtc *crtc)
|
||||
|
||||
/* Collect plane specific data */
|
||||
drm_for_each_plane_mask(plane, crtc->dev, sde_crtc->plane_mask_old)
|
||||
sde_plane_get_frame_data(plane, &data->plane_frame_data[i]);
|
||||
sde_plane_get_frame_data(plane, &data->plane_frame_data[i++]);
|
||||
|
||||
if (frame_data->cnt)
|
||||
_sde_crtc_frame_data_notify(crtc, data);
|
||||
|
@@ -3992,8 +3992,8 @@ static void _sde_plane_install_properties(struct drm_plane *plane,
|
||||
PLANE_PROP_FB_TRANSLATION_MODE);
|
||||
|
||||
if (psde->pipe_hw->ops.set_ubwc_stats_roi)
|
||||
msm_property_install_range(&psde->property_info, "ubwc_stats_roi",
|
||||
0, 0, 0xFFFFFFFF, 0, PLANE_PROP_UBWC_STATS_ROI);
|
||||
msm_property_install_volatile_range(&psde->property_info, "ubwc_stats_roi",
|
||||
0, 0, ~0, 0, PLANE_PROP_UBWC_STATS_ROI);
|
||||
vfree(info);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user