summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSamuel Pitoiset <[email protected]>2018-07-20 18:47:03 +0200
committerSamuel Pitoiset <[email protected]>2018-07-23 11:34:42 +0200
commit6c58bc8d9c987f3e6d5263d94762eddb48d6f1be (patch)
tree6b8bf73221e300deb649abc568b5e887f97e9393 /src
parent6e32d9e7b0945268b844ab2397ab3c9924136d3a (diff)
radv: print a big warning when RADV_TRACE_FILE is set
Users shouldn't use this debugging option except when we ask them to do! Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/amd/vulkan/radv_device.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c
index 80ddb654802..7dc65083331 100644
--- a/src/amd/vulkan/radv_device.c
+++ b/src/amd/vulkan/radv_device.c
@@ -1561,6 +1561,10 @@ VkResult radv_CreateDevice(
if (!radv_init_trace(device))
goto fail;
+ fprintf(stderr, "*****************************************************************************\n");
+ fprintf(stderr, "* WARNING: RADV_TRACE_FILE is costly and should only be used for debugging! *\n");
+ fprintf(stderr, "*****************************************************************************\n");
+
fprintf(stderr, "Trace file will be dumped to %s\n", filename);
radv_dump_enabled_options(device, stderr);
}