summaryrefslogtreecommitdiffstats
path: root/src/amd/vulkan/radv_debug.h
diff options
context:
space:
mode:
authorSamuel Pitoiset <[email protected]>2017-08-30 15:12:20 +0200
committerSamuel Pitoiset <[email protected]>2017-09-01 09:41:54 +0200
commitad42e2abb8507dd85f07e5aad539154b0d5c78ea (patch)
treeee3d314099e77179f70231136b8ae2d06659197d /src/amd/vulkan/radv_debug.h
parentf1f2f00f6ac3eb8ccdae4ad4aedfce354ae01e41 (diff)
radv: move RADV_TRACE_FILE functions to radv_debug.c
At the moment, debugging radv is not really easy because the driver doesn't report enough information when it hangs. This new file will be the main location for all debug tools. Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src/amd/vulkan/radv_debug.h')
-rw-r--r--src/amd/vulkan/radv_debug.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/amd/vulkan/radv_debug.h b/src/amd/vulkan/radv_debug.h
index c345d040c5d..cbb095f747b 100644
--- a/src/amd/vulkan/radv_debug.h
+++ b/src/amd/vulkan/radv_debug.h
@@ -24,6 +24,8 @@
#ifndef RADV_DEBUG_H
#define RADV_DEBUG_H
+#include "radv_private.h"
+
enum {
RADV_DEBUG_NO_FAST_CLEARS = 0x1,
RADV_DEBUG_NO_DCC = 0x2,
@@ -41,4 +43,11 @@ enum {
RADV_PERFTEST_BATCHCHAIN = 0x1,
RADV_PERFTEST_SISCHED = 0x2,
};
+
+bool
+radv_init_trace(struct radv_device *device);
+
+void
+radv_dump_trace(struct radv_device *device, struct radeon_winsys_cs *cs);
+
#endif