blob: 24741b57d22e553a7fc5c71211e102878aeedee3 [file] [log] [blame]
SKIP: FAILED
<dawn>/src/tint/lang/msl/writer/printer/printer.cc:355 internal compiler error: S = struct @align(4) {
field0:array<i32> @offset(0)
}
main_out = struct @align(4) {
x_4_1:i32 @offset(0), @location(0), @interpolate(flat)
}
%b1 = block { # root
%x_2:ptr<private, vec4<f32>, read_write> = var
%x_3:ptr<private, i32, read_write> = var
%x_4:ptr<private, i32, read_write> = var
%x_5:ptr<storage, S, read_write> = var @binding_point(0, 0)
}
%main_1 = func():void -> %b2 {
%b2 = block {
store %x_4, 1i
%6:f32 = load_vector_element %x_2, 0u
%x_27:i32 = convert %6
%8:f32 = load_vector_element %x_2, 1u
%x_28:i32 = convert %8
%10:i32 = and %x_27, 1i
%11:i32 = and %x_28, 1i
%12:i32 = add %10, %11
%13:i32 = load %x_3
%14:i32 = add %12, %13
%15:f32 = load_vector_element %x_2, 2u
%16:i32 = convert %15
%17:bool = eq %14, %16
if %17 [t: %b3] { # if_1
%b3 = block { # true
exit_if # if_1
}
}
%18:i32 = mul %x_28, 8i
%19:i32 = add %x_27, %18
%20:ptr<storage, i32, read_write> = access %x_5, 0u, %19
store %20, %x_27
ret
}
}
%tint_symbol = @fragment func(%x_2_param:vec4<f32> [@position], %x_3_param:i32 [@location(0), @interpolate(flat)]):main_out -> %b4 {
%b4 = block {
store %x_2, %x_2_param
store %x_3, %x_3_param
%24:void = call %main_1
%25:i32 = load %x_4
%26:main_out = construct %25
ret %26
}
}
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. *
********************************************************************