radv: print a big warning when RADV_TRACE_FILE is set
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 20 Jul 2018 16:47:03 +0000 (18:47 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 23 Jul 2018 09:34:42 +0000 (11:34 +0200)
Users shouldn't use this debugging option except when we
ask them to do!

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_device.c

index 80ddb65480235b93185be5b8310d37533f1fa87f..7dc650833312a7f8ddfe2e97c399c7d9d0b1627d 100644 (file)
@@ -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);
        }