radv: allow to print GPU info with RADV_DEBUG=info
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
This commit is contained in:
parent
56d53ed1d6
commit
d349d4bd24
|
@ -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 {
|
||||
|
|
|
@ -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}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue