commit | 1abf3e953db9d4cab2fadc819e8c7ab5d5f33706 | [log] [tgz] |
---|---|---|
author | Saifuddin Hitawala <hitawala@chromium.org> | Fri Jun 06 11:13:50 2025 -0700 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Jun 06 11:13:50 2025 -0700 |
tree | 84fca89a065d9ced829a32a7011dfae498fb1e45 | |
parent | 640c58bd2fe7e2554d2222f65a63319aa4efb2bc [diff] |
[vulkan] Add lazy memory tracking for ResourceMemAllocatorVk While investigating high GPU memory usage for Graphite/Dawn/Vulkan we found that lazily allocated memory in both Ganesh/Vulkan and Graphite/Dawn/Vulkan are being tracked as part of total and used vulkan memory allocations. Since presumably Graphite has more memory that is lazily allocated it is better to track this separately. Hopefully these memory allocations never happen, like on tiling GPUs, but if an allocation is needed then hopefully it will be transient and only exists for the duration of the draw. This change tracks lazy allocated memory for dawn/vulkan separately. For this we update AllocatorMemoryInfo and AllocationInfo for reporting and tracking in ResourceMemoryAllocatorVk. Bug: chromium:407730048 Change-Id: Idda25b1bc0d66ac2ab40e7f6545327bf079cbac8 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/243655 Reviewed-by: Kyle Charbonneau <kylechar@google.com> Commit-Queue: Saifuddin Hitawala <hitawala@chromium.org> Reviewed-by: Corentin Wallez <cwallez@chromium.org>
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.