blob: 93bcf803873f88ca83f7ca0a07b0d8cb3d82e33b [file] [log] [blame]
SKIP: FAILED
<dawn>/src/tint/lang/msl/writer/printer/printer.cc:355 internal compiler error: buf0 = struct @align(4) {
one:i32 @offset(0)
}
main_out = struct @align(16) {
x_GLF_color_1:vec4<f32> @offset(0), @location(0)
}
%b1 = block { # root
%x_8:ptr<uniform, buf0, read> = var @binding_point(0, 0)
%x_GLF_color:ptr<private, vec4<f32>, read_write> = var
}
%main_1 = func():void -> %b2 {
%b2 = block {
%a:ptr<function, array<i32, 3>, read_write> = var
%b:ptr<function, i32, read_write> = var
%c:ptr<function, i32, read_write> = var
%7:ptr<function, i32, read_write> = access %a, 0i
store %7, 1i
%8:ptr<function, i32, read_write> = access %a, 1i
store %8, 2i
%9:ptr<function, i32, read_write> = access %a, 2i
store %9, 3i
store %b, 0i
%10:ptr<uniform, i32, read> = access %x_8, 0u
%x_38:i32 = load %10
%12:ptr<function, i32, read_write> = access %a, %x_38
%x_40:i32 = load %12
store %c, %x_40
%x_41:i32 = load %c
%15:bool = gt %x_41, 1i
if %15 [t: %b3] { # if_1
%b3 = block { # true
store %x_GLF_color, vec4<f32>(0.0f, 1.0f, 1.0f, 0.0f)
%x_45:i32 = load %b
%17:i32 = add %x_45, 1i
store %b, %17
exit_if # if_1
}
}
%x_47:i32 = load %b
%x_48:i32 = add %x_47, 1i
store %b, %x_48
%x_50_save:i32 = clamp %x_48, 0i, 2i
%21:ptr<function, i32, read_write> = access %a, %x_50_save
%x_51:i32 = load %21
%23:ptr<function, i32, read_write> = access %a, %x_50_save
%24:i32 = add %x_51, 1i
store %23, %24
%25:ptr<function, i32, read_write> = access %a, 2i
%x_54:i32 = load %25
%27:bool = eq %x_54, 4i
if %27 [t: %b4, f: %b5] { # if_2
%b4 = block { # true
store %x_GLF_color, vec4<f32>(1.0f, 0.0f, 0.0f, 1.0f)
exit_if # if_2
}
%b5 = block { # false
store %x_GLF_color, vec4<f32>(0.0f)
exit_if # if_2
}
}
ret
}
}
%tint_symbol = @fragment func():main_out -> %b6 {
%b6 = block {
%29:void = call %main_1
%30:vec4<f32> = load %x_GLF_color
%31:main_out = construct %30
ret %31
}
}
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. *
********************************************************************