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
a055cf3a
Commit
a055cf3a
authored
Oct 24, 2017
by
Rob Clark
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/msm/mdp5: ignore planes that are not visible
Signed-off-by:
Rob Clark
<
robdclark@gmail.com
>
parent
96169f4e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
drivers/gpu/drm/msm/mdp/mdp5/mdp5_crtc.c
drivers/gpu/drm/msm/mdp/mdp5/mdp5_crtc.c
+8
-0
No files found.
drivers/gpu/drm/msm/mdp/mdp5/mdp5_crtc.c
View file @
a055cf3a
...
...
@@ -114,6 +114,8 @@ static u32 crtc_flush_all(struct drm_crtc *crtc)
return
0
;
drm_atomic_crtc_for_each_plane
(
plane
,
crtc
)
{
if
(
!
plane
->
state
->
visible
)
continue
;
flush_mask
|=
mdp5_plane_get_flush
(
plane
);
}
...
...
@@ -242,6 +244,9 @@ static void blend_setup(struct drm_crtc *crtc)
drm_atomic_crtc_for_each_plane
(
plane
,
crtc
)
{
enum
mdp5_pipe
right_pipe
;
if
(
!
plane
->
state
->
visible
)
continue
;
pstate
=
to_mdp5_plane_state
(
plane
->
state
);
pstates
[
pstate
->
stage
]
=
pstate
;
stage
[
pstate
->
stage
][
PIPE_LEFT
]
=
mdp5_plane_pipe
(
plane
);
...
...
@@ -586,6 +591,9 @@ static int mdp5_crtc_atomic_check(struct drm_crtc *crtc,
DBG
(
"%s: check"
,
crtc
->
name
);
drm_atomic_crtc_state_for_each_plane_state
(
plane
,
pstate
,
state
)
{
if
(
!
pstate
->
visible
)
continue
;
pstates
[
cnt
].
plane
=
plane
;
pstates
[
cnt
].
state
=
to_mdp5_plane_state
(
pstate
);
...
...
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