blob: 0307c87b056c96bee52d1a52aad85f7c4643547a [file] [log] [blame]
SKIP: FAILED
../../src/tint/lang/msl/writer/printer/printer.cc:500 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: { # root
%gl_FragCoord:ptr<private, vec4<f32>, read_write> = var
%x_6:ptr<uniform, buf0, read> = var @binding_point(0, 0)
%x_GLF_color:ptr<private, vec4<f32>, read_write> = var
%continue_execution:ptr<private, bool, read_write> = var, true
}
%main_1 = func():void {
$B2: {
loop [b: $B3] { # loop_1
$B3: { # body
%x_46_phi:ptr<function, bool, read_write> = var
loop [b: $B4, c: $B5] { # loop_2
$B4: { # body
%7:f32 = load_vector_element %gl_FragCoord, 0u
%x_37:f32 = let %7
%9:bool = lt %x_37, 0.0f
if %9 [t: $B6] { # if_1
$B6: { # true
%10:ptr<uniform, vec2<f32>, read> = access %x_6, 0u
%11:f32 = load_vector_element %10, 1u
%x_42:f32 = let %11
%13:bool = gt 1.0f, %x_42
if %13 [t: $B7, f: $B8] { # if_2
$B7: { # true
store %continue_execution, false
exit_if # if_2
}
$B8: { # false
continue # -> $B5
}
}
exit_if # if_1
}
}
store %x_46_phi, true
exit_loop # loop_2
}
$B5: { # continuing
store %x_46_phi, false
break_if true # -> [t: exit_loop loop_2, f: $B4]
}
}
%14:bool = load %x_46_phi
%x_46:bool = let %14
if %x_46 [t: $B9] { # if_3
$B9: { # true
exit_loop # loop_1
}
}
exit_loop # loop_1
}
}
store %x_GLF_color, vec4<f32>(1.0f, 0.0f, 0.0f, 1.0f)
ret
}
}
%tint_symbol = @fragment func(%gl_FragCoord_param:vec4<f32> [@position]):main_out {
$B10: {
store %gl_FragCoord, %gl_FragCoord_param
%18:void = call %main_1
%19:vec4<f32> = load %x_GLF_color
%20:main_out = construct %19
%21:bool = load %continue_execution
%22:bool = eq %21, false
if %22 [t: $B11] { # if_4
$B11: { # true
terminate_invocation
}
}
ret %20
}
}
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. *
********************************************************************