blob: e92aa186264c7fdcf9fd5d7ca6cc3f792980f2e7 [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)
}
strided_arr_1 = struct @align(4) {
el:i32 @offset(0)
}
buf1 = struct @align(4) {
x_GLF_uniform_int_values:array<strided_arr_1, 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_9:ptr<uniform, buf1, read> = var @binding_point(0, 1)
%x_GLF_color:ptr<private, vec4<f32>, read_write> = var
}
%main_1 = func():void {
$B2: {
%arr:ptr<function, array<f32, 5>, read_write> = var
%i:ptr<function, i32, read_write> = var
%j:ptr<function, i32, read_write> = var
%8:ptr<uniform, f32, read> = access %x_6, 0u, 0i, 0u
%9:f32 = load %8
%10:ptr<uniform, f32, read> = access %x_6, 0u, 0i, 0u
%11:f32 = load %10
%12:ptr<uniform, f32, read> = access %x_6, 0u, 0i, 0u
%13:f32 = load %12
%14:ptr<uniform, f32, read> = access %x_6, 0u, 0i, 0u
%15:f32 = load %14
%16:ptr<uniform, f32, read> = access %x_6, 0u, 0i, 0u
%17:f32 = load %16
%18:array<f32, 5> = construct %9, %11, %13, %15, %17
store %arr, %18
%19:ptr<uniform, i32, read> = access %x_9, 0u, 1i, 0u
%20:i32 = load %19
store %i, %20
store %j, 0i
loop [b: $B3, c: $B4] { # loop_1
$B3: { # body
%21:i32 = load %i
%22:ptr<uniform, i32, read> = access %x_9, 0u, 0i, 0u
%23:i32 = load %22
%24:bool = lt %21, %23
if %24 [t: $B5, f: $B6] { # if_1
$B5: { # true
exit_if # if_1
}
$B6: { # false
exit_loop # loop_1
}
}
%25:i32 = load %j
%26:bool = lt %25, -1i
if %26 [t: $B7] { # if_2
$B7: { # true
exit_loop # loop_1
}
}
%27:i32 = load %j
%x_63:i32 = let %27
%29:ptr<function, f32, read_write> = access %arr, %x_63
%30:i32 = load %j
%31:ptr<function, f32, read_write> = access %arr, %30
%32:f32 = load %31
%33:f32 = add %32, 1.0f
store %29, %33
continue # -> $B4
}
$B4: { # continuing
%34:i32 = load %i
%35:i32 = add %34, 1i
store %i, %35
%36:i32 = load %j
%37:i32 = add %36, 1i
store %j, %37
next_iteration # -> $B3
}
}
%38:ptr<uniform, f32, read> = access %x_6, 0u, 0i, 0u
%39:f32 = load %38
%40:ptr<uniform, f32, read> = access %x_6, 0u, 1i, 0u
%41:f32 = load %40
%42:ptr<uniform, f32, read> = access %x_6, 0u, 1i, 0u
%43:f32 = load %42
%44:ptr<uniform, f32, read> = access %x_6, 0u, 0i, 0u
%45:f32 = load %44
%46:vec4<f32> = construct %39, %41, %43, %45
store %x_GLF_color, %46
%47:ptr<uniform, i32, read> = access %x_9, 0u, 1i, 0u
%48:i32 = load %47
store %i, %48
loop [b: $B8, c: $B9] { # loop_2
$B8: { # body
%49:i32 = load %i
%50:ptr<uniform, i32, read> = access %x_9, 0u, 0i, 0u
%51:i32 = load %50
%52:bool = lt %49, %51
if %52 [t: $B10, f: $B11] { # if_3
$B10: { # true
exit_if # if_3
}
$B11: { # false
exit_loop # loop_2
}
}
%53:i32 = load %i
%54:ptr<function, f32, read_write> = access %arr, %53
%55:f32 = load %54
%56:bool = eq %55, 2.0f
%57:bool = eq %56, false
if %57 [t: $B12] { # if_4
$B12: { # true
%58:ptr<uniform, f32, read> = access %x_6, 0u, 1i, 0u
%59:f32 = load %58
%60:vec4<f32> = construct %59
store %x_GLF_color, %60
exit_if # if_4
}
}
continue # -> $B9
}
$B9: { # continuing
%61:i32 = load %i
%62:i32 = add %61, 1i
store %i, %62
next_iteration # -> $B8
}
}
ret
}
}
%tint_symbol = @fragment func():main_out {
$B13: {
%64:void = call %main_1
%65:vec4<f32> = load %x_GLF_color
%66:main_out = construct %65
ret %66
}
}
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. *
********************************************************************