blob: 24f28beee7768956914a5025256edd7f1e1b0c7a [file] [log] [blame]
SKIP: FAILED
<dawn>/src/tint/lang/msl/writer/printer/printer.cc:355 internal compiler error: strided_arr = struct @align(4) {
el:f32 @offset(0)
}
buf0 = struct @align(4) {
x_GLF_uniform_float_values:array<strided_arr, 3> @offset(0)
}
strided_arr_1 = struct @align(4) {
el:i32 @offset(0)
}
buf1 = struct @align(4) {
x_GLF_uniform_int_values:array<strided_arr_1, 3> @offset(0)
}
main_out = struct @align(16) {
x_GLF_color_1:vec4<f32> @offset(0), @location(0)
}
%b1 = block { # root
%x_6:ptr<uniform, buf0, read> = var @binding_point(0, 0)
%x_10:ptr<uniform, buf1, read> = var @binding_point(0, 1)
%x_GLF_color:ptr<private, vec4<f32>, read_write> = var
}
%main_1 = func():void -> %b2 {
%b2 = block {
%f0:ptr<function, f32, read_write> = var
%f1:ptr<function, f32, read_write> = var
%i:ptr<function, i32, read_write> = var
%x_63:ptr<function, bool, read_write> = var
%x_64_phi:ptr<function, bool, read_write> = var
%10:ptr<uniform, f32, read> = access %x_6, 0u, 0i, 0u
%x_34:f32 = load %10
store %f0, %x_34
%12:ptr<uniform, f32, read> = access %x_6, 0u, 0i, 0u
%x_36:f32 = load %12
store %f1, %x_36
%14:ptr<uniform, i32, read> = access %x_10, 0u, 1i, 0u
%x_38:i32 = load %14
store %i, %x_38
loop [b: %b3, c: %b4] { # loop_1
%b3 = block { # body
%x_43:i32 = load %i
%17:ptr<uniform, i32, read> = access %x_10, 0u, 0i, 0u
%x_45:i32 = load %17
%19:bool = lt %x_43, %x_45
if %19 [t: %b5, f: %b6] { # if_1
%b5 = block { # true
exit_if # if_1
}
%b6 = block { # false
exit_loop # loop_1
}
}
%x_48:f32 = load %f0
%21:f32 = mul 1.10000002384185791016f, %x_48
%22:f32 = abs %21
store %f0, %22
%x_51:f32 = load %f0
store %f1, %x_51
continue %b4
}
%b4 = block { # continuing
%x_52:i32 = load %i
%25:i32 = add %x_52, 1i
store %i, %25
next_iteration %b3
}
}
%x_54:f32 = load %f1
%27:ptr<uniform, f32, read> = access %x_6, 0u, 1i, 0u
%x_56:f32 = load %27
%x_57:bool = gt %x_54, %x_56
store %x_64_phi, %x_57
if %x_57 [t: %b7] { # if_2
%b7 = block { # true
%x_60:f32 = load %f1
%31:ptr<uniform, f32, read> = access %x_6, 0u, 2i, 0u
%x_62:f32 = load %31
%33:bool = lt %x_60, %x_62
store %x_63, %33
%34:bool = load %x_63
store %x_64_phi, %34
exit_if # if_2
}
}
%x_64:bool = load %x_64_phi
if %x_64 [t: %b8, f: %b9] { # if_3
%b8 = block { # true
%36:ptr<uniform, i32, read> = access %x_10, 0u, 2i, 0u
%x_69:i32 = load %36
%38:ptr<uniform, i32, read> = access %x_10, 0u, 1i, 0u
%x_72:i32 = load %38
%40:ptr<uniform, i32, read> = access %x_10, 0u, 1i, 0u
%x_75:i32 = load %40
%42:ptr<uniform, i32, read> = access %x_10, 0u, 2i, 0u
%x_78:i32 = load %42
%44:f32 = convert %x_69
%45:f32 = convert %x_72
%46:f32 = convert %x_75
%47:f32 = convert %x_78
%48:vec4<f32> = construct %44, %45, %46, %47
store %x_GLF_color, %48
exit_if # if_3
}
%b9 = block { # false
%49:ptr<uniform, i32, read> = access %x_10, 0u, 1i, 0u
%x_82:i32 = load %49
%x_83:f32 = convert %x_82
%52:vec4<f32> = construct %x_83, %x_83, %x_83, %x_83
store %x_GLF_color, %52
exit_if # if_3
}
}
ret
}
}
%tint_symbol = @fragment func():main_out -> %b10 {
%b10 = block {
%54:void = call %main_1
%55:vec4<f32> = load %x_GLF_color
%56:main_out = construct %55
ret %56
}
}
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. *
********************************************************************