Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Use mutex with DeviceVk deallocation queue"
This reverts commit ae9acbd. Reason for revert: Causes mutex order inversion Original change's description: > Use mutex with DeviceVk deallocation queue > > DeviceVk::mDescriptorAllocatorsPendingDeallocation can be accessed from > an arbitrary thread without holding the device mutex. BindGroup > destruction ends up appending values to the queue in > Device::EnqueueDeferredDeallocation(). Add a mutex to protect > mDescriptorAllocatorsPendingDeallocation against data races. > > Adding MutexProtected wouldn't work with the existing iteration through > the queue. This is because mutex would only be held for the duration of > IterateUpTo() function call which builds BeginEnd. BeginEnd holds > iterators into the container and if the container is modified while > BeginEnd exists those iterators may be invalidated. Instead, add > SerialStorage::TakeUpTo() which makes a new container that contains all > the elements up to specific serial and removes them from the original > container. > > Bug: 372651189 > Change-Id: I125a575e8b2ee632a681685ede744ae57f790bfa > Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/214734 > Reviewed-by: Corentin Wallez <[email protected]> > Commit-Queue: Kyle Charbonneau <[email protected]> # Not skipping CQ checks because original CL landed > 1 day ago. Bug: 372651189 Change-Id: I6f8a187c7dd07d8e91d93b23be9304b97dbdf465 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/215254 Commit-Queue: Kyle Charbonneau <[email protected]> Auto-Submit: Kyle Charbonneau <[email protected]> Reviewed-by: Loko Kung <[email protected]> Commit-Queue: Loko Kung <[email protected]>
- Loading branch information