blob: 7c69af42677438173f78c440b7de606bdafc9fb1 [file] [log] [blame]
SKIP: FAILED
../../src/tint/lang/msl/writer/printer/printer.cc:1257 internal compiler error: main_out = struct @align(4) {
out_data_1:i32 @offset(0), @location(0), @interpolate(flat)
}
$B1: { # root
%gl_FragCoord:ptr<private, vec4<f32>, read_write> = var
%out_data:ptr<private, i32, read_write> = var
}
%main_1 = func():void {
$B2: {
%x_is_odd:ptr<function, bool, read_write> = var
%y_is_odd:ptr<function, bool, read_write> = var
%6:f32 = load_vector_element %gl_FragCoord, 0u
%7:i32 = call %tint_f32_to_i32, %6
%9:i32 = and %7, 1i
%10:bool = eq %9, 1i
store %x_is_odd, %10
%11:f32 = load_vector_element %gl_FragCoord, 1u
%12:i32 = call %tint_f32_to_i32, %11
%13:i32 = and %12, 1i
%14:bool = eq %13, 1i
store %y_is_odd, %14
%15:bool = load %x_is_odd
%16:bool = load %y_is_odd
%17:bool = or %15, %16
%18:i32 = select 0i, 1i, %17
store %out_data, %18
ret
}
}
%tint_symbol = @fragment func(%gl_FragCoord_param:vec4<f32> [@position]):main_out {
$B3: {
store %gl_FragCoord, %gl_FragCoord_param
%21:void = call %main_1
%22:i32 = load %out_data
%23:main_out = construct %22
ret %23
}
}
%tint_f32_to_i32 = func(%value:f32):i32 {
$B4: {
%25:i32 = convert %value
%26:bool = gte %value, -2147483648.0f
%27:i32 = select -2147483648i, %25, %26
%28:bool = lte %value, 2147483520.0f
%29:i32 = select 2147483647i, %27, %28
ret %29
}
}
invalid entry point IO struct uses
********************************************************************
* 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. *
********************************************************************