| SKIP: FAILED |
| |
| <dawn>/src/tint/lang/msl/writer/printer/printer.cc:355 internal compiler error: strided_arr = struct @align(4) { |
| el:i32 @offset(0) |
| } |
| |
| buf1 = struct @align(4) { |
| x_GLF_uniform_int_values:array<strided_arr, 3> @offset(0) |
| } |
| |
| strided_arr_1 = struct @align(4) { |
| el:f32 @offset(0) |
| } |
| |
| buf0 = struct @align(4) { |
| x_GLF_uniform_float_values:array<strided_arr_1, 1> @offset(0) |
| } |
| |
| main_out = struct @align(16) { |
| x_GLF_color_1:vec4<f32> @offset(0), @location(0) |
| } |
| |
| %b1 = block { # root |
| %x_7:ptr<uniform, buf1, read> = var @binding_point(0, 1) |
| %gl_FragCoord:ptr<private, vec4<f32>, read_write> = var |
| %x_11: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 { |
| %i:ptr<function, i32, read_write> = var |
| %arr:ptr<function, array<i32, 2>, read_write> = var |
| %a:ptr<function, i32, read_write> = var |
| %9:ptr<uniform, i32, read> = access %x_7, 0u, 0i, 0u |
| %10:i32 = load %9 |
| store %i, %10 |
| loop [b: %b3, c: %b4] { # loop_1 |
| %b3 = block { # body |
| %11:i32 = load %i |
| %12:ptr<uniform, i32, read> = access %x_7, 0u, 2i, 0u |
| %13:i32 = load %12 |
| %14:bool = lt %11, %13 |
| if %14 [t: %b5, f: %b6] { # if_1 |
| %b5 = block { # true |
| exit_if # if_1 |
| } |
| %b6 = block { # false |
| exit_loop # loop_1 |
| } |
| } |
| %x_50:i32 = load %i |
| %16:ptr<function, i32, read_write> = access %arr, %x_50 |
| %17:ptr<uniform, i32, read> = access %x_7, 0u, 0i, 0u |
| %18:i32 = load %17 |
| store %16, %18 |
| continue %b4 |
| } |
| %b4 = block { # continuing |
| %19:i32 = load %i |
| %20:i32 = add %19, 1i |
| store %i, %20 |
| next_iteration %b3 |
| } |
| } |
| store %a, -1i |
| %21:f32 = load_vector_element %gl_FragCoord, 1u |
| %22:ptr<uniform, f32, read> = access %x_11, 0u, 0i, 0u |
| %23:f32 = load %22 |
| %24:bool = lt %21, %23 |
| %25:bool = eq %24, false |
| if %25 [t: %b7] { # if_2 |
| %b7 = block { # true |
| %26:i32 = load %a |
| %x_65:i32 = add %26, 1i |
| store %a, %x_65 |
| %28:ptr<function, i32, read_write> = access %arr, %x_65 |
| %29:ptr<uniform, i32, read> = access %x_7, 0u, 1i, 0u |
| %30:i32 = load %29 |
| store %28, %30 |
| exit_if # if_2 |
| } |
| } |
| %31:i32 = load %a |
| %x_70:i32 = add %31, 1i |
| store %a, %x_70 |
| %33:ptr<function, i32, read_write> = access %arr, %x_70 |
| %34:ptr<uniform, i32, read> = access %x_7, 0u, 2i, 0u |
| %35:i32 = load %34 |
| store %33, %35 |
| %36:ptr<uniform, i32, read> = access %x_7, 0u, 0i, 0u |
| %37:i32 = load %36 |
| %38:ptr<function, i32, read_write> = access %arr, %37 |
| %39:i32 = load %38 |
| %40:ptr<uniform, i32, read> = access %x_7, 0u, 1i, 0u |
| %41:i32 = load %40 |
| %42:bool = eq %39, %41 |
| if %42 [t: %b8, f: %b9] { # if_3 |
| %b8 = block { # true |
| %43:i32 = load %a |
| %44:f32 = convert %43 |
| %45:ptr<uniform, i32, read> = access %x_7, 0u, 0i, 0u |
| %46:i32 = load %45 |
| %47:f32 = convert %46 |
| %48:ptr<uniform, i32, read> = access %x_7, 0u, 0i, 0u |
| %49:i32 = load %48 |
| %50:f32 = convert %49 |
| %51:i32 = load %a |
| %52:f32 = convert %51 |
| %53:vec4<f32> = construct %44, %47, %50, %52 |
| store %x_GLF_color, %53 |
| exit_if # if_3 |
| } |
| %b9 = block { # false |
| %54:ptr<uniform, i32, read> = access %x_7, 0u, 0i, 0u |
| %55:i32 = load %54 |
| %56:f32 = convert %55 |
| %57:vec4<f32> = construct %56 |
| store %x_GLF_color, %57 |
| exit_if # if_3 |
| } |
| } |
| ret |
| } |
| } |
| %tint_symbol = @fragment func(%gl_FragCoord_param:vec4<f32> [@position]):main_out -> %b10 { |
| %b10 = block { |
| store %gl_FragCoord, %gl_FragCoord_param |
| %60:void = call %main_1 |
| %61:vec4<f32> = load %x_GLF_color |
| %62:main_out = construct %61 |
| ret %62 |
| } |
| } |
| |
| 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. * |
| ******************************************************************** |