mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-21 06:01:43 +00:00
a/vk: Add function to print opened device info
This commit is contained in:
parent
6c61965790
commit
2b042d48ff
|
@ -488,6 +488,15 @@ vk_print_device_info(struct vk_bundle *vk,
|
||||||
uint32_t gpu_index,
|
uint32_t gpu_index,
|
||||||
const char *title);
|
const char *title);
|
||||||
|
|
||||||
|
/*!
|
||||||
|
* Print device information about the device that bundle manages at the given
|
||||||
|
* logging level if the vk_bundle has that level enabled.
|
||||||
|
*
|
||||||
|
* @ingroup aux_vk
|
||||||
|
*/
|
||||||
|
void
|
||||||
|
vk_print_opened_device_info(struct vk_bundle *vk, enum u_logging_level log_level);
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* Print device features to the logger at the given logging level, if the
|
* Print device features to the logger at the given logging level, if the
|
||||||
* vk_bundle has that level enabled.
|
* vk_bundle has that level enabled.
|
||||||
|
|
|
@ -36,6 +36,15 @@ vk_print_device_info(struct vk_bundle *vk,
|
||||||
pdp->driverVersion); // Driver specific
|
pdp->driverVersion); // Driver specific
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
vk_print_opened_device_info(struct vk_bundle *vk, enum u_logging_level log_level)
|
||||||
|
{
|
||||||
|
VkPhysicalDeviceProperties pdp;
|
||||||
|
vk->vkGetPhysicalDeviceProperties(vk->physical_device, &pdp);
|
||||||
|
|
||||||
|
vk_print_device_info(vk, log_level, &pdp, 0, "Device info:\n");
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
vk_print_features_info(struct vk_bundle *vk, enum u_logging_level log_level)
|
vk_print_features_info(struct vk_bundle *vk, enum u_logging_level log_level)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue