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>
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.