Skip to content

presentation: associate feedback with committed surface state#15243

Open
NotPppp1116 wants to merge 2 commits into
hyprwm:mainfrom
NotPppp1116:pr/presentation-feedback-committed-state
Open

presentation: associate feedback with committed surface state#15243
NotPppp1116 wants to merge 2 commits into
hyprwm:mainfrom
NotPppp1116:pr/presentation-feedback-committed-state

Conversation

@NotPppp1116

Copy link
Copy Markdown
Contributor

What

Tie wp_presentation feedback objects to committed surface state instead of only to the surface. The change also discards feedback for superseded commits, rejected/queued state cleanup, surface destroy, and monitor removal.

Why

When multiple commits are coalesced or destroyed before presentation, feedback from older or discarded state can otherwise be reported as presented or remain pending.

Validation

  • git diff --check upstream/main..pr/presentation-feedback-committed-state
  • cmake --build build --target Hyprland -j$(nproc)
  • build/hyprtester/hyprtester -c hyprtester/test.lua -b ./build/Hyprland -p hyprtester/plugin/hyprtestplugin.so fullscreenScanoutStressTransitions passed when run with the dependent stress-test branch and damage fix applied.

Dependency

Independent production fix, but the separate fullscreen scanout stress-test PR is expected to exercise and protect this behavior.

Comment thread src/protocols/types/SurfaceStateQueue.cpp Outdated
Comment thread src/protocols/PresentationTime.hpp Outdated
@umbrageodotus

Copy link
Copy Markdown
Contributor

@NotPppp1116 should this be merged or the other one be merged?

@NotPppp1116

Copy link
Copy Markdown
Contributor Author

@NotPppp1116 should this be merged or the other one be merged?

merge this one

@umbrageodotus

Copy link
Copy Markdown
Contributor

okay, btw do u still have discord or did u fully delete everything

std::vector<SP<CWLCallbackResource>> callbacks;

// for wp_presentation feedbacks, tied to this commit.
std::vector<CPresentationFeedback*> presentationFeedbacks;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

no raw ptrs allowed

@NotPppp1116

Copy link
Copy Markdown
Contributor Author

okay, btw do u still have discord or did u fully delete everything

I have,u can dm IVE been cleaning up and leaving a lot of servers etc

@umbrageodotus

Copy link
Copy Markdown
Contributor

I have,u can dm IVE been cleaning up and leaving a lot of servers etc

iirc I got blocked by u after u sent that file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants