324e446f9c
This is required to make importing images work on some systems. The ideal version would be detecting whether dedicated allocations are needed as Vulkan provides reflection for that. However this reflection doesn't work on Nvidia, so instead Dawn requires a NeedsDedicatedAllocation enum on import that's Yes/No/Detect so the application can force use of a specific code path. Support for this enum and toggling dedicated allocations on/off is added for all external memory service implementations. Vulkan image wrapping tests are modified to add test parameters so that the Yes/No/Detect code paths are covered by tests. This is technically post-V1 work, but gl_tests in Chromium fail on Nvidia workstations without this fix, which makes it hard to debug other issues. Bug: dawn:1552, dawn:206, dawn:1260 Change-Id: Iee4f7bb9dbec520432ec623551221ef9e4d3d984 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/103560 Reviewed-by: Austin Eng <enga@chromium.org> Kokoro: Kokoro <noreply+kokoro@google.com> Commit-Queue: Corentin Wallez <cwallez@chromium.org> |
||
---|---|---|
.. | ||
dawn | ||
tint | ||
webgpu |