blob: 3d9e5caf702cd1be1f9cf313e251bada3afe160b [file] [log] [blame]
SKIP: FAILED
<dawn>/src/tint/lang/msl/writer/printer/printer.cc:355 internal compiler error: buf0 = struct @align(8) {
injectionSwitch:vec2<f32> @offset(0)
}
main_out = struct @align(16) {
x_GLF_color_1:vec4<f32> @offset(0), @location(0)
}
%b1 = block { # root
%x_5:ptr<uniform, buf0, read> = var @binding_point(0, 0)
%x_GLF_color:ptr<private, vec4<f32>, read_write> = var
}
%main_1 = func():void -> %b2 {
%b2 = block {
%4:ptr<uniform, vec2<f32>, read> = access %x_5, 0u
%x_25:f32 = load_vector_element %4, 1u
%6:i32 = convert %x_25
switch %6 [c: (-1i, %b3), c: (default, %b4)] { # switch_1
%b3 = block { # case
%7:ptr<uniform, vec2<f32>, read> = access %x_5, 0u
%x_30:f32 = load_vector_element %7, 1u
%9:ptr<uniform, vec2<f32>, read> = access %x_5, 0u
%x_32:f32 = load_vector_element %9, 0u
%11:bool = gt %x_30, %x_32
if %11 [t: %b5] { # if_1
%b5 = block { # true
discard
exit_if # if_1
}
}
exit_switch # switch_1
}
%b4 = block { # case
exit_switch # switch_1
}
}
store %x_GLF_color, vec4<f32>(1.0f, 0.0f, 0.0f, 1.0f)
ret
}
}
%tint_symbol = @fragment func():main_out -> %b6 {
%b6 = block {
%13:void = call %main_1
%14:vec4<f32> = load %x_GLF_color
%15:main_out = construct %14
ret %15
}
}
unhandled variable address space
********************************************************************
* The tint shader compiler has encountered an unexpected error. *
* *
* Please help us fix this issue by submitting a bug report at *
* crbug.com/tint with the source program that triggered the bug. *
********************************************************************