Fix: Implement shared Metal Command queue to resolve sync bugs #108223

Merged
Jeroen Bakker merged 1 commits from Jason-Fielder/blender:MetalSharedCommandQueue_2 into blender-v3.6-release 2023-05-26 16:00:27 +02:00

1 Commits

Author SHA1 Message Date
Michael Parkin-White 58509d3e34 Fix: Implement shared Metal Command queue to resolve sync bugs
Previously, each GHOST Context instantiated its own Metal device
queue. Commands are only synchronized within a queue, this was the
root cause of a number of flickering issues which had previously
been worked-around with synchronization primitives.

New solution uses a shared queue to simplify dependencies and
alleviate possibility of stalls and bugs when resources are modified
or shared across separate GPU command queues.

Authored by Apple: Michael Parkin-White
2023-05-24 10:17:46 +01:00