mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-07-09 14:45:58 +00:00
This CL checks buffer sizes before creating map read/write handles. It is an error to map a buffer that can't be addressed on the CPU. It also changes client-side synchronous errors on mapAsync to be normal map failures, and not device lost errors. These should be recoverable. The CL adds additional testing for really large, but not UINT64_MAX buffers, and fixes a VVL warning when buffer allocations exceed the size of their memory heap. Bug: dawn:450, dawn:398, chromium:1014740 Change-Id: Ieb34c04c3d01c429b7e3b7810729d5e91ecb6270 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/22626 Commit-Queue: Austin Eng <enga@chromium.org> Reviewed-by: Corentin Wallez <cwallez@chromium.org>