| SKIP: FAILED |
| |
| ../../src/tint/lang/msl/writer/printer/printer.cc:500 internal compiler error: 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: { # root |
| %x_5:ptr<uniform, buf0, read> = var @binding_point(0, 0) |
| %x_GLF_color:ptr<private, vec4<f32>, read_write> = var |
| %continue_execution:ptr<private, bool, read_write> = var, true |
| } |
| |
| %main_1 = func():void { |
| $B2: { |
| %5:ptr<uniform, vec2<f32>, read> = access %x_5, 0u |
| %6:f32 = load_vector_element %5, 1u |
| %x_25:f32 = let %6 |
| %8:i32 = call %tint_f32_to_i32, %x_25 |
| switch %8 [c: (-1i, $B3), c: (default, $B4)] { # switch_1 |
| $B3: { # case |
| %10:ptr<uniform, vec2<f32>, read> = access %x_5, 0u |
| %11:f32 = load_vector_element %10, 1u |
| %12:ptr<uniform, vec2<f32>, read> = access %x_5, 0u |
| %13:f32 = load_vector_element %12, 0u |
| %14:bool = gt %11, %13 |
| if %14 [t: $B5] { # if_1 |
| $B5: { # true |
| store %continue_execution, false |
| exit_if # if_1 |
| } |
| } |
| exit_switch # switch_1 |
| } |
| $B4: { # case |
| exit_switch # switch_1 |
| } |
| } |
| store %x_GLF_color, vec4<f32>(1.0f, 0.0f, 0.0f, 1.0f) |
| ret |
| } |
| } |
| %tint_symbol = @fragment func():main_out { |
| $B6: { |
| %16:void = call %main_1 |
| %17:vec4<f32> = load %x_GLF_color |
| %18:main_out = construct %17 |
| %19:bool = load %continue_execution |
| %20:bool = eq %19, false |
| if %20 [t: $B7] { # if_2 |
| $B7: { # true |
| terminate_invocation |
| } |
| } |
| ret %18 |
| } |
| } |
| %tint_f32_to_i32 = func(%value:f32):i32 { |
| $B8: { |
| %22:i32 = convert %value |
| %23:bool = gte %value, -2147483648.0f |
| %24:i32 = select -2147483648i, %22, %23 |
| %25:bool = lte %value, 2147483520.0f |
| %26:i32 = select 2147483647i, %24, %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. * |
| ******************************************************************** |