Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
15ee1e05
Commit
15ee1e05
authored
Aug 22, 2019
by
Rob Clark
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/msm/dpu: add rotation property
Signed-off-by:
Rob Clark
<
robdclark@chromium.org
>
parent
2eba6907
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c
drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c
+20
-0
No files found.
drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c
View file @
15ee1e05
...
...
@@ -1037,8 +1037,21 @@ static void dpu_plane_sspp_atomic_update(struct drm_plane *plane)
pstate
->
multirect_mode
);
if
(
pdpu
->
pipe_hw
->
ops
.
setup_format
)
{
unsigned
int
rotation
;
src_flags
=
0x0
;
rotation
=
drm_rotation_simplify
(
state
->
rotation
,
DRM_MODE_ROTATE_0
|
DRM_MODE_REFLECT_X
|
DRM_MODE_REFLECT_Y
);
if
(
rotation
&
DRM_MODE_REFLECT_X
)
src_flags
|=
DPU_SSPP_FLIP_LR
;
if
(
rotation
&
DRM_MODE_REFLECT_Y
)
src_flags
|=
DPU_SSPP_FLIP_UD
;
/* update format */
pdpu
->
pipe_hw
->
ops
.
setup_format
(
pdpu
->
pipe_hw
,
fmt
,
src_flags
,
pstate
->
multirect_index
);
...
...
@@ -1519,6 +1532,13 @@ struct drm_plane *dpu_plane_init(struct drm_device *dev,
if
(
ret
)
DPU_ERROR
(
"failed to install zpos property, rc = %d
\n
"
,
ret
);
drm_plane_create_rotation_property
(
plane
,
DRM_MODE_ROTATE_0
,
DRM_MODE_ROTATE_0
|
DRM_MODE_ROTATE_180
|
DRM_MODE_REFLECT_X
|
DRM_MODE_REFLECT_Y
);
drm_plane_enable_fb_damage_clips
(
plane
);
/* success! finalize initialization */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment