Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Primary render fallback #1680

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Conversation

cmeissl
Copy link
Collaborator

@cmeissl cmeissl commented Mar 16, 2025

This adds support for display only nodes by falling back to the primary gpu for rendering.
In addition to the render fallback it also tries to import foreign gbm buffers through dmabuf export/import.

Unfortunately it seems the DisplayLink driver has some issues regarding vsync and will issue a vblank right after
scheduling a page flip. This leads to visual tearing, probably caused by the user-space driver part. As a mitigation this PR also adds a way to throttle vblanks.

@cmeissl cmeissl force-pushed the feature/primary_render_fallback branch from d2f7e1f to 4b808ab Compare March 16, 2025 12:55
@cmeissl cmeissl force-pushed the feature/primary_render_fallback branch 2 times, most recently from 427b2ce to 05ee0b7 Compare March 16, 2025 13:33
@cmeissl cmeissl force-pushed the feature/primary_render_fallback branch from 05ee0b7 to 57aacfc Compare March 21, 2025 22:39
@cmeissl cmeissl force-pushed the feature/primary_render_fallback branch from 57aacfc to 16c1a0e Compare March 22, 2025 11:59
@cmeissl cmeissl marked this pull request as ready for review March 22, 2025 12:05
@cmeissl cmeissl requested review from ids1024 and Drakulix March 22, 2025 12:05
@codecov-commenter
Copy link

codecov-commenter commented Mar 22, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 19.14%. Comparing base (796c41c) to head (16c1a0e).
Report is 6 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1680      +/-   ##
==========================================
+ Coverage   17.10%   19.14%   +2.04%     
==========================================
  Files         174      174              
  Lines       28748    28767      +19     
==========================================
+ Hits         4916     5508     +592     
+ Misses      23832    23259     -573     
Flag Coverage Δ
wlcs-buffer 16.68% <ø> (-0.02%) ⬇️
wlcs-core 16.43% <ø> (?)
wlcs-output 6.80% <ø> (-0.01%) ⬇️
wlcs-pointer-input 18.13% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Comment on lines +98 to +102
#[cfg(feature = "backend_drm")]
pub fn from_bo(bo: BufferObject<()>, implicit: bool) -> Self {
let drm_node = DrmNode::from_file(bo.device_fd()).ok();
Self::from_bo_with_node(bo, implicit, drm_node)
}
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do not like all those conditional compilation around backend_drm here. Do we really want to do this or should we just enable backend_drm for backend_gbm implicitely?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants