blob: 52878883ac4da31e1c3ae47dbc96299d5427f77d [file] [log] [blame]
SKIP: FAILED
<dawn>/src/tint/lang/msl/writer/printer/printer.cc:355 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 = block { # 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 {
%b2 = block {
%x_9:ptr<function, array<i32, 1>, read_write> = var
%x_10:ptr<function, i32, read_write> = var
%6:ptr<function, i32, read_write> = access %x_9, 0u
%x_6:i32 = load %6
loop [b: %b3, c: %b4] { # loop_1
%b3 = block { # body
store %x_GLF_color, vec4<f32>(0.0f)
%8:ptr<uniform, i32, read> = access %x_5, 0u
%9:i32 = load %8
%10:ptr<function, i32, read_write> = access %x_9, %9
%11:i32 = load %10
%12:bool = eq %11, %x_6
if %12 [t: %b5] { # if_1
%b5 = block { # true
store %x_10, 1i
exit_loop # loop_1
}
}
store %x_10, 2i
exit_loop # loop_1
}
%b4 = block { # continuing
next_iteration %b3
}
}
%13:i32 = load %x_10
%14:bool = eq %13, 1i
%15:i32 = load %x_10
%16:bool = eq %15, 2i
%17:bool = or %14, %16
if %17 [t: %b6, f: %b7] { # if_2
%b6 = block { # true
store %x_GLF_color, vec4<f32>(1.0f, 0.0f, 0.0f, 1.0f)
exit_if # if_2
}
%b7 = block { # false
store %x_GLF_color, vec4<f32>(0.0f)
exit_if # if_2
}
}
ret
}
}
%tint_symbol = @fragment func():main_out -> %b8 {
%b8 = block {
%19:void = call %main_1
%20:vec4<f32> = load %x_GLF_color
%21:main_out = construct %20
ret %21
}
}
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. *
********************************************************************