Revert "Reland "D3D11: Create shader objects asynchronously.""

This reverts commit 687bd3b2d28669ebfe7e82d6e321681b0ef77b57.

Reason for revert: hangs still appear

Failure Link: https://crash.corp.google.com/browse?q=product_name+IN+%28%27Chrome%27%29+AND+expanded_custom_data.ChromeCrashProto.magic_signature_1.name%3D%27%5BGPU+hang%5D+dawn%3A%3Anative%3A%3AFutureResult%3CMicrosoft%3A%3AWRL%3A%3AComPtr%3CID3D11PixelShader%3E+%3E%3A%3ATryGet%27#samplereports:50,productname:1000,productversion:1000,magicsignature:10000,magicsignature2:50,errormessage:100,stablesignature:50,osversion:100,-sdkversion,uploaddateutc:30,gpudriverversion:1000,runningfinchexperiments:1000

Original change's description:
> Reland "D3D11: Create shader objects asynchronously."
>
> This is a reland of commit ba3c279d624f208de212db3f8e482fb6a01159de
>
> What's changed:
> - Disable async shader creations if a debug layer is detected.
> - A debug layer will use an D3D11Multithread mutex that would cause
> deadlock if we create shaders asynchronously and wait for them in
> Queue::Submit. This is because Queue::Submit will hold that mutex until
> the command buffer is submitted.
>
> Original change's description:
> > D3D11: Create shader objects asynchronously.
> >
> > This change makes the creation of D3D11 shader objects
> > (ID3D11VertexShader, etc.) asynchronous. Currently, these objects must
> > be ready when a pipeline is used for command buffer encoding. However,
> > they are only strictly needed when the command buffer is submitted.
> >
> > By deferring the creation until submission, this change avoids blocking
> > the encoding thread if the shader takes a long time to be created. This
> > allows for more ample time for shader creation to happen in parallel
> > with command recording.
> >
> > Bug: 439845637, chromium:40266176, chromium:459978952
> > Change-Id: Ib5c678bdcf5218d941214db46aa6b5b236bace46
> > Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/270015
> > Reviewed-by: Corentin Wallez <cwallez@chromium.org>
> > Reviewed-by: Geoff Lang <geofflang@chromium.org>
> > Commit-Queue: Corentin Wallez <cwallez@chromium.org>
> > Auto-Submit: Quyen Le <lehoangquyen@chromium.org>
>
> Bug: 439845637, chromium:40266176
> Change-Id: I840373a37b7393b3e9060ea02764517d166b199f
> Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/273554
> Commit-Queue: Quyen Le <lehoangquyen@google.com>
> Reviewed-by: Antonio Maiorano <amaiorano@google.com>

# Not skipping CQ checks because original CL landed > 1 day ago.

Bug: 439845637, chromium:40266176
Change-Id: I2ca88fb8fa7ad4ff3a1e3376f7bb89c24c4476e3
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/362675
Reviewed-by: Antonio Maiorano <amaiorano@google.com>
Commit-Queue: Quyen Le <lehoangquyen@google.com>
19 files changed
tree: 24f420e22495b9886a9a06a89d48c093e6eb198d
  1. .github/
  2. .vscode/
  3. agents/
  4. build_overrides/
  5. docs/
  6. generator/
  7. include/
  8. infra/
  9. scripts/
  10. src/
  11. test/
  12. third_party/
  13. tools/
  14. webgpu-cts/
  15. .bazelignore
  16. .bazelrc
  17. .bazelversion
  18. .clang-format
  19. .clang-format-ignore
  20. .clang-tidy
  21. .git-blame-ignore-revs
  22. .gitattributes
  23. .gitignore
  24. .gitmodules
  25. .gn
  26. .style.yapf
  27. AUTHORS
  28. BUILD.bazel
  29. BUILD.gn
  30. CMakeLists.txt
  31. CMakeSettings.json
  32. CODE_OF_CONDUCT.md
  33. codereview.settings
  34. CONTRIBUTING.md
  35. CPPLINT.cfg
  36. DEPS
  37. DIR_METADATA
  38. go.mod
  39. go.sum
  40. go_presubmit_support.py
  41. LICENSE
  42. MODULE.bazel
  43. OWNERS
  44. PRESUBMIT.py
  45. PRESUBMIT_test.py
  46. README.chromium
  47. README.md
  48. unsafe_buffers_paths.txt
  49. vpython.toml
  50. vpython.toml.uv.lock
  51. WATCHLISTS
  52. WORKSPACE.bazel
README.md

Build Status Matrix Space

Dawn, a WebGPU implementation

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 C/C++ headers that applications and other building blocks use.
    • The webgpu.h version that Dawn implements.
    • A C++ wrapper for the webgpu.h.
  • A “native” implementation of WebGPU using platforms' GPU APIs: D3D12, Metal, Vulkan and OpenGL. See per API support for more details.
  • A client-server implementation of WebGPU for applications that are in a sandbox without access to native drivers
  • Tint is a compiler for the WebGPU Shader Language (WGSL) that can be used in standalone to convert shaders from and to WGSL.

Helpful links:

Documentation table of content

Developer documentation:

User documentation: (TODO, figure out what overlaps with the webgpu.h docs)

License

BSD 3-Clause License, please see LICENSE.

Disclaimer

This is not an officially supported Google product.