Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 6d89eecb9b64ec244aeb840661fb8ad1ae5f1fb7
https://github.com/WebKit/WebKit/commit/6d89eecb9b64ec244aeb840661fb8ad1ae5f1fb7
Author: Tadeu Zagallo <[email protected]>
Date: 2024-01-11 (Thu, 11 Jan 2024)
Changed paths:
M Source/WebGPU/WGSL/Metal/MetalFunctionWriter.cpp
M Source/WebGPU/WGSL/TypeCheck.cpp
M Source/WebGPU/WGSL/WGSLShaderModule.h
Log Message:
-----------
[WGSL] shader,execution,expression,call,builtin,extractBits:* is failing
https://bugs.webkit.org/show_bug.cgi?id=267337
rdar://120783982
Reviewed by Mike Wyrzykowski.
The runtime version of extractBits was failing because we directly generated
calls to Metal's extract_bits. Intead we need small wrapper function in order
to clamp the offset and count.
* Source/WebGPU/WGSL/Metal/MetalFunctionWriter.cpp:
(WGSL::Metal::FunctionDefinitionWriter::emitNecessaryHelpers):
(WGSL::Metal::FunctionDefinitionWriter::visit):
* Source/WebGPU/WGSL/TypeCheck.cpp:
(WGSL::TypeChecker::visit):
* Source/WebGPU/WGSL/WGSLShaderModule.h:
(WGSL::ShaderModule::usesExtractBits const):
(WGSL::ShaderModule::setUsesExtractBits):
Canonical link: https://commits.webkit.org/272897@main
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes