| SKIP: FAILED |
| |
| ../../src/tint/lang/msl/writer/printer/printer.cc:500 internal compiler error: buf0 = struct @align(4) { |
| one:i32 @offset(0) |
| } |
| |
| main_out = struct @align(16) { |
| x_GLF_color_1:vec4<f32> @offset(0), @location(0) |
| } |
| |
| $B1: { # root |
| %x_8: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, array<i32, 3>, read_write> = var |
| %b:ptr<function, i32, read_write> = var |
| %c:ptr<function, i32, read_write> = var |
| %7:ptr<function, i32, read_write> = access %a, 0i |
| store %7, 1i |
| %8:ptr<function, i32, read_write> = access %a, 1i |
| store %8, 2i |
| %9:ptr<function, i32, read_write> = access %a, 2i |
| store %9, 3i |
| store %b, 0i |
| %10:ptr<uniform, i32, read> = access %x_8, 0u |
| %11:i32 = load %10 |
| %12:ptr<function, i32, read_write> = access %a, %11 |
| %13:i32 = load %12 |
| store %c, %13 |
| %14:i32 = load %c |
| %15:bool = gt %14, 1i |
| if %15 [t: $B3] { # if_1 |
| $B3: { # true |
| store %x_GLF_color, vec4<f32>(0.0f, 1.0f, 1.0f, 0.0f) |
| %16:i32 = load %b |
| %17:i32 = add %16, 1i |
| store %b, %17 |
| exit_if # if_1 |
| } |
| } |
| %18:i32 = load %b |
| %19:i32 = add %18, 1i |
| %x_48:i32 = let %19 |
| store %b, %x_48 |
| %21:i32 = max %x_48, 0i |
| %22:i32 = min %21, 2i |
| %x_50_save:i32 = let %22 |
| %24:ptr<function, i32, read_write> = access %a, %x_50_save |
| %25:ptr<function, i32, read_write> = access %a, %x_50_save |
| %26:i32 = load %25 |
| %27:i32 = add %26, 1i |
| store %24, %27 |
| %28:ptr<function, i32, read_write> = access %a, 2i |
| %29:i32 = load %28 |
| %30:bool = eq %29, 4i |
| if %30 [t: $B4, f: $B5] { # if_2 |
| $B4: { # true |
| store %x_GLF_color, vec4<f32>(1.0f, 0.0f, 0.0f, 1.0f) |
| exit_if # if_2 |
| } |
| $B5: { # false |
| store %x_GLF_color, vec4<f32>(0.0f) |
| exit_if # if_2 |
| } |
| } |
| ret |
| } |
| } |
| %tint_symbol = @fragment func():main_out { |
| $B6: { |
| %32:void = call %main_1 |
| %33:vec4<f32> = load %x_GLF_color |
| %34:main_out = construct %33 |
| ret %34 |
| } |
| } |
| |
| 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. * |
| ******************************************************************** |