Closed bryce-young-mobica closed 5 months ago
Any update on this? Would be great to have that sample properly work on Windows.
Sorry for the delay. I made the changes you suggested, and opened a new PR here: https://github.com/KhronosGroup/Vulkan-Samples/pull/1125 (didn't see the reopen option until after I'd created it).
Description
Reworked the timeline semaphore sample to prevent it crashing on Windows.
The only obvious trigger for the crash that I could observe was the main thread calling "vkDeviceWaitIdle" whilst the compute thread was in "wait_timeline_gpu". To avoid this, I removed the "wait/signal_timeline_gpu" calls (opting to attach the "VkTimelineSemaphoreSubmitInfo" to the queue submissions instead), and restructured the compute/graphics work stages to prevent the compute thread running ahead and submitting (potentially blocking) work.
Fixes #588
Tested on Windows Tested with shared queue for compute and graphics
General Checklist:
Please ensure the following points are checked:
[X] This PR describes the scope and expected impact of the changes I am making
Note: The Samples CI runs a number of checks including:
If this PR contains framework changes:
batch
command line argument to make sure all samples still work properlySample Checklist
If your PR contains a new or modified sample, these further checks must be carried out in addition to the General Checklist: