commit | fbdcbcafa541bb55d40720166f41e29c7c92a744 | [log] [tgz] |
---|---|---|
author | Austin Eng <enga@chromium.org> | Fri May 10 20:47:37 2024 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri May 10 20:47:37 2024 +0000 |
tree | e26136ff448dd03e5d0fe7db52545f67879b344e | |
parent | 1dfceaba8f3d0fe089da02258a9445ee64008400 [diff] |
Fix SharedResourceMemory begin/end access without using texture - Change SetHasAccess to Resume/PauseAccess. PauseAccess returns the last usage serial for exporting. If the resource is not used it returns serial 0 (beginning of time). - When there are multiple concurrent readers, only acquire the unacquired pending fences when the last read ends. - Update a few tests since now, EndAccess may yield zero fences. This happens if the buffer is not used, and it is not the last concurrent read, or if there were no begin fences to forward. Bug: 42241403 Change-Id: If43543f90a896d3c5aabaf21e788276545f67757 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/186846 Reviewed-by: Sunny Sachanandani <sunnyps@chromium.org> Commit-Queue: Austin Eng <enga@chromium.org> Reviewed-by: Loko Kung <lokokung@google.com>
Dawn is an open-source and cross-platform implementation of the 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 the webgpu.h docs)
BSD 3-Clause License, please see LICENSE.
This is not an officially supported Google product.