Debian Codegraph @

src/panfrost/libpan/libpan.h

raw
1 /*
2 * Copyright 2024 Collabora Ltd.
3 * SPDX-License-Identifier: MIT
4 */
5
6 #ifndef LIBPAN_H
7 #define LIBPAN_H
8
9 #ifndef __OPENCL_VERSION__
10 #ifndef PAN_ARCH
11 #error "PAN_ARCH needs to be defined for this header to work!"
12 #endif
13
14 /* We now include binding definition */
15 #if (PAN_ARCH == 4)
16 #include "libpan_v4.h"
17 #elif (PAN_ARCH == 5)
18 #include "libpan_v5.h"
19 #elif (PAN_ARCH == 6)
20 #include "libpan_v6.h"
21 #elif (PAN_ARCH == 7)
22 #include "libpan_v7.h"
23 #elif (PAN_ARCH == 9)
24 #include "libpan_v9.h"
25 #elif (PAN_ARCH == 10)
26 #include "libpan_v10.h"
27 #elif (PAN_ARCH == 12)
28 #include "libpan_v12.h"
29 #elif (PAN_ARCH == 13)
30 #include "libpan_v13.h"
31 #else
32 #error "Unsupported architecture for libpan"
33 #endif
34
35 #endif /* __OPENCL_VERSION__ */
36
37 #endif /* LIBPAN_H */