blob: fa66a67bca623ecf9c5fe5549ea630474fd20cda [file] [log] [blame]
dan sinclairf1f381a2023-11-22 09:44:15 +00001SKIP: FAILED
2
3<dawn>/src/tint/lang/msl/writer/printer/printer.cc:355 internal compiler error: strided_arr = struct @align(4) {
4 el:i32 @offset(0)
5}
6
7buf0 = struct @align(4) {
8 x_GLF_uniform_int_values:array<strided_arr, 2> @offset(0)
9}
10
11main_out = struct @align(16) {
12 x_GLF_color_1:vec4<f32> @offset(0), @location(0)
13}
14
15%b1 = block { # root
16 %x_GLF_color:ptr<private, vec4<f32>, read_write> = var
17 %x_6:ptr<uniform, buf0, read> = var @binding_point(0, 0)
18}
19
20%main_1 = func():void -> %b2 {
21 %b2 = block {
22 %f:ptr<function, f32, read_write> = var
23 store %f, 142.6999969482421875f
24 %x_25:f32 = load %f
25 %6:i32 = convert %x_25
26 %7:f32 = convert %6
27 %8:bool = gt %7, 100.0f
28 if %8 [t: %b3, f: %b4] { # if_1
29 %b3 = block { # true
30 %9:ptr<uniform, i32, read> = access %x_6, 0u, 1i, 0u
31 %x_33:i32 = load %9
32 %11:ptr<uniform, i32, read> = access %x_6, 0u, 0i, 0u
33 %x_36:i32 = load %11
34 %13:ptr<uniform, i32, read> = access %x_6, 0u, 0i, 0u
35 %x_39:i32 = load %13
36 %15:ptr<uniform, i32, read> = access %x_6, 0u, 1i, 0u
37 %x_42:i32 = load %15
38 %17:f32 = convert %x_33
39 %18:f32 = convert %x_36
40 %19:f32 = convert %x_39
41 %20:f32 = convert %x_42
42 %21:vec4<f32> = construct %17, %18, %19, %20
43 store %x_GLF_color, %21
44 exit_if # if_1
45 }
46 %b4 = block { # false
47 %22:ptr<uniform, i32, read> = access %x_6, 0u, 0i, 0u
48 %x_46:i32 = load %22
49 %x_47:f32 = convert %x_46
50 %25:vec4<f32> = construct %x_47, %x_47, %x_47, %x_47
51 store %x_GLF_color, %25
52 exit_if # if_1
53 }
54 }
55 ret
56 }
57}
58%tint_symbol = @fragment func():main_out -> %b5 {
59 %b5 = block {
60 %27:void = call %main_1
61 %28:vec4<f32> = load %x_GLF_color
62 %29:main_out = construct %28
63 ret %29
64 }
65}
66
67unhandled variable address space
68********************************************************************
69* The tint shader compiler has encountered an unexpected error. *
70* *
71* Please help us fix this issue by submitting a bug report at *
72* crbug.com/tint with the source program that triggered the bug. *
73********************************************************************