blob: 5467112f35294eef1d59fd34b2210751f448838d [file] [log] [blame]
SKIP: FAILED
<dawn>/src/tint/lang/msl/writer/printer/printer.cc:355 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 = block { # 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 {
%b2 = block {
%5:ptr<uniform, i32, read> = access %x_7, 0u
%x_35:i32 = load %5
%7:bool = eq %x_35, 1i
if %7 [t: %b3] { # if_1
%b3 = block { # true
%x_39:i32 = load %x
ret %x_39
}
}
%9:ptr<uniform, i32, read> = access %x_7, 0u
%x_41:i32 = load %9
ret %x_41
}
}
%main_1 = func():void -> %b4 {
%b4 = block {
%param:ptr<function, i32, read_write> = var
store %param, -1i
%x_28:i32 = call %func_i1_, %param
%14:bool = lte %x_28, 0i
if %14 [t: %b5, f: %b6] { # if_2
%b5 = block { # true
store %x_GLF_color, vec4<f32>(1.0f, 0.0f, 0.0f, 1.0f)
exit_if # if_2
}
%b6 = block { # false
store %x_GLF_color, vec4<f32>(0.0f)
exit_if # if_2
}
}
ret
}
}
%tint_symbol = @fragment func():main_out -> %b7 {
%b7 = block {
%16:void = call %main_1
%17:vec4<f32> = load %x_GLF_color
%18:main_out = construct %17
ret %18
}
}
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. *
********************************************************************