blob: 3e1850c06034b4ce462934fbf7f3efb5619e472b [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, 4> @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: {
%a:ptr<function, f32, read_write> = var
%5:ptr<uniform, f32, read> = access %x_6, 0u, 1i, 0u
%6:f32 = load %5
%x_30:f32 = let %6
store %a, %x_30
%8:ptr<uniform, f32, read> = access %x_6, 0u, 3i, 0u
%9:f32 = load %8
%x_32:f32 = let %9
%11:ptr<uniform, f32, read> = access %x_6, 0u, 0i, 0u
%12:f32 = load %11
%x_34:f32 = let %12
%14:bool = gt %x_32, %x_34
if %14 [t: $B3] { # if_1
$B3: { # true
%15:ptr<uniform, f32, read> = access %x_6, 0u, 0i, 0u
%16:f32 = load %15
%x_39:f32 = let %16
%18:f32 = load %a
%x_40:f32 = let %18
%20:f32 = add %x_40, %x_39
store %a, %20
%21:f32 = load %a
%x_42:f32 = let %21
%23:vec4<f32> = construct %x_42, %x_42, %x_42, %x_42
store %x_GLF_color, %23
%24:ptr<uniform, f32, read> = access %x_6, 0u, 3i, 0u
%25:f32 = load %24
%x_45:f32 = let %25
%27:ptr<uniform, f32, read> = access %x_6, 0u, 1i, 0u
%28:f32 = load %27
%x_47:f32 = let %28
%30:bool = gt %x_45, %x_47
if %30 [t: $B4] { # if_2
$B4: { # true
%31:f32 = load_vector_element %x_GLF_color, 0u
%x_52:f32 = let %31
%33:f32 = load %a
%x_53:f32 = let %33
%35:f32 = add %x_53, %x_52
store %a, %35
%36:ptr<uniform, f32, read> = access %x_6, 0u, 2i, 0u
%37:f32 = load %36
%x_56:f32 = let %37
%39:vec4<f32> = construct %x_56, %x_56, %x_56, %x_56
store %x_GLF_color, %39
exit_if # if_2
}
}
exit_if # if_1
}
}
%40:f32 = load %a
%x_58:f32 = let %40
%42:vec4<f32> = construct %x_58, 0.0f, 0.0f, 1.0f
store %x_GLF_color, %42
ret
}
}
%tint_symbol = @fragment func():main_out {
$B5: {
%44:void = call %main_1
%45:vec4<f32> = load %x_GLF_color
%46:main_out = construct %45
ret %46
}
}
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. *
********************************************************************