blob: 3d536496b87f0375b57005716c0e4491f6c1427f [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
%x_7:ptr<uniform, buf0, read> = var @binding_point(0, 0)
%gl_FragCoord:ptr<private, vec4<f32>, read_write> = var
%x_GLF_color:ptr<private, vec4<f32>, read_write> = var
}
%main_1 = func():void {
$B2: {
%loop_count:ptr<function, i32, read_write> = var
store %loop_count, 0i
%6:ptr<uniform, vec2<f32>, read> = access %x_7, 0u
%7:f32 = load_vector_element %6, 0u
%8:ptr<uniform, vec2<f32>, read> = access %x_7, 0u
%9:f32 = load_vector_element %8, 1u
%10:bool = gt %7, %9
%x_36:bool = let %10
if %x_36 [t: $B3] { # if_1
$B3: { # true
ret
}
}
%12:f32 = load_vector_element %gl_FragCoord, 0u
%13:bool = lt %12, 0.0f
%x_41:bool = let %13
loop [b: $B4, c: $B5] { # loop_1
$B4: { # body
%15:i32 = load %loop_count
%16:bool = lt %15, 100i
if %16 [t: $B6, f: $B7] { # if_2
$B6: { # true
exit_if # if_2
}
$B7: { # false
exit_loop # loop_1
}
}
if %x_36 [t: $B8] { # if_3
$B8: { # true
exit_loop # loop_1
}
}
if %x_36 [t: $B9, f: $B10] { # if_4
$B9: { # true
store %x_GLF_color, vec4<f32>(1.0f)
exit_if # if_4
}
$B10: { # false
if %x_41 [t: $B11] { # if_5
$B11: { # true
ret
}
}
exit_if # if_4
}
}
if %x_36 [t: $B12, f: $B13] { # if_6
$B12: { # true
store %x_GLF_color, vec4<f32>(1.0f)
exit_if # if_6
}
$B13: { # false
store %x_GLF_color, vec4<f32>(1.0f, 0.0f, 0.0f, 1.0f)
exit_if # if_6
}
}
if %x_36 [t: $B14] { # if_7
$B14: { # true
ret
}
}
if %x_41 [t: $B15] { # if_8
$B15: { # true
loop [b: $B16, c: $B17] { # loop_2
$B16: { # body
%17:i32 = load %loop_count
%18:bool = lt %17, 100i
if %18 [t: $B18, f: $B19] { # if_9
$B18: { # true
exit_if # if_9
}
$B19: { # false
exit_loop # loop_2
}
}
continue # -> $B17
}
$B17: { # continuing
%19:i32 = load %loop_count
%20:i32 = add %19, 1i
store %loop_count, %20
next_iteration # -> $B16
}
}
exit_if # if_8
}
}
continue # -> $B5
}
$B5: { # continuing
%21:i32 = load %loop_count
%22:i32 = add %21, 1i
store %loop_count, %22
next_iteration # -> $B4
}
}
%23:i32 = load %loop_count
%24:bool = gte %23, 100i
if %24 [t: $B20, f: $B21] { # if_10
$B20: { # true
store %x_GLF_color, vec4<f32>(1.0f, 0.0f, 0.0f, 1.0f)
exit_if # if_10
}
$B21: { # false
store %x_GLF_color, vec4<f32>(1.0f)
exit_if # if_10
}
}
ret
}
}
%tint_symbol = @fragment func(%gl_FragCoord_param:vec4<f32> [@position]):main_out {
$B22: {
store %gl_FragCoord, %gl_FragCoord_param
%27:void = call %main_1
%28:vec4<f32> = load %x_GLF_color
%29:main_out = construct %28
ret %29
}
}
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. *
********************************************************************