diff options
author | Christoph Bumiller <[email protected]> | 2011-04-10 13:59:26 +0200 |
---|---|---|
committer | Christoph Bumiller <[email protected]> | 2011-04-10 14:06:52 +0200 |
commit | 74559abbef5e5bcd3dbe1b8bbb8a39391a8a8671 (patch) | |
tree | 7115b58a8d5279ab2f6c7d3eab6708995b52f3df /src/gallium/drivers/nv50/nv50_debug.h | |
parent | 003224bd970e9cb63b0d3d12e1a8f2f3b3a736e6 (diff) |
nv50,nvc0: silence shader debug output
Diffstat (limited to 'src/gallium/drivers/nv50/nv50_debug.h')
-rw-r--r-- | src/gallium/drivers/nv50/nv50_debug.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/gallium/drivers/nv50/nv50_debug.h b/src/gallium/drivers/nv50/nv50_debug.h new file mode 100644 index 00000000000..f3dee621519 --- /dev/null +++ b/src/gallium/drivers/nv50/nv50_debug.h @@ -0,0 +1,25 @@ + +#ifndef __NV50_DEBUG_H__ +#define __NV50_DEBUG_H__ + +#include <stdio.h> + +#include "util/u_debug.h" + +#define NV50_DEBUG_MISC 0x0001 +#define NV50_DEBUG_SHADER 0x0100 +#define NV50_DEBUG_PROG_IR 0x0200 +#define NV50_DEBUG_PROG_RA 0x0400 +#define NV50_DEBUG_PROG_CFLOW 0x0800 +#define NV50_DEBUG_PROG_ALL 0x1f00 + +#define NV50_DEBUG 0 + +#define NOUVEAU_ERR(fmt, args...) \ + fprintf(stderr, "%s:%d - "fmt, __FUNCTION__, __LINE__, ##args) + +#define NV50_DBGMSG(ch, args...) \ + if ((NV50_DEBUG) & (NV50_DEBUG_##ch)) \ + debug_printf(args) + +#endif /* __NV50_DEBUG_H__ */ |