blob: 30d8867a89d1195d64182244294d1bb84825f160 [file] [log] [blame]
SKIP: FAILED
<dawn>/src/tint/lang/msl/writer/printer/printer.cc:355 internal compiler error: strided_arr = struct @align(4) {
el:i32 @offset(0)
}
buf0 = struct @align(4) {
x_GLF_uniform_int_values:array<strided_arr, 5> @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
}
%func_f1_ = func(%f:ptr<function, f32, read_write>):i32 -> %b2 {
%b2 = block {
%a:ptr<function, i32, read_write> = var
%b:ptr<function, i32, read_write> = var
%i:ptr<function, i32, read_write> = var
%8:ptr<uniform, i32, read> = access %x_8, 0u, 1i, 0u
%9:i32 = load %8
store %a, %9
%10:ptr<uniform, i32, read> = access %x_8, 0u, 2i, 0u
%11:i32 = load %10
store %b, %11
%12:ptr<uniform, i32, read> = access %x_8, 0u, 2i, 0u
%13:i32 = load %12
store %i, %13
loop [b: %b3, c: %b4] { # loop_1
%b3 = block { # body
%14:i32 = load %i
%15:ptr<uniform, i32, read> = access %x_8, 0u, 4i, 0u
%16:i32 = load %15
%17:bool = lt %14, %16
if %17 [t: %b5, f: %b6] { # if_1
%b5 = block { # true
exit_if # if_1
}
%b6 = block { # false
exit_loop # loop_1
}
}
%18:i32 = load %a
%19:ptr<uniform, i32, read> = access %x_8, 0u, 3i, 0u
%20:i32 = load %19
%21:bool = gt %18, %20
if %21 [t: %b7] { # if_2
%b7 = block { # true
exit_loop # loop_1
}
}
%22:f32 = load %f
%23:i32 = convert %22
%24:i32 = sub %23, 1i
%25:ptr<uniform, i32, read> = access %x_8, 0u, 1i, 0u
%26:i32 = load %25
%27:i32 = sub %24, %26
%28:i32 = load %i
%29:i32 = add %27, %28
store %a, %29
%30:i32 = load %b
%31:i32 = add %30, 1i
store %b, %31
continue %b4
}
%b4 = block { # continuing
%32:i32 = load %i
%33:i32 = add %32, 1i
store %i, %33
next_iteration %b3
}
}
%34:i32 = load %b
%35:ptr<uniform, i32, read> = access %x_8, 0u, 0i, 0u
%36:i32 = load %35
%37:bool = eq %34, %36
if %37 [t: %b8, f: %b9] { # if_3
%b8 = block { # true
%38:ptr<uniform, i32, read> = access %x_8, 0u, 1i, 0u
%x_100:i32 = load %38
ret %x_100
}
%b9 = block { # false
%40:ptr<uniform, i32, read> = access %x_8, 0u, 2i, 0u
%x_102:i32 = load %40
ret %x_102
}
}
unreachable
}
}
%main_1 = func():void -> %b10 {
%b10 = block {
%param:ptr<function, f32, read_write> = var
store %param, 0.69999998807907104492f
%x_34:i32 = call %func_f1_, %param
%45:ptr<uniform, i32, read> = access %x_8, 0u, 1i, 0u
%46:i32 = load %45
%47:bool = eq %x_34, %46
if %47 [t: %b11, f: %b12] { # if_4
%b11 = block { # true
%48:ptr<uniform, i32, read> = access %x_8, 0u, 1i, 0u
%49:i32 = load %48
%50:f32 = convert %49
%51:ptr<uniform, i32, read> = access %x_8, 0u, 2i, 0u
%52:i32 = load %51
%53:f32 = convert %52
%54:ptr<uniform, i32, read> = access %x_8, 0u, 2i, 0u
%55:i32 = load %54
%56:f32 = convert %55
%57:ptr<uniform, i32, read> = access %x_8, 0u, 1i, 0u
%58:i32 = load %57
%59:f32 = convert %58
%60:vec4<f32> = construct %50, %53, %56, %59
store %x_GLF_color, %60
exit_if # if_4
}
%b12 = block { # false
%61:ptr<uniform, i32, read> = access %x_8, 0u, 2i, 0u
%62:i32 = load %61
%63:f32 = convert %62
%64:vec4<f32> = construct %63
store %x_GLF_color, %64
exit_if # if_4
}
}
ret
}
}
%tint_symbol = @fragment func():main_out -> %b13 {
%b13 = block {
%66:void = call %main_1
%67:vec4<f32> = load %x_GLF_color
%68:main_out = construct %67
ret %68
}
}
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. *
********************************************************************