Repository navigation
Tags
Tags
[dawn][tint] ArgBufs: move dynamic offsets to immediate buffer (Initially heavily AI assisted) Instead of having one array of dynamic offsets per bind group, pack them all into the immediate data. The dynamic offsets array has a fixed size of kMaxDynamicUniformBuffersPerPipelineLayout (16) + kMaxDynamicStorageBuffersPerPipelineLayout (16) = 32. - D3D11 Qualcomm suppressions from this failure: https://cr-buildbucket.appspot.com/build/8665772399483328241 - *MaxedOutUserAndInternalImmediates is a bit excessive but intended to be an immediates stress test, more than just this change. Plus apparently it found a Win Intel Vulkan bug. - RenderAllImmediateTypesWithPipelineSwitch tests basically that we don't forget to update dynamic offsets when switching pipeline. Bug: 363031535 Bug: 585864576, 42242119 Change-Id: Idf5b11da8fad44f82e65bcf8f3b6bec2270465c3 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/355476 Commit-Queue: Kai Ninomiya <kainino@chromium.org> Auto-Submit: Kai Ninomiya <kainino@chromium.org> Reviewed-by: Corentin Wallez <cwallez@chromium.org> Reviewed-by: dan sinclair <dsinclair@chromium.org>
Polyfill nested struct and array constructors on Qualcomm Vulkan Qualcomm's Vulkan shader compiler crashes on some nested struct and array constructors. Add a SPIR-V transform that rewrites constructors containing another struct or array to build the value in a local variable one field at a time instead. Enable it by default on Qualcomm's proprietary Vulkan driver. Bug: 590811404 Change-Id: I175d7e41fcc159b4db2006b8db03354588957e6c Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/365175 Reviewed-by: James Price <jrprice@google.com> Commit-Queue: Natalie Chouinard <chouinard@google.com>
[dawn] Set doYuvToRgbConversionOnly on no-op color space ComputeExternalTextureParams did not report when color space conversion is a no-op, so callers like Android's createExternalTextureNative left doYuvToRgbConversionOnly false. That caused Tint's ApplyGammaCorrect path to run two vec3f pow() calls and a 3x3 gamut multiply per pixel even when source and destination color spaces match. Set doYuvToRgbConversionOnly when source primaries and transfer match the destination at unit luminance scale, propagate it through all callers (including GetNoopColorSpaceParams), and add unit and end2end tests verifying ApplyGammaCorrect is bypassed. Bug: 581652324 Change-Id: Id373ba12cf0734182d41b861dc4d51b07d039631 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/358875 Commit-Queue: Mridul Goyal <mridulgoyal@google.com> Reviewed-by: Tarun Saini <sainitarun@google.com> Reviewed-by: Corentin Wallez <cwallez@chromium.org> Reviewed-by: Nikita Gupta <nikigupta@google.com>
[metal] Enable mixed-precision subgroup matrices Expose the 8x8x8 f16-input/f32-result subgroup matrix configuration on Metal's simdgroup_matrix path. Allow the corresponding multiply and multiply-accumulate operations in Tint's MSL validation and intrinsics. Preserve upstream bf16 configurations and cooperative-tensor validation. Regenerate the mixed-precision MSL expectations and cover f32 result and accumulator precision in row-major and column-major layouts. Exercise all advertised f16-to-f32 matrix shapes, using one nonzero product per output to avoid reduction-order-dependent reference values. Update the Metal configuration expectations for f16-to-f32 and include Apple M1 alongside the Apple M2 baseline so the configuration test runs locally. Verified on Apple M1 with macOS 27.2.1 and Xcode 27.2: - Release rebuild passed. - Metal subgroup-matrix tests: 58 passed and 1 skipped in each of standard, implicit-sync, and skip-validation modes; 50 passed and 9 skipped with full backend validation. The configuration test and all four mixed-precision variants passed in all four modes after the shape-coverage update. - Earlier verification: 10,880 focused Tint tests and four native/offline MSL fixtures passed, including all four mixed-precision variants. - clang-format and whitespace checks passed. Bug: 587029399 Change-Id: I7b51b975e223ec4a8cad28319b5dcbdbc13cc26d Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/360315 Reviewed-by: James Price <jrprice@google.com> Commit-Queue: Jiajia Qin <jiajiaqin@microsoft.com> Reviewed-by: Shaobo Yan <shaoboyan@microsoft.com>
[cmake] Restore PUBLIC on Clang Abseil warning suppressions https://dawn.googlesource.com/dawn/+/285b43512246b5359b395d3e2ff5a28436eaaec6 split the Clang-only Abseil warning suppressions into a separate block and accidentally changed PUBLIC to PRIVATE, contradicting the comment right above it. This breaks targets that pull in Abseil headers transitively under Clang -Werror -pedantic (e.g. dawn_node_binding via dawn_wgpu_utils in CL 361556, failing with -Wnullability-extension on Mac CMake). Restoring PUBLIC matches -Wno-shadow below and avoids adding fake direct Abseil deps to downstream targets. add_subdirectory(... SYSTEM) requires CMake 3.25 while Dawn targets 3.22. Bug: 439062058 Change-Id: If1eff819fe228498e9e00ce7d73d602a19b71c93 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/362375 Reviewed-by: Kai Ninomiya <kainino@chromium.org> Commit-Queue: Kai Ninomiya <kainino@chromium.org> Auto-Submit: Arthur Sonzogni <arthursonzogni@chromium.org>
Add emacs `.dir-locals.el` to .gitignore This is a dev/workspace specific file, so should be ignored Change-Id: I9aaa2b9569d2eaf5ab353ba93e8a16daad438a82 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/363475 Auto-Submit: Ryan Harrison <rharrison@chromium.org> Reviewed-by: dan sinclair <dsinclair@chromium.org> Commit-Queue: Ryan Harrison <rharrison@chromium.org>
Mark swizzle test as slow Marks webgpu:api,validation,capability_checks,features,texture_component_swizzle:compatibility_mode: as slow on arm64 Macs. We are temporarily disabling the Metal shader cache on these machines to work around flakiness and this test times out without the shader cache being available. Bug: 588514727 Change-Id: I4ff07dda06336ca88b7866dcfdcd0a725405c8ee Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/361835 Auto-Submit: Brian Sheedy <bsheedy@google.com> Bot-Commit: rubber-stamper@appspot.gserviceaccount.com <rubber-stamper@appspot.gserviceaccount.com> Commit-Queue: rubber-stamper@appspot.gserviceaccount.com <rubber-stamper@appspot.gserviceaccount.com> Commit-Queue: Brian Sheedy <bsheedy@google.com>
D3D12: Use Persistent map and clear buffer before destroy on Intel GPUs This patch uses persistent mapping (don't call `ID3D12Resource->Unmap` when Dawn API `GPUBuffer->Unmap` is called), allocates all the mappable buffers as committed resources, and clear the first 16 bytes when releasing the `ID3D12Resource` on Intel GPUs as a workaround of a driver issue. Bug: 583539379 Change-Id: Ie5d953789a7aa0f8a103840e9dd87ecdd551fac1 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/358715 Reviewed-by: Antonio Maiorano <amaiorano@google.com> Commit-Queue: Shao, Jiawei <jiawei.shao@intel.com>
[kotlin] Abort on unhandled callback exceptions When an uncaught exception occurs on a callback thread newly attached by JNI, forward it to the thread's custom or default UncaughtExceptionHandler when one is configured, and otherwise log the Java stack trace and abort natively instead of returning into Dawn's native worker loop. Unlike a terminating Java thread where Thread.dispatchUncaughtException() ignores exceptions thrown by the handler, also abort if looking up or invoking the handler throws a secondary exception so execution does not return into Dawn's native worker loop. Add subprocess abort tests in AsyncHelperTest (~7.0 s total across the 4 subprocess probes, ~1.7-1.8 s per probe on Pixel 9). Also verified manually in an Android app process with the stock RuntimeInit$KillApplicationHandler installed that an uncaught callback exception on DawnWorker logs "FATAL EXCEPTION: DawnWorker" in logcat, reports the crash via handleApplicationCrash (ApplicationExitInfo REASON_CRASH), and writes no native tombstone. Bug: 581261070 Test: ./gradlew :webgpu:connectedDebugAndroidTest Change-Id: I20786ca55ccb9c782ca09672d09edf4380703a86 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/353675 Commit-Queue: Tarun Saini <sainitarun@google.com> Reviewed-by: Nikita Gupta <nikigupta@google.com>
Reland "D3D11: Create shader objects asynchronously." This is a reland of commit ba3c279 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>
PreviousNext