Debian Codegraph @

src/panfrost/compiler/bifrost/bi_debug.h

raw
1 /*
2 * Copyright (C) 2019 Connor Abbott <[email protected]>
3 * Copyright (C) 2019 Lyude Paul <[email protected]>
4 * Copyright (C) 2019 Ryan Houdek <[email protected]>
5 * SPDX-License-Identifier: MIT
6 */
7
8 #ifndef __bi_debug_h__
9 #define __bi_debug_h__
10
11 #include <stdbool.h>
12
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
16
17 #define BIFROST_DBG_MSGS 0x0001
18 #define BIFROST_DBG_SHADERS 0x0002
19 #define BIFROST_DBG_SHADERDB 0x0004
20 #define BIFROST_DBG_VERBOSE 0x0008
21 #define BIFROST_DBG_INTERNAL 0x0010
22 #define BIFROST_DBG_NOSCHED 0x0020
23 #define BIFROST_DBG_INORDER 0x0040
24 #define BIFROST_DBG_NOVALIDATE 0x0080
25 #define BIFROST_DBG_NOOPT 0x0100
26 #define BIFROST_DBG_NOIDVS 0x0200
27 #define BIFROST_DBG_NOSB 0x0400
28 #define BIFROST_DBG_NOPRELOAD 0x0800
29 #define BIFROST_DBG_SPILL 0x1000
30 #define BIFROST_DBG_NOPSCHED 0x2000
31 #define BIFROST_DBG_NOSSARA 0x4000
32 #define BIFROST_DBG_STATSABS 0x8000
33 #define BIFROST_DBG_STATSFULL 0x10000
34 #define BIFROST_DBG_DEBUGINFO 0x20000
35
36 extern unsigned bifrost_debug;
37
38 void bifrost_init_debug_options(void);
39
40 bool bifrost_will_dump_shaders(void);
41 bool bifrost_want_debug_info(void);
42
43 #ifdef __cplusplus
44 } /* extern C */
45 #endif
46
47 #endif