Skip to content

Commit

Permalink
uapi: sde_drm: Define FOD_PRESSED_LAYER_ZORDER
Browse files Browse the repository at this point in the history
Change-Id: I5b25d19fab3a2901948d639c785165e70786f4ab
Signed-off-by: negrroo <mohammedaelnaggar1@gmail.com>
  • Loading branch information
PIPIPIG233666 authored and negrroo1 committed May 31, 2022
1 parent c81b16f commit d79afb0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/gpu/drm/msm/sde/sde_plane.c
Original file line number Diff line number Diff line change
Expand Up @@ -4709,8 +4709,8 @@ static int sde_plane_atomic_set_property(struct drm_plane *plane,
idx = msm_property_index(&psde->property_info,
property);
if (idx == PLANE_PROP_ZPOS) {
if (val & 0x20000000u) {
val &= ~0x20000000u;
if (val & FOD_PRESSED_LAYER_ZORDER) {
val &= ~FOD_PRESSED_LAYER_ZORDER;
fod_val = 1;
}

Expand Down
5 changes: 5 additions & 0 deletions include/uapi/drm/sde_drm.h
Original file line number Diff line number Diff line change
Expand Up @@ -446,4 +446,9 @@ struct sde_drm_roi_v1 {
#define SDE_MODE_DPMS_SUSPEND 4
#define SDE_MODE_DPMS_OFF 5

/**
* sde fod dim layer
*/
#define FOD_PRESSED_LAYER_ZORDER 0x20000000u

#endif /* _SDE_DRM_H_ */

0 comments on commit d79afb0

Please sign in to comment.