Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WebGPU: temporarily only create dawn_device_ once
We create new server Dawn Device for every requestAdapter() but don't create an analogous client Device. The result is that there are multiple dawn_wire::Servers and only one dawn_wire::Client which have completely different namespaces for ObjectIds. Multiple calls to requestAdapter(...) replace the Server device and messes up object lookup. This problem was discovered when rolling tests in the WebGPU CTS into Chromium. Currently we only have very basic tests. This is a temporary fix so that so we can roll a more complete test suite before making further changes. BUG=chromium:996713 TBR=kbr@chromium.org Change-Id: I172bf948a8e61bd7149ac2e5bf6d528db53dd7a0 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1832777 Reviewed-by: Austin Eng <enga@chromium.org> Reviewed-by: Kai Ninomiya <kainino@chromium.org> Commit-Queue: Austin Eng <enga@chromium.org> Cr-Commit-Position: refs/heads/master@{#701570}
- Loading branch information