Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 594a51076d5f35a7e98600c5a4fbee6554f4b947
https://github.com/WebKit/WebKit/commit/594a51076d5f35a7e98600c5a4fbee6554f4b947
Author: Tadeu Zagallo <[email protected]>
Date: 2026-04-22 (Wed, 22 Apr 2026)
Changed paths:
M LayoutTests/fast/webgpu/ftoi.html
M LayoutTests/fast/webgpu/nocrash/fuzz-273021.html
M LayoutTests/fast/webgpu/nocrash/fuzz-273585.html
M LayoutTests/fast/webgpu/nocrash/fuzz-274289.html
M LayoutTests/fast/webgpu/nocrash/fuzz-274334.html
M LayoutTests/fast/webgpu/nocrash/fuzz-275294.html
M LayoutTests/fast/webgpu/nocrash/fuzz-276279.html
M LayoutTests/fast/webgpu/nocrash/fuzz-277035.html
M LayoutTests/fast/webgpu/nocrash/fuzz-277552.html
M LayoutTests/fast/webgpu/nocrash/fuzz-283196.html
M LayoutTests/fast/webgpu/nocrash/fuzz-284126.html
M LayoutTests/fast/webgpu/nocrash/fuzz-287519.html
M LayoutTests/fast/webgpu/nocrash/fuzz-290831.html
M LayoutTests/fast/webgpu/nocrash/fuzz-291708.html
M LayoutTests/fast/webgpu/nocrash/fuzz-291988b.html
M LayoutTests/fast/webgpu/nocrash/fuzz-292525.html
M LayoutTests/fast/webgpu/nocrash/fuzz-295370.html
M LayoutTests/fast/webgpu/regression/repro_284652.html
M LayoutTests/fast/webgpu/write-to-destroyed-buffer.html
M
LayoutTests/http/tests/webgpu/webgpu/api/validation/capability_checks/limits/maxInterStageShaderVariables-expected.txt
M
LayoutTests/http/tests/webgpu/webgpu/api/validation/render_pipeline/inter_stage-expected.txt
M Source/WebCore/Modules/WebGPU/GPUSupportedLimits.cpp
M Source/WebCore/Modules/WebGPU/GPUSupportedLimits.h
M Source/WebCore/Modules/WebGPU/GPUSupportedLimits.idl
M Source/WebCore/Modules/WebGPU/Implementation/WebGPUAdapterImpl.cpp
M Source/WebCore/Modules/WebGPU/InternalAPI/WebGPUSupportedLimits.h
M Source/WebGPU/WGSL/IOValidator.cpp
M Source/WebGPU/WGSL/Metal/MetalFunctionWriter.cpp
M Source/WebGPU/WGSL/Parser.cpp
M Source/WebGPU/WGSL/WGSL.cpp
M Source/WebGPU/WGSL/WGSLEnums.h
M Source/WebGPU/WGSL/wgslc.cpp
M Source/WebGPU/WebGPU/HardwareCapabilities.mm
M Source/WebGPU/WebGPU/RenderPipeline.mm
M Source/WebGPU/WebGPU/ShaderModule.h
M Source/WebGPU/WebGPU/ShaderModule.mm
M Source/WebGPU/WebGPU/WebGPU.h
M Source/WebKit/GPUProcess/graphics/WebGPU/RemoteAdapter.cpp
M Source/WebKit/GPUProcess/graphics/WebGPU/RemoteGPU.cpp
M Source/WebKit/Shared/WebGPU/WebGPUSupportedLimits.cpp
M Source/WebKit/Shared/WebGPU/WebGPUSupportedLimits.h
M Source/WebKit/Shared/WebGPU/WebGPUSupportedLimits.serialization.in
M Source/WebKit/WebProcess/GPU/graphics/WebGPU/RemoteAdapterProxy.cpp
M Source/WebKit/WebProcess/GPU/graphics/WebGPU/RemoteGPUProxy.cpp
M Tools/TestWebKitAPI/Tests/WGSL/TestWGSLAPI.h
M Tools/TestWebKitAPI/Tests/WGSL/TypeCheckingTests.mm
Log Message:
-----------
[WGSL] support for clip_distances
https://bugs.webkit.org/show_bug.cgi?id=275094
rdar://129202606
Reviewed by Mike Wyrzykowski.
Add support for the clip_distances feature according to the spec[1][2].
[1]: https://www.w3.org/TR/WGSL/#clip-distances-builtin-value
[2]: https://gpuweb.github.io/gpuweb/#primitive-clipping
* LayoutTests/fast/webgpu/ftoi.html:
* LayoutTests/fast/webgpu/nocrash/fuzz-273021.html:
* LayoutTests/fast/webgpu/nocrash/fuzz-273585.html:
* LayoutTests/fast/webgpu/nocrash/fuzz-274289.html:
* LayoutTests/fast/webgpu/nocrash/fuzz-274334.html:
* LayoutTests/fast/webgpu/nocrash/fuzz-275294.html:
* LayoutTests/fast/webgpu/nocrash/fuzz-276279.html:
* LayoutTests/fast/webgpu/nocrash/fuzz-277035.html:
* LayoutTests/fast/webgpu/nocrash/fuzz-277552.html:
* LayoutTests/fast/webgpu/nocrash/fuzz-283196.html:
* LayoutTests/fast/webgpu/nocrash/fuzz-284126.html:
* LayoutTests/fast/webgpu/nocrash/fuzz-287519.html:
* LayoutTests/fast/webgpu/nocrash/fuzz-290831.html:
* LayoutTests/fast/webgpu/nocrash/fuzz-291708.html:
* LayoutTests/fast/webgpu/nocrash/fuzz-291988b.html:
* LayoutTests/fast/webgpu/regression/repro_284652.html:
* LayoutTests/fast/webgpu/write-to-destroyed-buffer.html:
*
LayoutTests/http/tests/webgpu/webgpu/api/validation/capability_checks/limits/maxInterStageShaderVariables-expected.txt:
*
LayoutTests/http/tests/webgpu/webgpu/api/validation/render_pipeline/inter_stage-expected.txt:
* Source/WebCore/Modules/WebGPU/GPUSupportedLimits.cpp:
(WebCore::GPUSupportedLimits::maxInterStageShaderComponents const): Deleted.
* Source/WebCore/Modules/WebGPU/GPUSupportedLimits.h:
* Source/WebCore/Modules/WebGPU/GPUSupportedLimits.idl:
* Source/WebCore/Modules/WebGPU/Implementation/WebGPUAdapterImpl.cpp:
(WebCore::WebGPU::supportedLimits):
(WebCore::WebGPU::AdapterImpl::requestDevice):
* Source/WebCore/Modules/WebGPU/InternalAPI/WebGPUSupportedLimits.h:
* Source/WebGPU/WGSL/IOValidator.cpp:
(WGSL::IOValidator::validateBuiltinIO):
* Source/WebGPU/WGSL/Metal/MetalFunctionWriter.cpp:
(WGSL::Metal::FunctionDefinitionWriter::visit):
* Source/WebGPU/WGSL/Parser.cpp:
(WGSL::Parser<Lexer>::parseEnableDirective):
(WGSL::Parser<Lexer>::parseRequireDirective):
(WGSL::Parser<Lexer>::parseAttribute):
* Source/WebGPU/WGSL/WGSL.cpp:
(WGSL::wgslExtensionToWebGPUFeatureName):
(WGSL::staticCheck):
* Source/WebGPU/WGSL/WGSLEnums.h:
* Source/WebGPU/WGSL/wgslc.cpp:
(runWGSL):
* Source/WebGPU/WebGPU/HardwareCapabilities.mm:
(WebGPU::baseFeatures):
(WebGPU::apple6):
(WebGPU::apple7):
(WebGPU::mac2):
(WebGPU::mergeLimits):
(WebGPU::anyLimitIsBetterThan):
(WebGPU::defaultLimits):
* Source/WebGPU/WebGPU/RenderPipeline.mm:
(WebGPU::errorValidatingInterstageShaderInterfaces):
* Source/WebGPU/WebGPU/ShaderModule.h:
* Source/WebGPU/WebGPU/ShaderModule.mm:
(WebGPU::ShaderModule::clipDistancesCount const):
(WebGPU::ShaderModule::populateFragmentInputs):
(WebGPU::ShaderModule::parseFragmentInputs):
(WebGPU::ShaderModule::ShaderModule):
* Source/WebGPU/WebGPU/WebGPU.h:
* Source/WebKit/GPUProcess/graphics/WebGPU/RemoteAdapter.cpp:
(WebKit::RemoteAdapter::requestDevice):
* Source/WebKit/GPUProcess/graphics/WebGPU/RemoteGPU.cpp:
(WebKit::RemoteGPU::requestAdapter):
* Source/WebKit/Shared/WebGPU/WebGPUSupportedLimits.cpp:
(WebKit::WebGPU::ConvertToBackingContext::convertToBacking):
(WebKit::WebGPU::ConvertFromBackingContext::convertFromBacking):
* Source/WebKit/Shared/WebGPU/WebGPUSupportedLimits.h:
* Source/WebKit/Shared/WebGPU/WebGPUSupportedLimits.serialization.in:
* Source/WebKit/WebProcess/GPU/graphics/WebGPU/RemoteAdapterProxy.cpp:
(WebKit::WebGPU::RemoteAdapterProxy::requestDevice):
* Source/WebKit/WebProcess/GPU/graphics/WebGPU/RemoteGPUProxy.cpp:
(WebKit::RemoteGPUProxy::requestAdapter):
* Tools/TestWebKitAPI/Tests/WGSL/TestWGSLAPI.h:
(TestWGSLAPI::staticCheck):
* Tools/TestWebKitAPI/Tests/WGSL/TypeCheckingTests.mm:
(TestWGSLAPI::expectTypeError):
Co-authored-by: Mike Wyrzykowski <[email protected]>
Canonical link: https://commits.webkit.org/311824@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications