Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
weston
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Pekka Paalanen
weston
Commits
ada4f07b
Commit
ada4f07b
authored
9 years ago
by
Bryce Harrington
Browse files
Options
Downloads
Patches
Plain Diff
compositor-drm: Add comment for newly added drm_waitvblank_pipe()
parent
2ab4f4e3
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/compositor-drm.c
+13
-0
13 additions, 0 deletions
src/compositor-drm.c
with
13 additions
and
0 deletions
src/compositor-drm.c
+
13
−
0
View file @
ada4f07b
...
...
@@ -597,6 +597,19 @@ drm_output_set_gamma(struct weston_output *output_base,
weston_log
(
"set gamma failed: %m
\n
"
);
}
/* Determine the type of vblank synchronization to use for the output.
*
* The pipe parameter indicates which CRTC is in use. Knowing this, we
* can determine which vblank sequence type to use for it. Traditional
* cards had only two CRTCs, with CRTC 0 using no special flags, and
* CRTC 1 using DRM_VBLANK_SECONDARY. The first bit of the pipe
* parameter indicates this.
*
* Bits 1-5 of the pipe parameter are 5 bit wide pipe number between
* 0-31. If this is non-zero it indicates we're dealing with a
* multi-gpu situation and we need to calculate the vblank sync
* using DRM_BLANK_HIGH_CRTC_MASK.
*/
static
unsigned
int
drm_waitvblank_pipe
(
struct
drm_output
*
output
)
{
if
(
output
->
pipe
>
1
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment