Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 661c534f55532c756caea32a63c21beec459df11
      
https://github.com/WebKit/WebKit/commit/661c534f55532c756caea32a63c21beec459df11
  Author: Tadeu Zagallo <[email protected]>
  Date:   2025-04-16 (Wed, 16 Apr 2025)

  Changed paths:
    A LayoutTests/fast/webgpu/fuzz-149183515-reduced-expected.txt
    A LayoutTests/fast/webgpu/fuzz-149183515-reduced.html
    M Source/WebGPU/WGSL/GlobalVariableRewriter.cpp

  Log Message:
  -----------
  [WebGPU] Selectively emitting bufferLength allows for mismatched bind groups
https://bugs.webkit.org/show_bug.cgi?id=291533
rdar://149183515

Reviewed by Mike Wyrzykowski.

Automatically generated bind groups can be used in place of other compatible
bind groups of the same pipeline, but to ensure compatibility we must emit all
buffer lengths. To do that we force the generation of all length variables as
long as the buffer isn't an external texture (to match the API behavior) and
the variable associated with the length has been used.

* LayoutTests/fast/webgpu/fuzz-149183515-reduced-expected.txt: Added.
* LayoutTests/fast/webgpu/fuzz-149183515-reduced.html: Added.
* Source/WebGPU/WGSL/GlobalVariableRewriter.cpp:
(WGSL::RewriteGlobalVariables::collectGlobals):
(WGSL::bindingTypeForPrimitive):
(WGSL::bindingTypeForType):
(WGSL::isExternalTexture):
(WGSL::RewriteGlobalVariables::insertStructs):

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



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

Reply via email to