[pr-fix][linux-proton] A waiting draw raises the worker making its pipeline under Wine too #352
Loading…
Reference in a new issue
No description provided.
Delete branch "ntsthay/boost-set-information"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Not run in the game. Two unit tests show the problem under Wine.
Contributor role (optional)
What it changes
When a draw or a dispatch waits on a pipeline a worker is making,
boostraises that worker to the title's priority. It opened the worker withTHREAD_SET_LIMITED_INFORMATION. Windows accepts that right forSetThreadPriority, but Wine does not, so under Wine or Proton the worker stays at its low priority while the title waits on it.On
f3840d7, under Proton,a_waiting_draw_raises_the_worker_making_its_pipelinefails withraised while a draw waits,left: -2(still THREAD_PRIORITY_LOWEST).a_dispatch_waiting_on_a_worker_raises_itfails with "the worker was not raised". With the same code and only the access right changed toTHREAD_SET_INFORMATION, both pass.boostnow opens the thread withTHREAD_SET_INFORMATION. It is a thread of our own process, so Windows grants that right as it granted the limited one.How it was tested
94ae9e0, this branch onf3840d7.cargo nextest run -p darner-gpu -E 'test(/pipeline::make::/)'under Proton (proton-cachyos, RTX 4080): 50 passed, both priority tests included. Onf3840d7those two fail as above.cores.rsandstall.rsalso open threads with limited rights; I have not checked them under Wine.Checklist
main.docs/asset-policy.md.Checked for overlap
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.