Module: Mesa Branch: master Commit: d349d4bd24aef5b76d5ebb999f55416a14b039f1 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=d349d4bd24aef5b76d5ebb999f55416a14b039f1
Author: Samuel Pitoiset <samuel.pitoi...@gmail.com> Date: Wed May 16 15:52:37 2018 +0200 radv: allow to print GPU info with RADV_DEBUG=info Signed-off-by: Samuel Pitoiset <samuel.pitoi...@gmail.com> Reviewed-by: Bas Nieuwenhuizen <b...@basnieuwenhuizen.nl> --- src/amd/vulkan/radv_debug.h | 1 + src/amd/vulkan/radv_device.c | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/src/amd/vulkan/radv_debug.h b/src/amd/vulkan/radv_debug.h index 9dda9b6b0c..b6993cee1c 100644 --- a/src/amd/vulkan/radv_debug.h +++ b/src/amd/vulkan/radv_debug.h @@ -45,6 +45,7 @@ enum { RADV_DEBUG_PREOPTIR = 0x8000, RADV_DEBUG_NO_DYNAMIC_BOUNDS = 0x10000, RADV_DEBUG_NO_OUT_OF_ORDER = 0x20000, + RADV_DEBUG_INFO = 0x40000, }; enum { diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c index e24b8c2a76..778887bd58 100644 --- a/src/amd/vulkan/radv_device.c +++ b/src/amd/vulkan/radv_device.c @@ -329,6 +329,9 @@ radv_physical_device_init(struct radv_physical_device *device, goto fail; } + if ((device->instance->debug_flags & RADV_DEBUG_INFO)) + ac_print_gpu_info(&device->rad_info); + return VK_SUCCESS; fail: @@ -391,6 +394,7 @@ static const struct debug_control radv_debug_options[] = { {"preoptir", RADV_DEBUG_PREOPTIR}, {"nodynamicbounds", RADV_DEBUG_NO_DYNAMIC_BOUNDS}, {"nooutoforder", RADV_DEBUG_NO_OUT_OF_ORDER}, + {"info", RADV_DEBUG_INFO}, {NULL, 0} }; _______________________________________________ mesa-commit mailing list mesa-commit@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-commit