uapi: sde_drm: Define FOD_PRESSED_LAYER_ZORDER

Change-Id: I5b25d19fab3a2901948d639c785165e70786f4ab
This commit is contained in:
Pig 2020-08-14 20:06:43 +08:00 committed by Bruno Martins
parent 78016cfe81
commit b571fe4384
2 changed files with 7 additions and 2 deletions

View File

@ -4685,8 +4685,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;
}

View File

@ -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_ */