blob: 895d9f1d2961e3c2d2fd8910c6a7e030ee8d5056 [file] [log] [blame]
SKIP: FAILED
../../src/tint/lang/msl/writer/printer/printer.cc:500 internal compiler error: buf0 = struct @align(4) {
one:i32 @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)
%x_GLF_color:ptr<private, vec4<f32>, read_write> = var
}
%func_i1_ = func(%x:ptr<function, i32, read_write>):i32 {
$B2: {
%5:ptr<uniform, i32, read> = access %x_7, 0u
%6:i32 = load %5
%7:bool = eq %6, 1i
if %7 [t: $B3] { # if_1
$B3: { # true
%8:i32 = load %x
%x_39:i32 = let %8
ret %x_39
}
}
%10:ptr<uniform, i32, read> = access %x_7, 0u
%11:i32 = load %10
%x_41:i32 = let %11
ret %x_41
}
}
%main_1 = func():void {
$B4: {
%param:ptr<function, i32, read_write> = var
store %param, -1i
%15:i32 = call %func_i1_, %param
%x_28:i32 = let %15
%17:bool = lte %x_28, 0i
if %17 [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: {
%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. *
********************************************************************