dawn-cmake/src/tests/unittests
Corentin Wallez dbf805fe8d Update GetMappedRange to not produce validation errors
GetMappedRange never produces errors and instead returns nullptr when it
is disallowed. When in a correct state, should return a valid pointer as
much as possible, even if the buffer is an error or if the device is
lost.

Adds tests for error buffers and device loss, and modify existing tests
to not expect a device error.

Also removes some dead code in the Vulkan backend and adds a fix for
missing deallocation of VkMemory on device shutdown.

Bug: dawn:445

Change-Id: Ia844ee3493cdaf75083424743dd194fa94faf591
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/24160
Commit-Queue: Corentin Wallez <cwallez@chromium.org>
Reviewed-by: Stephen White <senorblanco@chromium.org>
2020-07-06 18:08:10 +00:00
..
d3d12 Deprecate BufferCopyView.rowPitch/imageHeight -> bytesPerRow/rowsPerImage 2020-04-24 10:02:43 +00:00
validation Update GetMappedRange to not produce validation errors 2020-07-06 18:08:10 +00:00
wire Add minimum buffer size validation 2020-06-19 21:39:23 +00:00
BitSetIteratorTests.cpp Add TypedInteger 2020-06-17 22:35:19 +00:00
BuddyAllocatorTests.cpp Rename INVALID_OFFSET to kInvalidOffset. 2019-09-27 15:11:52 +00:00
BuddyMemoryAllocatorTests.cpp Prevent size overflow for sub-allocation. 2020-06-11 18:58:26 +00:00
CommandAllocatorTests.cpp CommandAllocator: Default initalize allocated data. 2019-05-14 03:53:26 +00:00
EnumClassBitmasksTests.cpp Make dawn_native use the webgpu.h header 2019-10-23 11:57:41 +00:00
ErrorTests.cpp Improve Memory Management of Result class 2020-01-10 17:58:28 +00:00
ExtensionTests.cpp Move and improve RefCounted 2020-04-20 17:36:22 +00:00
GetProcAddressTests.cpp Move and improve RefCounted 2020-04-20 17:36:22 +00:00
ITypArrayTests.cpp Add TypedInteger 2020-06-17 22:35:19 +00:00
ITypBitsetTests.cpp Add TypedInteger 2020-06-17 22:35:19 +00:00
ITypSpanTests.cpp Add TypedInteger 2020-06-17 22:35:19 +00:00
LinkedListTests.cpp Residency 5: Implement and Integrate Residency Management 2020-03-31 15:31:56 +00:00
MathTests.cpp Reland "D3D12: Stage BindGroups on CPU descriptor heaps." 2020-04-06 22:07:42 +00:00
ObjectBaseTests.cpp Make unittests and fuzzers use webgpu.h 2019-10-28 22:15:47 +00:00
PerStageTests.cpp Make dawn_native use the webgpu.h header 2019-10-23 11:57:41 +00:00
PlacementAllocatedTests.cpp Use new gmock MOCK_FUNCTION macro. 2020-04-16 16:39:06 +00:00
RefCountedTests.cpp Allow Ref<Derived> -> Ref<Base> assignment, and move operations 2020-04-22 20:34:00 +00:00
ResultTests.cpp Use Ref<TextureBase> instead of TextureBase* in more places 2020-04-23 19:47:12 +00:00
RingBufferAllocatorTests.cpp Replace size_t with uint64_t in ringbuffer. 2019-10-18 16:19:00 +00:00
SerialMapTests.cpp Factor SerialQueue into SerialQueue and SerialMap 2018-11-28 17:30:12 +00:00
SerialQueueTests.cpp Memory manager: buffer uploads (D3D) - Part 1 2019-01-29 00:10:07 +00:00
SlabAllocatorTests.cpp Slab-allocate Metal bind groups 2020-03-13 22:50:00 +00:00
SystemUtilsTests.cpp Add ScopedEnvironmentVar class for setting env variables in BackendVk 2020-05-28 16:05:04 +00:00
ToBackendTests.cpp Move and improve RefCounted 2020-04-20 17:36:22 +00:00
TypedIntegerTests.cpp Add TypedInteger 2020-06-17 22:35:19 +00:00