| SKIP: FAILED |
| |
| <dawn>/src/tint/lang/msl/writer/printer/printer.cc:355 internal compiler error: struct_base = struct @align(4) { |
| data:i32 @offset(0) |
| leftIndex:i32 @offset(4) |
| rightIndex:i32 @offset(8) |
| } |
| |
| buf0 = struct @align(8) { |
| injectionSwitch:vec2<f32> @offset(0) |
| } |
| |
| main_out = struct @align(16) { |
| x_GLF_color_1:vec4<f32> @offset(0), @location(0) |
| } |
| |
| %b1 = block { # root |
| %struct_array:ptr<private, array<struct_base, 3>, read_write> = var |
| %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 { |
| %b2 = block { |
| %index:ptr<function, i32, read_write> = var |
| store %struct_array, array<struct_base, 3>(struct_base(1i)) |
| store %index, 1i |
| %6:ptr<private, i32, read_write> = access %struct_array, 1i, 2u |
| store %6, 1i |
| %7:ptr<private, i32, read_write> = access %struct_array, 1i, 1u |
| %8:i32 = load %7 |
| %9:bool = eq %8, 1i |
| if %9 [t: %b3, f: %b4] { # if_1 |
| %b3 = block { # true |
| %10:ptr<uniform, vec2<f32>, read> = access %x_8, 0u |
| %11:f32 = load_vector_element %10, 0u |
| %12:i32 = convert %11 |
| %13:ptr<private, i32, read_write> = access %struct_array, %12, 2u |
| %14:i32 = load %13 |
| store %index, %14 |
| exit_if # if_1 |
| } |
| %b4 = block { # false |
| %15:ptr<uniform, vec2<f32>, read> = access %x_8, 0u |
| %16:f32 = load_vector_element %15, 1u |
| %17:i32 = convert %16 |
| %18:ptr<private, i32, read_write> = access %struct_array, %17, 1u |
| %19:i32 = load %18 |
| store %index, %19 |
| exit_if # if_1 |
| } |
| } |
| %20:ptr<private, i32, read_write> = access %struct_array, 1i, 1u |
| %21:i32 = load %20 |
| %22:bool = eq %21, 1i |
| if %22 [t: %b5, f: %b6] { # if_2 |
| %b5 = block { # true |
| store %x_GLF_color, vec4<f32>(1.0f, 0.0f, 0.0f, 1.0f) |
| exit_if # if_2 |
| } |
| %b6 = block { # false |
| store %x_GLF_color, vec4<f32>(1.0f) |
| exit_if # if_2 |
| } |
| } |
| ret |
| } |
| } |
| %tint_symbol = @fragment func():main_out -> %b7 { |
| %b7 = block { |
| %24:void = call %main_1 |
| %25:vec4<f32> = load %x_GLF_color |
| %26:main_out = construct %25 |
| ret %26 |
| } |
| } |
| |
| 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. * |
| ******************************************************************** |