Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WGSL] shader,execution,expression,constructor,non_zero:* is failing #28724

Conversation

tadeuzagallo
Copy link
Member

@tadeuzagallo tadeuzagallo commented May 17, 2024

73ee009

[WGSL] shader,execution,expression,constructor,non_zero:* is failing
https://bugs.webkit.org/show_bug.cgi?id=274319
rdar://128283127

Reviewed by Mike Wyrzykowski.

There were 2 issues:
- A metal compilation failure when assigning an array of packed vectors to an
  array of unpacked vectors
- array<vec3<T>> needs to be converted to array<S>, where S is a struct with the
  packed vec3<T> and explicit padding

* Source/WebGPU/WGSL/GlobalVariableRewriter.cpp:
(WGSL::RewriteGlobalVariables::pack):
* Source/WebGPU/WGSL/Metal/MetalFunctionWriter.cpp:
(WGSL::Metal::FunctionDefinitionWriter::emitNecessaryHelpers):
(WGSL::Metal::FunctionDefinitionWriter::generatePackingHelpers):
(WGSL::Metal::FunctionDefinitionWriter::visit):
* Source/WebGPU/WGSL/Types.cpp:
(WGSL::Type::packing const):
* Source/WebGPU/WGSL/Types.h:
* Source/WebGPU/WGSL/WGSLShaderModule.h:
(WGSL::ShaderModule::usesPackedVec3 const):
(WGSL::ShaderModule::setUsesPackedVec3):
(WGSL::ShaderModule::clearUsesPackedVec3):

Canonical link: https://commits.webkit.org/278991@main

5b40688

Misc iOS, tvOS & watchOS macOS Linux Windows
βœ… πŸ§ͺ style βœ… πŸ›  ios loading πŸ›  mac βœ… πŸ›  wpe βœ… πŸ›  wincairo
loading πŸ›  ios-sim loading πŸ›  mac-AS-debug βœ… πŸ§ͺ wpe-wk2 βœ… πŸ§ͺ wincairo-tests
βœ… πŸ§ͺ webkitperl loading πŸ§ͺ ios-wk2 loading πŸ§ͺ api-mac loading πŸ§ͺ api-wpe
loading πŸ§ͺ ios-wk2-wpt loading πŸ§ͺ mac-wk1 βœ… πŸ›  wpe-cairo
loading πŸ§ͺ api-ios loading πŸ§ͺ mac-wk2 βœ… πŸ›  gtk
βœ… πŸ›  tv loading πŸ§ͺ mac-AS-debug-wk2 βœ… πŸ§ͺ gtk-wk2
βœ… πŸ›  tv-sim loading πŸ§ͺ mac-wk2-stress loading-orange πŸ§ͺ api-gtk
βœ… πŸ›  πŸ§ͺ merge βœ… πŸ›  watch
loading πŸ›  watch-sim

@tadeuzagallo tadeuzagallo self-assigned this May 17, 2024
@tadeuzagallo tadeuzagallo added the WebGPU For bugs in WebGPU label May 17, 2024
@tadeuzagallo tadeuzagallo added the merge-queue Applied to send a pull request to merge-queue label May 20, 2024
@webkit-commit-queue webkit-commit-queue force-pushed the eng/WGSL-shaderexecutionexpressionconstructornon_zero-is-failing branch from 5b40688 to 713df29 Compare May 20, 2024 09:58
https://bugs.webkit.org/show_bug.cgi?id=274319
rdar://128283127

Reviewed by Mike Wyrzykowski.

There were 2 issues:
- A metal compilation failure when assigning an array of packed vectors to an
  array of unpacked vectors
- array<vec3<T>> needs to be converted to array<S>, where S is a struct with the
  packed vec3<T> and explicit padding

* Source/WebGPU/WGSL/GlobalVariableRewriter.cpp:
(WGSL::RewriteGlobalVariables::pack):
* Source/WebGPU/WGSL/Metal/MetalFunctionWriter.cpp:
(WGSL::Metal::FunctionDefinitionWriter::emitNecessaryHelpers):
(WGSL::Metal::FunctionDefinitionWriter::generatePackingHelpers):
(WGSL::Metal::FunctionDefinitionWriter::visit):
* Source/WebGPU/WGSL/Types.cpp:
(WGSL::Type::packing const):
* Source/WebGPU/WGSL/Types.h:
* Source/WebGPU/WGSL/WGSLShaderModule.h:
(WGSL::ShaderModule::usesPackedVec3 const):
(WGSL::ShaderModule::setUsesPackedVec3):
(WGSL::ShaderModule::clearUsesPackedVec3):

Canonical link: https://commits.webkit.org/278991@main
@webkit-commit-queue webkit-commit-queue force-pushed the eng/WGSL-shaderexecutionexpressionconstructornon_zero-is-failing branch from 713df29 to 73ee009 Compare May 20, 2024 10:00
@webkit-commit-queue
Copy link
Collaborator

Committed 278991@main (73ee009): https://commits.webkit.org/278991@main

Reviewed commits have been landed. Closing PR #28724 and removing active labels.

@webkit-commit-queue webkit-commit-queue merged commit 73ee009 into WebKit:main May 20, 2024
@webkit-commit-queue webkit-commit-queue removed the merge-queue Applied to send a pull request to merge-queue label May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
WebGPU For bugs in WebGPU
Projects
None yet
4 participants