The open source OpenXR runtime
0
fork

Configure Feed

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

a/vk: Name Vulkan objects

authored by

Simon Zeni and committed by
Jakob Bornecrantz
e67f9d7e 7cba92e9

+13 -1
+3
src/xrt/auxiliary/vk/vk_bundle_init.c
··· 1238 1238 } 1239 1239 vk->vkGetDeviceQueue(vk->device, vk->queue_family_index, 0, &vk->queue); 1240 1240 1241 + // Need to do this after functions have been gotten. 1242 + VK_NAME_OBJECT(vk, DEVICE, vk->device, "vk_bundle device"); 1243 + 1241 1244 return ret; 1242 1245 1243 1246 err_destroy:
+7
src/xrt/auxiliary/vk/vk_image_allocator.c
··· 307 307 if (ret != VK_SUCCESS) { 308 308 break; 309 309 } 310 + 311 + VK_NAME_OBJECT(vk, IMAGE, out_vkic->images[i].handle, "vk_image_collection image"); 312 + VK_NAME_OBJECT(vk, DEVICE_MEMORY, out_vkic->images[i].memory, "vk_image_collection device_memory"); 310 313 } 311 314 312 315 // Set the fields. ··· 371 374 } 372 375 break; 373 376 } 377 + 378 + VK_NAME_OBJECT(vk, IMAGE, out_vkic->images[i].handle, "vk_image_collection image"); 379 + VK_NAME_OBJECT(vk, DEVICE_MEMORY, out_vkic->images[i].memory, "vk_image_collection device_memory"); 380 + 374 381 native_images[i].handle = buf; 375 382 } 376 383 // Set the fields.
+3
src/xrt/auxiliary/vk/vk_image_readback_to_xf_pool.c
··· 69 69 &memory, // 70 70 &image); // 71 71 72 + VK_NAME_OBJECT(vk, DEVICE_MEMORY, memory, "vk_image_readback_to_xf_pool device memory"); 73 + VK_NAME_OBJECT(vk, IMAGE, image, "vk_image_readback_to_xf_pool image"); 74 + 72 75 (void)res; 73 76 74 77 // Get layout of the image (including row pitch)
-1
src/xrt/auxiliary/vk/vk_sync_objects.c
··· 241 241 return ret; 242 242 } 243 243 244 - 245 244 #if defined(XRT_GRAPHICS_SYNC_HANDLE_IS_FD) 246 245 VkSemaphoreGetFdInfoKHR get_fd_info = { 247 246 .sType = VK_STRUCTURE_TYPE_SEMAPHORE_GET_FD_INFO_KHR,