blob: b2ae302cff4981f65f65aeb149e440f226521696 [file] [log] [blame]
SKIP: FAILED
../../src/tint/lang/msl/writer/printer/printer.cc:500 internal compiler error: buf0 = struct @align(8) {
injectionSwitch:vec2<f32> @offset(0)
}
main_out = struct @align(16) {
x_GLF_color_1:vec4<f32> @offset(0), @location(0)
}
$B1: { # root
%x_5:ptr<uniform, buf0, read> = var @binding_point(0, 0)
%gv:ptr<private, vec4<f32>, read_write> = var
%x_GLF_color:ptr<private, vec4<f32>, read_write> = var
%continue_execution:ptr<private, bool, read_write> = var, true
}
%main_1 = func():void {
$B2: {
%temp:ptr<function, i32, read_write> = var
%7:ptr<uniform, vec2<f32>, read> = access %x_5, 0u
%8:f32 = load_vector_element %7, 0u
%9:bool = gt %8, 2.0f
if %9 [t: $B3] { # if_1
$B3: { # true
%10:vec4<f32> = load %gv
%11:vec4<f32> = mix vec4<f32>(1.0f), vec4<f32>(1.0f), %10
%12:vec4<f32> = max %11, vec4<f32>(8.6000003814697265625f)
%13:f32 = access %12, 1u
%14:i32 = call %tint_f32_to_i32, %13
store %temp, %14
%16:i32 = load %temp
%17:bool = lt %16, 150i
if %17 [t: $B4] { # if_2
$B4: { # true
store %continue_execution, false
exit_if # if_2
}
}
%18:i32 = load %temp
%19:bool = lt %18, 180i
if %19 [t: $B5] { # if_3
$B5: { # true
store %continue_execution, false
exit_if # if_3
}
}
exit_if # if_1
}
}
store %x_GLF_color, vec4<f32>(1.0f, 0.0f, 0.0f, 1.0f)
ret
}
}
%tint_symbol = @fragment func():main_out {
$B6: {
%21:void = call %main_1
%22:vec4<f32> = load %x_GLF_color
%23:main_out = construct %22
%24:bool = load %continue_execution
%25:bool = eq %24, false
if %25 [t: $B7] { # if_4
$B7: { # true
terminate_invocation
}
}
ret %23
}
}
%tint_f32_to_i32 = func(%value:f32):i32 {
$B8: {
%27:i32 = convert %value
%28:bool = gte %value, -2147483648.0f
%29:i32 = select -2147483648i, %27, %28
%30:bool = lte %value, 2147483520.0f
%31:i32 = select 2147483647i, %29, %30
ret %31
}
}
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. *
********************************************************************