dawn-cmake/src/dawn_native/null
Aleksi Sapon 7f8c91cdde Fix crash from async callback calling Queue::Submit
An async callback which calls Queue::Submit will cause
reentrance in QueueBase::Tick and CreatePipelineAsyncTracker::Tick,
which invalidates the task queue being used by the original call,
and leads to a crash from an invalid pointer.

The Tick functions should remove the tasks from the queues before
the callbacks are called, so invalidation doesn't cause a crash.

Bug: dawn:729

Change-Id: I0d952d51040a3d1a475767400de3333a8b9b0821
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/45900
Commit-Queue: Corentin Wallez <cwallez@chromium.org>
Reviewed-by: Austin Eng <enga@chromium.org>
2021-03-30 13:06:17 +00:00
..
DeviceNull.cpp Fix crash from async callback calling Queue::Submit 2021-03-30 13:06:17 +00:00
DeviceNull.h Get timestamp period from device 2021-01-05 02:39:18 +00:00
NullBackend.cpp Make dawn_native public headers and dawn_wsi use webgpu.h 2019-10-24 23:55:37 +00:00