| 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, 3> @offset(0) |
| } |
| |
| main_out = struct @align(16) { |
| x_GLF_color_1:vec4<f32> @offset(0), @location(0) |
| } |
| |
| %b1 = block { # root |
| %x_7: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 { |
| %arr:ptr<function, array<i32, 10>, read_write> = var |
| %a:ptr<function, i32, read_write> = var |
| %i:ptr<function, i32, read_write> = var |
| store %arr, array<i32, 10>(1i, 2i, 3i, 4i, 5i, 6i, 7i, 8i, 9i, 10i) |
| store %a, 0i |
| %7:ptr<uniform, i32, read> = access %x_7, 0u, 1i, 0u |
| %8:i32 = load %7 |
| %9:ptr<function, i32, read_write> = access %arr, %8 |
| %10:i32 = load %9 |
| %11:bool = eq %10, 2i |
| if %11 [t: %b3] { # if_1 |
| %b3 = block { # true |
| %12:ptr<uniform, i32, read> = access %x_7, 0u, 2i, 0u |
| %13:i32 = load %12 |
| store %i, %13 |
| loop [b: %b4, c: %b5] { # loop_1 |
| %b4 = block { # body |
| %14:i32 = load %i |
| %15:ptr<uniform, i32, read> = access %x_7, 0u, 0i, 0u |
| %16:i32 = load %15 |
| %17:bool = lt %14, %16 |
| if %17 [t: %b6, f: %b7] { # if_2 |
| %b6 = block { # true |
| exit_if # if_2 |
| } |
| %b7 = block { # false |
| exit_loop # loop_1 |
| } |
| } |
| continue %b5 |
| } |
| %b5 = block { # continuing |
| %18:i32 = load %i |
| %19:i32 = add %18, 1i |
| store %i, %19 |
| next_iteration %b4 |
| } |
| } |
| %20:i32 = load %a |
| %21:i32 = add %20, 1i |
| store %a, %21 |
| exit_if # if_1 |
| } |
| } |
| %22:i32 = load %a |
| %23:i32 = mod -1i, %22 |
| %24:ptr<uniform, i32, read> = access %x_7, 0u, 2i, 0u |
| %25:i32 = load %24 |
| %26:bool = eq %23, %25 |
| if %26 [t: %b8] { # if_3 |
| %b8 = block { # true |
| %27:ptr<uniform, i32, read> = access %x_7, 0u, 1i, 0u |
| %x_71:i32 = load %27 |
| %29:vec2<i32> = construct %x_71 |
| %30:i32 = access %29, 1u |
| %31:ptr<function, i32, read_write> = access %arr, %30 |
| %32:ptr<uniform, i32, read> = access %x_7, 0u, 2i, 0u |
| %33:i32 = load %32 |
| store %31, %33 |
| exit_if # if_3 |
| } |
| } |
| %34:ptr<uniform, i32, read> = access %x_7, 0u, 1i, 0u |
| %35:i32 = load %34 |
| %36:ptr<function, i32, read_write> = access %arr, %35 |
| %37:i32 = load %36 |
| %38:ptr<uniform, i32, read> = access %x_7, 0u, 2i, 0u |
| %39:i32 = load %38 |
| %40:bool = eq %37, %39 |
| if %40 [t: %b9, f: %b10] { # if_4 |
| %b9 = block { # true |
| %41:ptr<uniform, i32, read> = access %x_7, 0u, 1i, 0u |
| %42:i32 = load %41 |
| %43:f32 = convert %42 |
| %44:ptr<uniform, i32, read> = access %x_7, 0u, 2i, 0u |
| %45:i32 = load %44 |
| %46:f32 = convert %45 |
| %47:ptr<uniform, i32, read> = access %x_7, 0u, 2i, 0u |
| %48:i32 = load %47 |
| %49:f32 = convert %48 |
| %50:ptr<uniform, i32, read> = access %x_7, 0u, 1i, 0u |
| %51:i32 = load %50 |
| %52:f32 = convert %51 |
| %53:vec4<f32> = construct %43, %46, %49, %52 |
| store %x_GLF_color, %53 |
| exit_if # if_4 |
| } |
| %b10 = block { # false |
| %54:ptr<uniform, i32, read> = access %x_7, 0u, 2i, 0u |
| %55:i32 = load %54 |
| %56:f32 = convert %55 |
| %57:vec4<f32> = construct %56 |
| store %x_GLF_color, %57 |
| exit_if # if_4 |
| } |
| } |
| ret |
| } |
| } |
| %tint_symbol = @fragment func():main_out -> %b11 { |
| %b11 = block { |
| %59:void = call %main_1 |
| %60:vec4<f32> = load %x_GLF_color |
| %61:main_out = construct %60 |
| ret %61 |
| } |
| } |
| |
| 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. * |
| ******************************************************************** |