Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 4f07563c85a8ae5a4cfd527576e4284aed7bb2f8
      
https://github.com/WebKit/WebKit/commit/4f07563c85a8ae5a4cfd527576e4284aed7bb2f8
  Author: Tadeu Zagallo <[email protected]>
  Date:   2026-01-22 (Thu, 22 Jan 2026)

  Changed paths:
    M 
LayoutTests/http/tests/webgpu/webgpu/shader/validation/expression/call/builtin/value_constructor-expected.txt
    M Source/WebGPU/WGSL/TypeCheck.cpp
    M Tools/TestWebKitAPI/Tests/WGSL/TypeCheckingTests.mm

  Log Message:
  -----------
  WGSL compilation: cannot use override value in constant expression
https://bugs.webkit.org/show_bug.cgi?id=302750
rdar://165093959

Reviewed by Mike Wyrzykowski.

Array type expressions were always inferring the count as an override 
expression,
but they should be treated as constant if we're already in a constant context.

Test: Tools/TestWebKitAPI/Tests/WGSL/TypeCheckingTests.mm
* Source/WebGPU/WGSL/TypeCheck.cpp:
(WGSL::TypeChecker::visit):
* Tools/TestWebKitAPI/Tests/WGSL/TypeCheckingTests.mm:
(TestWGSLAPI::TEST(WGSLTypeCheckingTests, Constants)):

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to