blob: 49d293e2a22ab05ac4af13fec037405d2988d073 [file] [log] [blame]
SKIP: FAILED
../../src/tint/lang/msl/writer/printer/printer.cc:500 internal compiler error: strided_arr = struct @align(4) {
el:f32 @offset(0)
}
buf0 = struct @align(4) {
x_GLF_uniform_float_values:array<strided_arr, 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_GLF_color:ptr<private, vec4<f32>, read_write> = var
}
%main_1 = func():void {
$B2: {
%m0:ptr<function, mat2x2<f32>, read_write> = var
%m1:ptr<function, mat2x2<f32>, read_write> = var
%v:ptr<function, vec2<f32>, read_write> = var
%7:ptr<uniform, f32, read> = access %x_6, 0u, 0i, 0u
%8:f32 = load %7
%9:vec2<f32> = construct %8, -0.540302276611328125f
%10:vec2<f32> = let %9
%11:ptr<uniform, f32, read> = access %x_6, 0u, 0i, 0u
%12:f32 = load %11
%13:vec2<f32> = construct 0.540302276611328125f, %12
%14:mat2x2<f32> = construct %10, %13
store %m0, %14
%15:mat2x2<f32> = load %m0
%16:mat2x2<f32> = load %m0
%17:mat2x2<f32> = mul %15, %16
store %m1, %17
%18:ptr<uniform, f32, read> = access %x_6, 0u, 0i, 0u
%19:f32 = load %18
%20:vec2<f32> = construct %19
%21:mat2x2<f32> = load %m1
%22:vec2<f32> = mul %20, %21
store %v, %22
%23:f32 = load_vector_element %v, 0u
%24:ptr<uniform, f32, read> = access %x_6, 0u, 0i, 0u
%25:f32 = load %24
%26:bool = lt %23, %25
if %26 [t: $B3, f: $B4] { # if_1
$B3: { # true
%27:ptr<uniform, f32, read> = access %x_6, 0u, 0i, 0u
%28:f32 = load %27
%29:ptr<uniform, f32, read> = access %x_6, 0u, 1i, 0u
%30:f32 = load %29
%31:ptr<uniform, f32, read> = access %x_6, 0u, 1i, 0u
%32:f32 = load %31
%33:ptr<uniform, f32, read> = access %x_6, 0u, 0i, 0u
%34:f32 = load %33
%35:vec4<f32> = construct %28, %30, %32, %34
store %x_GLF_color, %35
exit_if # if_1
}
$B4: { # false
%36:ptr<uniform, f32, read> = access %x_6, 0u, 1i, 0u
%37:f32 = load %36
%38:vec4<f32> = construct %37
store %x_GLF_color, %38
exit_if # if_1
}
}
ret
}
}
%tint_symbol = @fragment func():main_out {
$B5: {
%40:void = call %main_1
%41:vec4<f32> = load %x_GLF_color
%42:main_out = construct %41
ret %42
}
}
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. *
********************************************************************