blob: cc0f6a9233b6ec3aea02a4e34ad16cd2a78605ee [file] [log] [blame]
SKIP: FAILED
<dawn>/src/tint/lang/msl/writer/printer/printer.cc:355 internal compiler error: strided_arr = struct @align(4) {
el:i32 @offset(0)
}
buf0 = struct @align(4) {
x_GLF_uniform_int_values:array<strided_arr, 3> @offset(0)
}
buf2 = struct @align(8) {
injectionSwitch:vec2<f32> @offset(0)
}
strided_arr_1 = struct @align(4) {
el:f32 @offset(0)
}
buf1 = 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_GLF_color:ptr<private, vec4<f32>, read_write> = var
%x_6:ptr<uniform, buf0, read> = var @binding_point(0, 0)
%x_9:ptr<uniform, buf2, read> = var @binding_point(0, 2)
%x_11:ptr<uniform, buf1, read> = var @binding_point(0, 1)
}
%main_1 = func():void -> %b2 {
%b2 = block {
%a:ptr<function, i32, read_write> = var
%i:ptr<function, i32, read_write> = var
store %a, 1i
%8:ptr<uniform, i32, read> = access %x_6, 0u, 0i, 0u
%x_38:i32 = load %8
%10:ptr<uniform, i32, read> = access %x_6, 0u, 1i, 0u
%x_41:i32 = load %10
%12:ptr<uniform, i32, read> = access %x_6, 0u, 1i, 0u
%x_44:i32 = load %12
%14:ptr<uniform, i32, read> = access %x_6, 0u, 0i, 0u
%x_47:i32 = load %14
%16:f32 = convert %x_38
%17:f32 = convert %x_41
%18:f32 = convert %x_44
%19:f32 = convert %x_47
%20:vec4<f32> = construct %16, %17, %18, %19
store %x_GLF_color, %20
%21:ptr<uniform, i32, read> = access %x_6, 0u, 1i, 0u
%x_51:i32 = load %21
store %i, %x_51
loop [b: %b3, c: %b4] { # loop_1
%b3 = block { # body
%x_56:i32 = load %i
%24:ptr<uniform, i32, read> = access %x_6, 0u, 2i, 0u
%x_58:i32 = load %24
%26:bool = lt %x_56, %x_58
if %26 [t: %b5, f: %b6] { # if_1
%b5 = block { # true
exit_if # if_1
}
%b6 = block { # false
exit_loop # loop_1
}
}
%x_61:i32 = load %a
%28:i32 = add %x_61, 1i
store %a, %28
%29:bool = gt %x_61, 3i
if %29 [t: %b7] { # if_2
%b7 = block { # true
exit_loop # loop_1
}
}
%30:ptr<uniform, vec2<f32>, read> = access %x_9, 0u
%x_67:f32 = load_vector_element %30, 0u
%32:ptr<uniform, f32, read> = access %x_11, 0u, 0i, 0u
%x_69:f32 = load %32
%34:bool = gt %x_67, %x_69
if %34 [t: %b8] { # if_3
%b8 = block { # true
discard
exit_if # if_3
}
}
continue %b4
}
%b4 = block { # continuing
%x_73:i32 = load %i
%36:i32 = add %x_73, 1i
store %i, %36
next_iteration %b3
}
}
ret
}
}
%tint_symbol = @fragment func():main_out -> %b9 {
%b9 = block {
%38:void = call %main_1
%39:vec4<f32> = load %x_GLF_color
%40:main_out = construct %39
ret %40
}
}
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. *
********************************************************************