diff options
author | Samuel Pitoiset <[email protected]> | 2018-03-14 12:02:13 +0100 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2018-03-15 17:19:54 +0100 |
commit | 14c27c251127628b7264ee630f9854762962279b (patch) | |
tree | 9ef1ae3bed62d39a19c282ca67a969caa2a5f470 /src/amd/vulkan/radv_device.c | |
parent | 5be2757c3506004d9913ad2ea3ad4fbe6af70dce (diff) |
radv: print some information when RADV_TRACE_FILE is set
Just to be sure all options are enabled when trying to generate
a hang report.
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src/amd/vulkan/radv_device.c')
-rw-r--r-- | src/amd/vulkan/radv_device.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c index 13b2da584e5..36ba0c3833d 100644 --- a/src/amd/vulkan/radv_device.c +++ b/src/amd/vulkan/radv_device.c @@ -1322,10 +1322,15 @@ VkResult radv_CreateDevice( device->physical_device->rad_info.max_se >= 2; if (getenv("RADV_TRACE_FILE")) { + const char *filename = getenv("RADV_TRACE_FILE"); + keep_shader_info = true; if (!radv_init_trace(device)) goto fail; + + fprintf(stderr, "Trace file will be dumped to %s\n", filename); + radv_dump_enabled_options(device, stderr); } device->keep_shader_info = keep_shader_info; |