Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 75f68af5e660a28446d188bf1c450d524ac594f1
      
https://github.com/WebKit/WebKit/commit/75f68af5e660a28446d188bf1c450d524ac594f1
  Author: Tadeu Zagallo <tzaga...@apple.com>
  Date:   2025-03-04 (Tue, 04 Mar 2025)

  Changed paths:
    A LayoutTests/fast/webgpu/nocrash/fuzz-145583179-expected.txt
    A LayoutTests/fast/webgpu/nocrash/fuzz-145583179.html
    M Source/WebGPU/WGSL/GlobalVariableRewriter.cpp
    M Source/WebGPU/WGSL/Types.cpp
    M Source/WebGPU/WGSL/WGSLShaderModule.cpp
    M Source/WebGPU/WGSL/WGSLShaderModule.h

  Log Message:
  -----------
  [WebGPU] Ensure staticThreadgroupMemoryLength does not exceed device 
capabilities
https://bugs.webkit.org/show_bug.cgi?id=288735
rdar://145583179

Reviewed by Mike Wyrzykowski.

We currently compute the total size for all workgroup variables and validate 
that
they do not exceed the device limit, but the validation was not performed 
correctly
when an override variable was used as array size.

* LayoutTests/fast/webgpu/nocrash/fuzz-145583179-expected.txt: Added.
* LayoutTests/fast/webgpu/nocrash/fuzz-145583179.html: Added.
* Source/WebGPU/WGSL/GlobalVariableRewriter.cpp:
(WGSL::RewriteGlobalVariables::determineUsedGlobals):
* Source/WebGPU/WGSL/Types.cpp:
(WGSL::Type::size const):
* Source/WebGPU/WGSL/WGSLShaderModule.cpp:
(WGSL::ShaderModule::validateOverrides):
* Source/WebGPU/WGSL/WGSLShaderModule.h:
(WGSL::ShaderModule::addOverrideValidation):

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to