| SKIP: FAILED |
| |
| <dawn>/src/tint/lang/msl/writer/printer/printer.cc:355 internal compiler error: buf0 = struct @align(4) { |
| zero:i32 @offset(0) |
| } |
| |
| main_out = struct @align(16) { |
| x_GLF_color_1:vec4<f32> @offset(0), @location(0) |
| } |
| |
| %b1 = block { # root |
| %x_6:ptr<uniform, buf0, read> = var @binding_point(0, 0) |
| %x_GLF_color:ptr<private, vec4<f32>, read_write> = var |
| } |
| |
| %returnRed_ = func():vec4<f32> -> %b2 { |
| %b2 = block { |
| %x_33:ptr<function, bool, read_write> = var, false |
| %x_34:ptr<function, vec4<f32>, read_write> = var |
| %x_48:ptr<function, vec4<f32>, read_write> = var |
| %x_51:ptr<function, vec4<f32>, read_write> = var |
| loop [b: %b3, c: %b4] { # loop_1 |
| %b3 = block { # body |
| %x_49:ptr<function, bool, read_write> = var |
| loop [b: %b5, c: %b6] { # loop_2 |
| %b5 = block { # body |
| %9:ptr<uniform, i32, read> = access %x_6, 0u |
| %10:i32 = load %9 |
| %11:bool = eq %10, 1i |
| if %11 [t: %b7] { # if_1 |
| %b7 = block { # true |
| store %x_33, true |
| store %x_34, vec4<f32>(1.0f, 0.0f, 0.0f, 1.0f) |
| store %x_48, vec4<f32>(1.0f, 0.0f, 0.0f, 1.0f) |
| store %x_49, true |
| exit_loop # loop_2 |
| } |
| } |
| continue %b6 |
| } |
| %b6 = block { # continuing |
| store %x_48, vec4<f32>(0.0f) |
| store %x_49, false |
| break_if true %b5 |
| } |
| } |
| %12:vec4<f32> = load %x_48 |
| store %x_51, %12 |
| %13:bool = load %x_49 |
| if %13 [t: %b8] { # if_2 |
| %b8 = block { # true |
| exit_loop # loop_1 |
| } |
| } |
| store %x_33, true |
| store %x_34, vec4<f32>(1.0f, 0.0f, 0.0f, 1.0f) |
| store %x_51, vec4<f32>(1.0f, 0.0f, 0.0f, 1.0f) |
| exit_loop # loop_1 |
| } |
| %b4 = block { # continuing |
| next_iteration %b3 |
| } |
| } |
| %14:vec4<f32> = load %x_51 |
| ret %14 |
| } |
| } |
| %main_1 = func():void -> %b9 { |
| %b9 = block { |
| loop [b: %b10, c: %b11] { # loop_3 |
| %b10 = block { # body |
| %x_30:vec4<f32> = call %returnRed_ |
| store %x_GLF_color, %x_30 |
| if false [t: %b12, f: %b13] { # if_3 |
| %b12 = block { # true |
| exit_if # if_3 |
| } |
| %b13 = block { # false |
| exit_loop # loop_3 |
| } |
| } |
| continue %b11 |
| } |
| %b11 = block { # continuing |
| next_iteration %b10 |
| } |
| } |
| ret |
| } |
| } |
| %tint_symbol = @fragment func():main_out -> %b14 { |
| %b14 = block { |
| %18:void = call %main_1 |
| %19:vec4<f32> = load %x_GLF_color |
| %20:main_out = construct %19 |
| ret %20 |
| } |
| } |
| |
| 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. * |
| ******************************************************************** |