blob: 85c00ea929593dde902b77280117a1f3e35ff3ba [file] [log] [blame]
SKIP: FAILED
../../src/tint/lang/msl/writer/printer/printer.cc:500 internal compiler error: buf0 = struct @align(4) {
zero:i32 @offset(0)
}
main_out = struct @align(16) {
x_GLF_color_1:vec4<f32> @offset(0), @location(0)
}
$B1: { # root
%x_GLF_color:ptr<private, vec4<f32>, read_write> = var
%x_5:ptr<uniform, buf0, read> = var @binding_point(0, 0)
}
%main_1 = func():void {
$B2: {
%x_9:ptr<function, array<i32, 1>, read_write> = var
%x_10_phi:ptr<function, i32, read_write> = var
%6:array<i32, 1> = load %x_9
%x_33:array<i32, 1> = let %6
%8:i32 = access %x_33, 0u
%x_6:i32 = let %8
loop [b: $B3] { # loop_1
$B3: { # body
store %x_GLF_color, vec4<f32>(0.0f)
%10:ptr<uniform, i32, read> = access %x_5, 0u
%11:i32 = load %10
%x_7:i32 = let %11
%13:ptr<function, i32, read_write> = access %x_9, %x_7
%14:i32 = load %13
%x_8:i32 = let %14
%16:bool = eq %x_8, %x_6
if %16 [t: $B4] { # if_1
$B4: { # true
store %x_10_phi, 1i
exit_loop # loop_1
}
}
store %x_10_phi, 2i
exit_loop # loop_1
}
}
%17:i32 = load %x_10_phi
%x_10:i32 = let %17
%19:bool = eq %x_10, 1i
%20:bool = eq %x_10, 2i
%21:bool = or %19, %20
if %21 [t: $B5, f: $B6] { # if_2
$B5: { # true
store %x_GLF_color, vec4<f32>(1.0f, 0.0f, 0.0f, 1.0f)
exit_if # if_2
}
$B6: { # false
store %x_GLF_color, vec4<f32>(0.0f)
exit_if # if_2
}
}
ret
}
}
%tint_symbol = @fragment func():main_out {
$B7: {
%23:void = call %main_1
%24:vec4<f32> = load %x_GLF_color
%25:main_out = construct %24
ret %25
}
}
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. *
********************************************************************