| SKIP: FAILED |
| |
| ../../src/tint/lang/msl/writer/printer/printer.cc:500 internal compiler error: strided_arr = struct @align(4) { |
| el:i32 @offset(0) |
| } |
| |
| buf0 = struct @align(4) { |
| x_GLF_uniform_int_values:array<strided_arr, 3> @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, i32, read_write> = var |
| %i:ptr<function, i32, read_write> = var |
| %6:ptr<uniform, i32, read> = access %x_6, 0u, 2i, 0u |
| %7:i32 = load %6 |
| store %a, %7 |
| %8:ptr<uniform, i32, read> = access %x_6, 0u, 2i, 0u |
| %9:i32 = load %8 |
| store %i, %9 |
| loop [b: $B3, c: $B4] { # loop_1 |
| $B3: { # body |
| %10:i32 = load %i |
| %11:ptr<uniform, i32, read> = access %x_6, 0u, 0i, 0u |
| %12:i32 = load %11 |
| %13:bool = lt %10, %12 |
| if %13 [t: $B5, f: $B6] { # if_1 |
| $B5: { # true |
| exit_if # if_1 |
| } |
| $B6: { # false |
| exit_loop # loop_1 |
| } |
| } |
| %14:i32 = load %i |
| %x_38:i32 = let %14 |
| switch %x_38 [c: (0i -1i, $B7), c: (default, $B8)] { # switch_1 |
| $B7: { # case |
| %16:ptr<uniform, i32, read> = access %x_6, 0u, 1i, 0u |
| %17:i32 = load %16 |
| store %a, %17 |
| exit_switch # switch_1 |
| } |
| $B8: { # case |
| exit_switch # switch_1 |
| } |
| } |
| continue # -> $B4 |
| } |
| $B4: { # continuing |
| %18:i32 = load %i |
| %19:i32 = add %18, 1i |
| store %i, %19 |
| next_iteration # -> $B3 |
| } |
| } |
| %20:i32 = load %a |
| %21:ptr<uniform, i32, read> = access %x_6, 0u, 1i, 0u |
| %22:i32 = load %21 |
| %23:bool = eq %20, %22 |
| if %23 [t: $B9, f: $B10] { # if_2 |
| $B9: { # true |
| %24:ptr<uniform, i32, read> = access %x_6, 0u, 1i, 0u |
| %25:i32 = load %24 |
| %26:f32 = convert %25 |
| %27:f32 = let %26 |
| %28:ptr<uniform, i32, read> = access %x_6, 0u, 2i, 0u |
| %29:i32 = load %28 |
| %30:f32 = convert %29 |
| %31:f32 = let %30 |
| %32:ptr<uniform, i32, read> = access %x_6, 0u, 2i, 0u |
| %33:i32 = load %32 |
| %34:f32 = convert %33 |
| %35:f32 = let %34 |
| %36:ptr<uniform, i32, read> = access %x_6, 0u, 1i, 0u |
| %37:i32 = load %36 |
| %38:f32 = convert %37 |
| %39:vec4<f32> = construct %27, %31, %35, %38 |
| store %x_GLF_color, %39 |
| exit_if # if_2 |
| } |
| $B10: { # false |
| %40:ptr<uniform, i32, read> = access %x_6, 0u, 2i, 0u |
| %41:i32 = load %40 |
| %42:f32 = convert %41 |
| %43:vec4<f32> = construct %42 |
| store %x_GLF_color, %43 |
| exit_if # if_2 |
| } |
| } |
| ret |
| } |
| } |
| %tint_symbol = @fragment func():main_out { |
| $B11: { |
| %45:void = call %main_1 |
| %46:vec4<f32> = load %x_GLF_color |
| %47:main_out = construct %46 |
| ret %47 |
| } |
| } |
| |
| 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. * |
| ******************************************************************** |