blob: d8d38df6e09bf2b37496e2809a24f162570a1540 [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)
}
Array = struct @align(4) {
values:array<i32, 2> @offset(0)
}
main_out = struct @align(16) {
x_GLF_color_1:vec4<f32> @offset(0), @location(0)
}
%b1 = block { # root
%x_8: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 {
%x_50:ptr<function, bool, read_write> = var, false
%x_15:ptr<function, i32, read_write> = var
%x_16:ptr<function, i32, read_write> = var
%param:ptr<function, Array, read_write> = var
%x_19:ptr<function, i32, read_write> = var
%x_20:ptr<function, i32, read_write> = var
store %param, Array(array<i32, 2>(0i))
store %x_50, false
loop [b: %b3, c: %b4] { # loop_1
%b3 = block { # body
%x_63:ptr<function, bool, read_write> = var
loop [b: %b5, c: %b6] { # loop_2
%b5 = block { # body
%11:ptr<uniform, i32, read> = access %x_8, 0u
%12:i32 = load %11
%13:ptr<function, i32, read_write> = access %param, 0u, %12
%14:i32 = load %13
%15:bool = eq %14, 1i
if %15 [t: %b7] { # if_1
%b7 = block { # true
store %x_50, true
store %x_15, 1i
store %x_19, 1i
store %x_63, true
exit_loop # loop_2
}
}
store %x_19, 0i
store %x_63, false
exit_loop # loop_2
}
%b6 = block { # continuing
next_iteration %b5
}
}
%16:i32 = load %x_19
store %x_20, %16
%17:bool = load %x_63
if %17 [t: %b8] { # if_2
%b8 = block { # true
exit_loop # loop_1
}
}
store %x_50, true
store %x_15, 1i
store %x_20, 1i
exit_loop # loop_1
}
%b4 = block { # continuing
next_iteration %b3
}
}
%18:i32 = load %x_20
store %x_16, %18
%19:i32 = load %x_20
%20:bool = eq %19, 1i
if %20 [t: %b9, f: %b10] { # if_3
%b9 = block { # true
store %x_GLF_color, vec4<f32>(1.0f, 0.0f, 0.0f, 1.0f)
exit_if # if_3
}
%b10 = block { # false
store %x_GLF_color, vec4<f32>(0.0f)
exit_if # if_3
}
}
ret
}
}
%tint_symbol = @fragment func():main_out -> %b11 {
%b11 = block {
%22:void = call %main_1
%23:vec4<f32> = load %x_GLF_color
%24:main_out = construct %23
ret %24
}
}
%func_struct_Array_i1_2_1_ = func(%a:ptr<function, Array, read_write>):i32 -> %b12 {
%b12 = block {
%x_70:ptr<function, bool, read_write> = var, false
%x_12:ptr<function, i32, read_write> = var
%x_72:ptr<function, bool, read_write> = var
%x_13:ptr<function, i32, read_write> = var
%x_14:ptr<function, i32, read_write> = var
store %x_72, false
loop [b: %b13, c: %b14] { # loop_3
%b13 = block { # body
%x_77:ptr<function, bool, read_write> = var
%x_87:ptr<function, bool, read_write> = var
%34:bool = load %x_72
store %x_77, %34
loop [b: %b15, c: %b16] { # loop_4
%b15 = block { # body
%35:ptr<uniform, i32, read> = access %x_8, 0u
%36:i32 = load %35
%37:ptr<function, i32, read_write> = access %a, 0u, %36
%38:i32 = load %37
%39:bool = eq %38, 1i
if %39 [t: %b17] { # if_4
%b17 = block { # true
store %x_70, true
store %x_12, 1i
store %x_13, 1i
store %x_87, true
exit_loop # loop_4
}
}
store %x_13, 0i
%40:bool = load %x_77
store %x_87, %40
exit_loop # loop_4
}
%b16 = block { # continuing
store %x_77, false
next_iteration %b15
}
}
%41:i32 = load %x_13
store %x_14, %41
%42:bool = load %x_87
if %42 [t: %b18] { # if_5
%b18 = block { # true
exit_loop # loop_3
}
}
store %x_70, true
store %x_12, 1i
store %x_14, 1i
exit_loop # loop_3
}
%b14 = block { # continuing
store %x_72, false
next_iteration %b13
}
}
%43:i32 = load %x_14
ret %43
}
}
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. *
********************************************************************