Bug 265894

Summary: [WebGPU] Crash in ConstantValue::integerValue() because the activeType is float
Product: WebKit Reporter: Mike Wyrzykowski <mwyrzykowski>
Component: WebGPUAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Mike Wyrzykowski
Reported 2023-12-05 12:01:33 PST
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); }
Attachments
Radar WebKit Bug Importer
Comment 1 2023-12-05 12:01:57 PST
Mike Wyrzykowski
Comment 2 2023-12-05 12:33:08 PST
EWS
Comment 3 2023-12-08 10:25:25 PST
Committed 271743@main (81a7c89e229f): <https://commits.webkit.org/271743@main> Reviewed commits have been landed. Closing PR #21350 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.