blob: 0ccfe22ed8f19a61f99ca2177aab8e13e9036e6e [file] [log] [blame]
SKIP: FAILED
../../src/tint/lang/msl/writer/printer/printer.cc:500 internal compiler error: strided_arr = struct @align(4) {
el:i32 @offset(0)
}
buf0 = struct @align(4) {
x_GLF_uniform_int_values:array<strided_arr, 2> @offset(0)
}
strided_arr_1 = struct @align(4) {
el:f32 @offset(0)
}
buf1 = struct @align(4) {
x_GLF_uniform_float_values:array<strided_arr_1, 2> @offset(0)
}
main_out = struct @align(16) {
x_GLF_color_1:vec4<f32> @offset(0), @location(0)
}
$B1: { # root
%x_6:ptr<uniform, buf0, read> = var @binding_point(0, 0)
%x_8:ptr<uniform, buf1, read> = var @binding_point(0, 1)
%x_GLF_color:ptr<private, vec4<f32>, read_write> = var
}
%main_1 = func():void {
$B2: {
%data:ptr<function, array<f32, 2>, read_write> = var
%a:ptr<function, f32, read_write> = var
%7:ptr<uniform, i32, read> = access %x_6, 0u, 0i, 0u
%8:i32 = load %7
%x_33:i32 = let %8
%10:ptr<uniform, f32, read> = access %x_8, 0u, 0i, 0u
%11:f32 = load %10
%x_35:f32 = let %11
%13:ptr<function, f32, read_write> = access %data, %x_33
store %13, %x_35
%14:ptr<uniform, i32, read> = access %x_6, 0u, 1i, 0u
%15:i32 = load %14
%x_38:i32 = let %15
%17:ptr<uniform, f32, read> = access %x_8, 0u, 1i, 0u
%18:f32 = load %17
%x_40:f32 = let %18
%20:ptr<function, f32, read_write> = access %data, %x_38
store %20, %x_40
%21:ptr<uniform, i32, read> = access %x_6, 0u, 1i, 0u
%22:i32 = load %21
%x_43:i32 = let %22
%24:i32 = and %x_43, 2i
%25:i32 = xor 1i, %24
%26:ptr<function, f32, read_write> = access %data, %25
%27:f32 = load %26
%x_47:f32 = let %27
store %a, %x_47
%29:f32 = load %a
%x_48:f32 = let %29
%31:ptr<uniform, f32, read> = access %x_8, 0u, 1i, 0u
%32:f32 = load %31
%x_50:f32 = let %32
%34:bool = eq %x_48, %x_50
if %34 [t: $B3, f: $B4] { # if_1
$B3: { # true
%35:ptr<uniform, f32, read> = access %x_8, 0u, 1i, 0u
%36:f32 = load %35
%x_56:f32 = let %36
%38:ptr<uniform, f32, read> = access %x_8, 0u, 0i, 0u
%39:f32 = load %38
%x_58:f32 = let %39
%41:ptr<uniform, f32, read> = access %x_8, 0u, 0i, 0u
%42:f32 = load %41
%x_60:f32 = let %42
%44:ptr<uniform, f32, read> = access %x_8, 0u, 1i, 0u
%45:f32 = load %44
%x_62:f32 = let %45
%47:vec4<f32> = construct %x_56, %x_58, %x_60, %x_62
store %x_GLF_color, %47
exit_if # if_1
}
$B4: { # false
%48:ptr<uniform, f32, read> = access %x_8, 0u, 0i, 0u
%49:f32 = load %48
%x_65:f32 = let %49
%51:vec4<f32> = construct %x_65, %x_65, %x_65, %x_65
store %x_GLF_color, %51
exit_if # if_1
}
}
ret
}
}
%tint_symbol = @fragment func():main_out {
$B5: {
%53:void = call %main_1
%54:vec4<f32> = load %x_GLF_color
%55:main_out = construct %54
ret %55
}
}
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. *
********************************************************************