xrt: Use uint32_t instead of int64_t for swapchain format

This commit is contained in:
Simon Zeni 2023-11-17 20:44:19 -05:00 committed by Jakob Bornecrantz
parent afb12a4c5d
commit b727aa9df7
2 changed files with 3 additions and 3 deletions

View file

@ -498,7 +498,7 @@ comp_swapchain_create_init(struct comp_swapchain *sc,
{ {
VkResult ret; VkResult ret;
VK_DEBUG(vk, "CREATE %p %" PRIu32 "x%" PRIu32 " %s (%" PRId64 ")", // VK_DEBUG(vk, "CREATE %p %" PRIu32 "x%" PRIu32 " %s (%" PRIu32 ")", //
(void *)sc, // (void *)sc, //
info->width, info->height, // info->width, info->height, //
vk_format_string(info->format), info->format); vk_format_string(info->format), info->format);
@ -560,7 +560,7 @@ comp_swapchain_import_init(struct comp_swapchain *sc,
{ {
VkResult ret; VkResult ret;
VK_DEBUG(vk, "IMPORT %p %" PRIu32 "x%" PRIu32 " %s (%" PRId64 ")", // VK_DEBUG(vk, "IMPORT %p %" PRIu32 "x%" PRIu32 " %s (%" PRIu32 ")", //
(void *)sc, // (void *)sc, //
info->width, info->height, // info->width, info->height, //
vk_format_string(info->format), info->format); vk_format_string(info->format), info->format);

View file

@ -807,7 +807,7 @@ struct xrt_swapchain_create_info
{ {
enum xrt_swapchain_create_flags create; enum xrt_swapchain_create_flags create;
enum xrt_swapchain_usage_bits bits; enum xrt_swapchain_usage_bits bits;
int64_t format; uint32_t format;
uint32_t sample_count; uint32_t sample_count;
uint32_t width; uint32_t width;
uint32_t height; uint32_t height;