| SKIP: FAILED |
| |
| ../../src/tint/lang/msl/writer/printer/printer.cc:500 internal compiler error: buf0 = struct @align(8) { |
| resolution:vec2<f32> @offset(0) |
| } |
| |
| main_out = struct @align(16) { |
| x_GLF_color_1:vec4<f32> @offset(0), @location(0) |
| } |
| |
| $B1: { # root |
| %gl_FragCoord:ptr<private, vec4<f32>, read_write> = var |
| %x_6:ptr<uniform, buf0, read> = var @binding_point(0, 0) |
| %x_GLF_color:ptr<private, vec4<f32>, read_write> = var |
| } |
| |
| %main_1 = func():void { |
| $B2: { |
| %x_81:ptr<function, array<vec4<f32>, 8>, read_write> = var, array<vec4<f32>, 8>(vec4<f32>(0.0f)) |
| %x_82:ptr<function, array<vec4<f32>, 8>, read_write> = var |
| %x_83:ptr<function, array<vec4<f32>, 8>, read_write> = var |
| %x_84:ptr<function, array<vec4<f32>, 8>, read_write> = var |
| %x_85:ptr<function, array<vec4<f32>, 16>, read_write> = var |
| %x_95:ptr<function, vec4<f32>, read_write> = var |
| %x_95_phi:ptr<function, vec4<f32>, read_write> = var |
| %x_98_phi:ptr<function, i32, read_write> = var |
| store %x_81, array<vec4<f32>, 8>(vec4<f32>(4.0f, 4.0f, 20.0f, 4.0f), vec4<f32>(4.0f, 4.0f, 4.0f, 20.0f), vec4<f32>(4.0f, 20.0f, 20.0f, 4.0f), vec4<f32>(20.0f, 4.0f, 4.0f, 8.0f), vec4<f32>(8.0f, 6.0f, 4.0f, 2.0f), vec4<f32>(2.0f, 12.0f, 2.0f, 4.0f), vec4<f32>(16.0f, 2.0f, 4.0f, 4.0f), vec4<f32>(12.0f, 22.0f, 4.0f, 4.0f)) |
| %13:array<vec4<f32>, 8> = load %x_81 |
| %x_86:array<vec4<f32>, 8> = let %13 |
| %15:vec4<f32> = load %gl_FragCoord |
| %x_87:vec4<f32> = let %15 |
| %17:ptr<uniform, vec2<f32>, read> = access %x_6, 0u |
| %18:vec2<f32> = load %17 |
| %x_90:vec2<f32> = let %18 |
| %20:f32 = access %x_87, 0u |
| %21:f32 = access %x_87, 1u |
| %22:vec2<f32> = construct %20, %21 |
| %23:vec2<f32> = div %22, %x_90 |
| %24:vec2<f32> = mul %23, 32.0f |
| %25:vec2<f32> = floor %24 |
| %x_93:vec2<f32> = let %25 |
| store %x_95_phi, vec4<f32>(0.5f, 0.5f, 1.0f, 1.0f) |
| store %x_98_phi, 0i |
| loop [b: $B3, c: $B4] { # loop_1 |
| $B3: { # body |
| %x_142:ptr<function, vec4<f32>, read_write> = var |
| %x_99:ptr<function, i32, read_write> = var |
| %x_127_phi:ptr<function, bool, read_write> = var |
| %x_96_phi:ptr<function, vec4<f32>, read_write> = var |
| %31:vec4<f32> = load %x_95_phi |
| store %x_95, %31 |
| %32:i32 = load %x_98_phi |
| %x_98:i32 = let %32 |
| %34:bool = lt %x_98, 8i |
| if %34 [t: $B5, f: $B6] { # if_1 |
| $B5: { # true |
| exit_if # if_1 |
| } |
| $B6: { # false |
| exit_loop # loop_1 |
| } |
| } |
| %x_104:ptr<function, vec4<f32>, read_write> = var |
| store %x_82, %x_86 |
| %36:ptr<function, vec4<f32>, read_write> = access %x_82, %x_98 |
| %37:vec4<f32> = load %36 |
| store %x_104, %37 |
| switch 0u [c: (default, $B7)] { # switch_1 |
| $B7: { # case |
| %38:f32 = access %x_93, 0u |
| %x_107:f32 = let %38 |
| %40:f32 = load_vector_element %x_104, 0u |
| %x_108:f32 = let %40 |
| %42:bool = lt %x_107, %x_108 |
| if %42 [t: $B8] { # if_2 |
| $B8: { # true |
| store %x_127_phi, false |
| exit_switch # switch_1 |
| } |
| } |
| %43:f32 = access %x_93, 1u |
| %x_112:f32 = let %43 |
| %45:f32 = load_vector_element %x_104, 1u |
| %x_113:f32 = let %45 |
| %47:bool = lt %x_112, %x_113 |
| if %47 [t: $B9] { # if_3 |
| $B9: { # true |
| store %x_127_phi, false |
| exit_switch # switch_1 |
| } |
| } |
| %48:f32 = load_vector_element %x_104, 2u |
| %49:f32 = add %x_108, %48 |
| %50:bool = gt %x_107, %49 |
| if %50 [t: $B10] { # if_4 |
| $B10: { # true |
| store %x_127_phi, false |
| exit_switch # switch_1 |
| } |
| } |
| %51:f32 = load_vector_element %x_104, 3u |
| %52:f32 = add %x_113, %51 |
| %53:bool = gt %x_112, %52 |
| if %53 [t: $B11] { # if_5 |
| $B11: { # true |
| store %x_127_phi, false |
| exit_switch # switch_1 |
| } |
| } |
| store %x_127_phi, true |
| exit_switch # switch_1 |
| } |
| } |
| %54:bool = load %x_127_phi |
| %x_127:bool = let %54 |
| %56:vec4<f32> = load %x_95 |
| store %x_96_phi, %56 |
| if %x_127 [t: $B12] { # if_6 |
| $B12: { # true |
| store %x_83, array<vec4<f32>, 8>(vec4<f32>(4.0f, 4.0f, 20.0f, 4.0f), vec4<f32>(4.0f, 4.0f, 4.0f, 20.0f), vec4<f32>(4.0f, 20.0f, 20.0f, 4.0f), vec4<f32>(20.0f, 4.0f, 4.0f, 8.0f), vec4<f32>(8.0f, 6.0f, 4.0f, 2.0f), vec4<f32>(2.0f, 12.0f, 2.0f, 4.0f), vec4<f32>(16.0f, 2.0f, 4.0f, 4.0f), vec4<f32>(12.0f, 22.0f, 4.0f, 4.0f)) |
| %57:ptr<function, vec4<f32>, read_write> = access %x_83, %x_98 |
| %58:f32 = load_vector_element %57, 0u |
| %x_131:f32 = let %58 |
| store %x_84, array<vec4<f32>, 8>(vec4<f32>(4.0f, 4.0f, 20.0f, 4.0f), vec4<f32>(4.0f, 4.0f, 4.0f, 20.0f), vec4<f32>(4.0f, 20.0f, 20.0f, 4.0f), vec4<f32>(20.0f, 4.0f, 4.0f, 8.0f), vec4<f32>(8.0f, 6.0f, 4.0f, 2.0f), vec4<f32>(2.0f, 12.0f, 2.0f, 4.0f), vec4<f32>(16.0f, 2.0f, 4.0f, 4.0f), vec4<f32>(12.0f, 22.0f, 4.0f, 4.0f)) |
| %60:ptr<function, vec4<f32>, read_write> = access %x_84, %x_98 |
| %61:f32 = load_vector_element %60, 1u |
| %x_134:f32 = let %61 |
| store %x_85, array<vec4<f32>, 16>(vec4<f32>(0.0f, 0.0f, 0.0f, 1.0f), vec4<f32>(0.5f, 0.0f, 0.0f, 1.0f), vec4<f32>(0.0f, 0.5f, 0.0f, 1.0f), vec4<f32>(0.5f, 0.5f, 0.0f, 1.0f), vec4<f32>(0.0f, 0.0f, 0.5f, 1.0f), vec4<f32>(0.5f, 0.0f, 0.5f, 1.0f), vec4<f32>(0.0f, 0.5f, 0.5f, 1.0f), vec4<f32>(0.5f, 0.5f, 0.5f, 1.0f), vec4<f32>(0.0f, 0.0f, 0.0f, 1.0f), vec4<f32>(1.0f, 0.0f, 0.0f, 1.0f), vec4<f32>(0.0f, 1.0f, 0.0f, 1.0f), vec4<f32>(1.0f, 1.0f, 0.0f, 1.0f), vec4<f32>(0.0f, 0.0f, 1.0f, 1.0f), vec4<f32>(1.0f, 0.0f, 1.0f, 1.0f), vec4<f32>(0.0f, 1.0f, 1.0f, 1.0f), vec4<f32>(1.0f)) |
| %63:i32 = call %tint_f32_to_i32, %x_131 |
| %65:i32 = let %63 |
| %66:i32 = call %tint_f32_to_i32, %x_134 |
| %67:i32 = mul %65, %66 |
| %68:i32 = mul %x_98, 9i |
| %69:i32 = add %67, %68 |
| %70:i32 = add %69, 11i |
| %71:i32 = call %tint_mod_i32, %70, 16i |
| %73:ptr<function, vec4<f32>, read_write> = access %x_85, %71 |
| %74:vec4<f32> = load %73 |
| store %x_142, %74 |
| %75:vec4<f32> = load %x_142 |
| store %x_96_phi, %75 |
| exit_if # if_6 |
| } |
| } |
| %76:vec4<f32> = load %x_96_phi |
| %x_96:vec4<f32> = let %76 |
| continue # -> $B4 |
| } |
| $B4: { # continuing |
| %78:i32 = add %x_98, 1i |
| store %x_99, %78 |
| store %x_95_phi, %x_96 |
| %79:i32 = load %x_99 |
| store %x_98_phi, %79 |
| next_iteration # -> $B3 |
| } |
| } |
| %80:vec4<f32> = load %x_95 |
| store %x_GLF_color, %80 |
| ret |
| } |
| } |
| %tint_symbol = @fragment func(%gl_FragCoord_param:vec4<f32> [@position]):main_out { |
| $B13: { |
| store %gl_FragCoord, %gl_FragCoord_param |
| %83:void = call %main_1 |
| %84:vec4<f32> = load %x_GLF_color |
| %85:main_out = construct %84 |
| ret %85 |
| } |
| } |
| %tint_mod_i32 = func(%lhs:i32, %rhs:i32):i32 { |
| $B14: { |
| %88:bool = eq %rhs, 0i |
| %89:bool = eq %lhs, -2147483648i |
| %90:bool = eq %rhs, -1i |
| %91:bool = and %89, %90 |
| %92:bool = or %88, %91 |
| %93:i32 = select %rhs, 1i, %92 |
| %94:i32 = let %93 |
| %95:i32 = div %lhs, %94 |
| %96:i32 = mul %95, %94 |
| %97:i32 = sub %lhs, %96 |
| ret %97 |
| } |
| } |
| %tint_f32_to_i32 = func(%value:f32):i32 { |
| $B15: { |
| %99:i32 = convert %value |
| %100:bool = gte %value, -2147483648.0f |
| %101:i32 = select -2147483648i, %99, %100 |
| %102:bool = lte %value, 2147483520.0f |
| %103:i32 = select 2147483647i, %101, %102 |
| ret %103 |
| } |
| } |
| |
| 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. * |
| ******************************************************************** |