[Webkit-unassigned] [Bug 265894] New: [WebGPU] Crash in ConstantValue::integerValue() because the activeType is float

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Dec 5 12:01:33 PST 2023


https://bugs.webkit.org/show_bug.cgi?id=265894

            Bug ID: 265894
           Summary: [WebGPU] Crash in ConstantValue::integerValue()
                    because the activeType is float
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebGPU
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: mwyrzykowski at apple.com

The following WGSL source generates a crash in ConstantValue::integerValue() because the activeType is float:

override x: u32 = 1u;
override y: u32 = 1u;
override z: u32 = 1u;
@compute @workgroup_size(x, y, z) fn main () {
  _ = 0u;
}

Generated Metal code:
#include <metal_stdlib>
#include <metal_types>

using namespace metal;

constant unsigned global0 [[function_constant(0)]];
constant unsigned global1 [[function_constant(1)]];
constant unsigned global2 [[function_constant(2)]];
[[kernel]]  void function0()
{
    (void)(0u);
}

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20231205/becc1a0b/attachment.htm>


More information about the webkit-unassigned mailing list