commit | 9f274b2d493cc429732b09c333cc28ea716e4b00 | [log] [tgz] |
---|---|---|
author | Le Hoang Quyen <lehoangquyen@chromium.org> | Mon Oct 23 22:45:53 2023 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Mon Oct 23 22:45:53 2023 +0000 |
tree | 2cc0559de87fafa6c11462e930644a2c09180277 | |
parent | d8107b0de6337ff366100343434b00e2d524bbd0 [diff] |
Metal: Detect validation layer via env variable. There is a bug in AMD driver when pipelines are compiled in parallel when validation layer is enabled. We already have a workaround for in crbug.com/dawn/1200 However, the workaround only detects if the backend validation is explicitly enabled by users. There are cases when the validaton layer is enabled eternally (via Xcode or commandline, etc). This CL attempts to detect those cases by checking METAL_DEVICE_WRAPPER_TYPE & MTL_DEBUG_LAYER environment variables. Bug: chromium:1493348 Change-Id: I87bd262f8da573b4f65fae86f6400350caf56775 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/157080 Commit-Queue: Quyen Le <lehoangquyen@chromium.org> Reviewed-by: Austin Eng <enga@chromium.org> Kokoro: Kokoro <noreply+kokoro@google.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 the webgpu.h docs)
(TODO)
BSD 3-Clause License, please see LICENSE.
This is not an officially supported Google product.