dawn-cmake/src/dawn/wire
Jiawei Shao 806c58324c Wire: Make validation error prior to OOM if mappedAtCreation == false
This patch updates the validations about CreateBuffer() with dawn_wire
to match the latest WebGPU SPEC.

According to the SPEC, the validations in CreateBuffer() should be
executed in the below order:
1. If mappedAtCreation == true, return nullptr and a RangeError will be
   generated in Chromium.
2. Validate BufferDescriptor and check if there is OOM at device timeline
3. Check if there is OOM at content timeline

Bug: dawn:1586
Change-Id: I97ff5f82a42208442ddf6e46e66381c3b3680450
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/109040
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: Kai Ninomiya <kainino@chromium.org>
Commit-Queue: Jiawei Shao <jiawei.shao@intel.com>
2022-11-23 02:06:11 +00:00
..
client Wire: Make validation error prior to OOM if mappedAtCreation == false 2022-11-23 02:06:11 +00:00
server Add wire serialized command buffer padding. 2022-11-22 23:19:43 +00:00
BUILD.gn dawn::wire::client: Merge object allocators, add variadic Make. 2022-06-17 21:21:39 +00:00
BufferConsumer.h Add wire serialized command buffer padding. 2022-11-22 23:19:43 +00:00
BufferConsumer_impl.h Add wire serialized command buffer padding. 2022-11-22 23:19:43 +00:00
CMakeLists.txt dawn::wire::client: Merge object allocators, add variadic Make. 2022-06-17 21:21:39 +00:00
ChunkedCommandHandler.cpp [chromium-style] Adding/moving constructors and destructors. 2022-05-09 22:22:18 +00:00
ChunkedCommandHandler.h [chromium-style] Adding/moving constructors and destructors. 2022-05-09 22:22:18 +00:00
ChunkedCommandSerializer.cpp Consistent formatting for Dawn/Tint. 2022-05-01 14:40:55 +00:00
ChunkedCommandSerializer.h Add wire serialized command buffer padding. 2022-11-22 23:19:43 +00:00
ObjectHandle.cpp dawn::wire::client: Track the object generation on the objects 2022-06-14 14:55:46 +00:00
ObjectHandle.h dawn::wire: Separate ObjectHandle to its own header. 2022-06-14 13:22:16 +00:00
SupportedFeatures.cpp Move timestamp query inside compute/render passes to new feature 2022-10-28 04:51:16 +00:00
SupportedFeatures.h Consistent formatting for Dawn/Tint. 2022-05-01 14:40:55 +00:00
Wire.cpp Consistent formatting for Dawn/Tint. 2022-05-01 14:40:55 +00:00
WireClient.cpp dawn::wire::client: Make object constructors less barebones. 2022-06-19 20:13:01 +00:00
WireDeserializeAllocator.cpp [chromium-style] Fixup a few chromium-style issues. 2022-05-09 16:26:44 +00:00
WireDeserializeAllocator.h Consistent formatting for Dawn/Tint. 2022-05-01 14:40:55 +00:00
WireResult.h Consistent formatting for Dawn/Tint. 2022-05-01 14:40:55 +00:00
WireServer.cpp Add a way to query if a device exists on the wire server 2022-05-12 00:09:26 +00:00