commit | c94f4a7a191d71ea6954b95fedaf341a49c62d0a | [log] [tgz] |
---|---|---|
author | Bryan Bernhart <bryan.bernhart@intel.com> | Tue Apr 28 15:58:45 2020 +0000 |
committer | Commit Bot service account <commit-bot@chromium.org> | Tue Apr 28 15:58:45 2020 +0000 |
tree | 0cff7c6c90c63d49a6ee7df2e53a2d483c1883a6 | |
parent | 88f2ec853f8073b29a64c1f8a7a6cb55acbefc37 [diff] |
D3D12: Fix invalid allocation size check. GetResourceAllocationInfo() returns UINT_MAX64 when the requested size is too large. This corrects the validation to OOM when D3D considers the size invalid. Only validating for zero-size would cause a device loss as certain D3D drivers may not always consider zero-sized invalid and NextPowerOfTwo(UINT_MAX64) would overflow the allocator. BUG=dawn:393 Change-Id: Idaad10c139f6428d4f48bca24027a6691257aca9 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/20400 Reviewed-by: Austin Eng <enga@chromium.org> Commit-Queue: Bryan Bernhart <bryan.bernhart@intel.com>
Dawn is an open-source and cross-platform implementation of the work-in-progress WebGPU standard. More precisely it implements webgpu.h
that is a one-to-one mapping with the WebGPU IDL. Dawn is meant to be integrated as part of a larger system and is the underlying implementation of WebGPU in Chromium.
Dawn provides several WebGPU building blocks:
webgpu.h
version that Dawn implements.webgpu.h
.Helpful links:
Developer documentation:
User documentation: (TODO, figure out what overlaps with webgpu.h docs)
(TODO)
Apache 2.0 Public License, please see LICENSE.
This is not an officially supported Google product.