The open source OpenXR runtime
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

aux/vk: fix vulkan handle type format modifier

Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2272>

authored by

Simon Zeni and committed by
Rylie Pavlik
128f20df 66a5b36b

+4 -3
+4 -3
src/xrt/auxiliary/vk/vk_print.c
··· 12 12 #include "util/u_pretty_print.h" 13 13 #include "vk/vk_helpers.h" 14 14 15 + #include <inttypes.h> 15 16 16 17 /* 17 18 * ··· 230 231 struct u_pp_sink_stack_only sink; 231 232 u_pp_delegate_t dg = u_pp_sink_stack_only_init(&sink); 232 233 P("VkSwapchainCreateInfoKHR:"); 233 - PNT("surface: %p", (void *)i->surface); 234 + PNT("surface: %" PRIx64, (uint64_t)i->surface); 234 235 PNT("minImageCount: %u", i->minImageCount); 235 236 PNT("imageFormat: %s", vk_format_string(i->imageFormat)); 236 237 PNT("imageColorSpace: %s", vk_color_space_string(i->imageColorSpace)); ··· 244 245 PNT("compositeAlpha: %s", vk_composite_alpha_flag_string(i->compositeAlpha, false)); 245 246 PNT("presentMode: %s", vk_present_mode_string(i->presentMode)); 246 247 PNT("clipped: %s", i->clipped ? "VK_TRUE" : "VK_FALSE"); 247 - PNT("oldSwapchain: %p", (void *)i->oldSwapchain); 248 + PNT("oldSwapchain: %" PRIx64, (uint64_t)i->oldSwapchain); 248 249 249 250 U_LOG_IFL(log_level, vk->log_level, "%s", sink.buffer); 250 251 } ··· 266 267 // Field reserved for future use, just in case. 267 268 PNT("flags: UNKNOWN FLAG(S) 0x%x", i->flags); 268 269 } 269 - PNT("displayMode: %p", (void *)i->displayMode); 270 + PNT("displayMode: %" PRIx64, (uint64_t)i->displayMode); 270 271 PNT("planeIndex: %u", i->planeIndex); 271 272 PNT("planeStackIndex: %u", i->planeStackIndex); 272 273 PNT("transform: %s", vk_surface_transform_flag_string(i->transform, false));