Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
https://bugs.webkit.org/show_bug.cgi?id=271744 rdar://125823851 Reviewed by Mike Wyrzykowski. For some unknown and mysterious reason, enabling it in hardcodedFeaturesBasedOnPathForTest was insufficient to actually enable WebGPU in WebKitTestRunner. There's no reason to limit its existence to just WebGPU tests. Let's enable it in all tests. I had written several tests with extra try/catch statements to work if WebGPU was enabled or not. Now that it's enabled in WebKitTestRunner, I can remove these and make the tests more effective in catching regressions. In order to make the tests run to completion on computers with different GPUs made by different manufacturers, I had to reduce all the maxBindingsPerBindGroup values to less than 1000, remove all requirements to have etc2 and astc texture compression extensions, and use a more commonly supported texture format, which I arbitrarily chose to be rgb9e5ufloat. Also minStorageBufferOffsetAlignment and minUniformBufferOffsetAlignment need to be 256. These things were unrelated to the original issues for which I introduced the tests. The iOS simulator is unfortunately currently unable to run WebGPU tests, so I skip them there. In order to fix assertions in debug builds, I changed some types from CompletionHandler<void()> to Function<void()> because StreamConnectionWorkQueue::dispatch is not actually guaranteed to call the function if m_shouldQuit ever becomes true because stopAndWaitForCompletion is called. * LayoutTests/fast/dom/navigator-detached-no-crash-expected.txt: * LayoutTests/fast/webgpu/accelerated-image-conversion-failure.html: * LayoutTests/fast/webgpu/bind-group-layout-invalid.html: * LayoutTests/fast/webgpu/command-buffer-after-destruction.html: * LayoutTests/fast/webgpu/conversion-to-rg8unorm.html: * LayoutTests/fast/webgpu/copy-texture-more-than-4gb.html: * LayoutTests/fast/webgpu/forbid-bottom-struct-member.html: * LayoutTests/fast/webgpu/image-data-8-bytes-per-pixel.html: * LayoutTests/fast/webgpu/invalid-surface-height.html: * LayoutTests/fast/webgpu/multidimensional-texture-bounds.html: * LayoutTests/fast/webgpu/null-video-texture.html: * LayoutTests/fast/webgpu/optional-media-identifier.html: * LayoutTests/fast/webgpu/present-without-compute-pipeline.html: * LayoutTests/fast/webgpu/queue-write-texture-offset.html: * LayoutTests/fast/webgpu/render-bundle-validation-color-format.html: * LayoutTests/fast/webgpu/repeated-out-of-memory-error.html: * LayoutTests/fast/webgpu/type-checker-array-without-argument.html: * LayoutTests/fast/webgpu/use-canvas-without-layer.html: * LayoutTests/fast/webgpu/write-to-destroyed-buffer.html: * LayoutTests/platform/glib/TestExpectations: * LayoutTests/platform/gtk/fast/dom/navigator-detached-no-crash-expected.txt: * LayoutTests/platform/ios/TestExpectations: * LayoutTests/platform/mac-wk2/fast/dom/navigator-detached-no-crash-expected.txt: * LayoutTests/platform/mac/fast/dom/navigator-detached-no-crash-expected.txt: * LayoutTests/platform/wincairo/fast/dom/navigator-detached-no-crash-expected.txt: * LayoutTests/platform/wpe/fast/dom/navigator-detached-no-crash-expected.txt: * Tools/TestRunnerShared/TestFeatures.cpp: (WTR::hardcodedFeaturesBasedOnPathForTest): (WTR::shouldEnableWebGPU): Deleted. * Tools/WebKitTestRunner/TestController.cpp: (WTR::TestController::resetPreferencesToConsistentValues): Canonical link: https://commits.webkit.org/277246@main
- Loading branch information