Skip to content

commit_timeline: perform async GPU copies as soon as possible - #1311

Merged
mahkoh merged 3 commits into
masterfrom
jorth/eager-commit-copies
Oct 27, 2026
Merged

mahkoh merged 3 commits into
masterfrom
jorth/eager-commit-copies

Conversation

@mahkoh

@mahkoh mahkoh commented Oct 27, 2026

Copy link
Copy Markdown
Owner

No description provided.

Copilot AI balanced review requested due to automatic review settings October 27, 2026 20:28

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🔵 Needs a closer look

Earlier GPU access changes buffer lifetimes and cross-timeline ordering, requiring human validation of asynchronous interactions.

No open issues 🎉

What changed in this PR

This PR starts asynchronous GPU buffer transfers earlier in the surface commit pipeline, while retaining ordering through a dedicated buffer queue.

Changes:

  • Schedule shared-memory uploads and cross-device copies when buffer-access dependencies are satisfied.
  • Track buffer ordering across commits and timeline waits.
  • Move transfer and timeout errors into CommitTimelineError.
File Description
src/​ifs/​wl_surface/​commit_timeline.rs Adds early transfer scheduling, buffer-queue tracking, and timeline-owned error handling.
src/​ifs/​wl_surface.rs Removes error variants and imports moved to the commit timeline.

Review effort: Balanced

@mahkoh
mahkoh enabled auto-merge October 27, 2026 20:32
@mahkoh
mahkoh merged commit 0c0639d into master Oct 27, 2026
14 checks passed
@mahkoh
mahkoh deleted the jorth/eager-commit-copies branch October 27, 2026 20:38
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