blob: 5d17ae561e1601f23b0cec5a9b42434de4962454 [file] [log] [blame]
dan sinclairf1f381a2023-11-22 09:44:15 +00001SKIP: FAILED
2
James Pricea30f8dd2024-05-10 14:31:43 +00003../../src/tint/lang/msl/writer/printer/printer.cc:1164 internal compiler error: $B1: { # root
dan sinclairf1f381a2023-11-22 09:44:15 +00004 %arg_0:ptr<handle, texture_storage_2d_array<rgba8sint, read_write>, read> = var @binding_point(1, 0)
5 %prevent_dce:ptr<storage, vec4<i32>, read_write> = var @binding_point(2, 0)
6}
7
James Pricea30f8dd2024-05-10 14:31:43 +00008%textureLoad_32a7b8 = func():void {
9 $B2: {
dan sinclairf1f381a2023-11-22 09:44:15 +000010 %arg_1:ptr<function, vec2<u32>, read_write> = var, vec2<u32>(1u)
11 %arg_2:ptr<function, i32, read_write> = var, 1i
12 %6:texture_storage_2d_array<rgba8sint, read_write> = load %arg_0
13 %7:vec2<u32> = load %arg_1
14 %8:i32 = load %arg_2
15 %9:vec4<i32> = textureLoad %6, %7, %8
16 %res:ptr<function, vec4<i32>, read_write> = var, %9
17 %11:vec4<i32> = load %res
18 store %prevent_dce, %11
19 ret
20 }
21}
James Pricea30f8dd2024-05-10 14:31:43 +000022%vertex_main = @vertex func():vec4<f32> [@position] {
23 $B3: {
dan sinclairf1f381a2023-11-22 09:44:15 +000024 %13:void = call %textureLoad_32a7b8
25 ret vec4<f32>(0.0f)
26 }
27}
James Pricea30f8dd2024-05-10 14:31:43 +000028%fragment_main = @fragment func():void {
29 $B4: {
dan sinclairf1f381a2023-11-22 09:44:15 +000030 %15:void = call %textureLoad_32a7b8
31 ret
32 }
33}
James Pricea30f8dd2024-05-10 14:31:43 +000034%compute_main = @compute @workgroup_size(1, 1, 1) func():void {
35 $B5: {
dan sinclairf1f381a2023-11-22 09:44:15 +000036 %17:void = call %textureLoad_32a7b8
37 ret
38 }
39}
40
41invalid access control for storage texture
42********************************************************************
43* The tint shader compiler has encountered an unexpected error. *
44* *
45* Please help us fix this issue by submitting a bug report at *
46* crbug.com/tint with the source program that triggered the bug. *
47********************************************************************