The open source OpenXR runtime
0
fork

Configure Feed

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

c/main: Name Vulkan objects

authored by

Simon Zeni and committed by
Jakob Bornecrantz
c75db604 b90c3979

+37
+18
src/xrt/compositor/main/comp_mirror_to_debug_gui.c
··· 184 184 return false; 185 185 } 186 186 187 + VK_NAME_OBJECT(vk, IMAGE_VIEW, m->bounce.unorm_view, "comp_mirror_debug_to_gui image view bounce.unorm_view"); 188 + 187 189 return true; 188 190 } 189 191 ··· 297 299 return ret; 298 300 } 299 301 302 + VK_NAME_OBJECT(vk, COMMAND_POOL, m->cmd_pool.pool, "comp_mirror_to_debug_gui command pool"); 303 + 300 304 struct vk_descriptor_pool_info blit_pool_info = { 301 305 .uniform_per_descriptor_count = 0, 302 306 .sampler_per_descriptor_count = 1, ··· 311 315 &blit_pool_info, // info 312 316 &m->blit.descriptor_pool)); // out_descriptor_pool 313 317 318 + VK_NAME_OBJECT(vk, DESCRIPTOR_POOL, m->blit.descriptor_pool, "comp_mirror_to_debug_ui blit descriptor pool"); 314 319 315 320 C(vk_create_pipeline_cache(vk, &m->blit.pipeline_cache)); 321 + 322 + VK_NAME_OBJECT(vk, PIPELINE_CACHE, m->blit.pipeline_cache, "comp_mirror_to_debug_ui blit pipeline cache"); 316 323 317 324 C(create_blit_descriptor_set_layout(vk, &m->blit.descriptor_set_layout)); 318 325 326 + VK_NAME_OBJECT(vk, DESCRIPTOR_SET_LAYOUT, m->blit.descriptor_set_layout, 327 + "comp_mirror_to_debug_ui blit descriptor set layout"); 328 + 319 329 C(create_blit_pipeline_layout( // 320 330 vk, // vk_bundle 321 331 m->blit.descriptor_set_layout, // descriptor_set_layout 322 332 &m->blit.pipeline_layout)); // out_pipeline_layout 333 + 334 + VK_NAME_OBJECT(vk, PIPELINE_LAYOUT, m->blit.pipeline_layout, "comp_mirror_to_debug_ui blit pipeline layout"); 323 335 324 336 C(vk_create_compute_pipeline( // 325 337 vk, // vk_bundle ··· 328 340 m->blit.pipeline_layout, // pipeline_layout 329 341 NULL, // specialization_info 330 342 &m->blit.pipeline)); // out_compute_pipeline 343 + 344 + VK_NAME_OBJECT(vk, PIPELINE, m->blit.pipeline, "comp_mirror_to_debug_ui blit pipeline"); 331 345 332 346 return VK_SUCCESS; 333 347 } ··· 432 446 return; 433 447 } 434 448 449 + VK_NAME_OBJECT(vk, DESCRIPTOR_SET, descriptor_set, "comp_mirror_to_debug_ui blit descriptor set"); 450 + 435 451 struct vk_cmd_pool *pool = &m->cmd_pool; 436 452 437 453 // For writing and submitting commands. ··· 444 460 vk_cmd_pool_unlock(pool); 445 461 return; 446 462 } 463 + 464 + VK_NAME_OBJECT(vk, COMMAND_BUFFER, cmd, "comp_mirror_to_debug_ui command buffer"); 447 465 448 466 // Barrier arguments. 449 467 VkImageSubresourceRange first_color_level_subresource_range = {
+10
src/xrt/compositor/main/comp_target_swapchain.c
··· 129 129 cts->surface.format.format, // format 130 130 subresource_range, // subresource_range 131 131 &cts->base.images[i].view); // out_view 132 + 133 + 134 + VK_NAME_OBJECT(vk, IMAGE_VIEW, cts->base.images[i].view, "comp_target_swapchain image view"); 132 135 } 133 136 134 137 free(images); ··· 601 604 COMP_ERROR(cts->base.c, "vkCreateSemaphore: %s", vk_result_string(ret)); 602 605 } 603 606 607 + VK_NAME_OBJECT(vk, SEMAPHORE, cts->base.semaphores.present_complete, 608 + "comp_target_swapchain semaphore present complete"); 609 + 604 610 cts->base.semaphores.render_complete_is_timeline = false; 605 611 ret = vk->vkCreateSemaphore(vk->device, &info, NULL, &cts->base.semaphores.render_complete); 606 612 if (ret != VK_SUCCESS) { 607 613 COMP_ERROR(cts->base.c, "vkCreateSemaphore: %s", vk_result_string(ret)); 608 614 } 615 + 616 + VK_NAME_OBJECT(vk, SEMAPHORE, cts->base.semaphores.render_complete, 617 + "comp_target_swapchain semaphore render complete"); 609 618 } 610 619 611 620 ··· 782 791 return; 783 792 } 784 793 794 + VK_NAME_OBJECT(vk, SWAPCHAIN_KHR, cts->swapchain.handle, "comp_target_swapchain swapchain"); 785 795 786 796 /* 787 797 * Set target info.
+1
src/xrt/compositor/main/comp_window_android.c
··· 125 125 return ret; 126 126 } 127 127 128 + VK_NAME_OBJECT(vk, SURFACE_KHR, surface, "comp_window_android surface"); 128 129 *out_surface = surface; 129 130 130 131 return VK_SUCCESS;
+1
src/xrt/compositor/main/comp_window_direct.c
··· 268 268 return ret; 269 269 } 270 270 271 + VK_NAME_OBJECT(get_vk(cts), SURFACE_KHR, surface, "comp_target_swapchain direct surface"); 271 272 cts->surface.handle = surface; 272 273 273 274 return VK_SUCCESS;
+1
src/xrt/compositor/main/comp_window_mswin.c
··· 167 167 return ret; 168 168 } 169 169 170 + VK_NAME_OBJECT(vk, SURFACE_KHR, surface, "comp_window_mswin surface"); 170 171 *out_surface = surface; 171 172 172 173 return VK_SUCCESS;
+4
src/xrt/compositor/main/comp_window_peek.c
··· 152 152 goto err_free; 153 153 } 154 154 155 + VK_NAME_OBJECT(vk, COMMAND_POOL, w->pool.pool, "comp_window_peek command pool"); 156 + 155 157 ret = vk_cmd_pool_create_cmd_buffer(vk, &w->pool, &w->cmd); 156 158 if (ret != VK_SUCCESS) { 157 159 COMP_ERROR(c, "vk_cmd_pool_create_cmd_buffer: %s", vk_result_string(ret)); 158 160 goto err_pool; 159 161 } 162 + 163 + VK_NAME_OBJECT(vk, COMMAND_BUFFER, w->cmd, "comp_window_peek command buffer"); 160 164 161 165 162 166 /*
+1
src/xrt/compositor/main/comp_window_wayland.c
··· 238 238 return ret; 239 239 } 240 240 241 + VK_NAME_OBJECT(vk, SURFACE_KHR, surface, "comp_window_wayland surface"); 241 242 *out_surface = surface; 242 243 243 244 return VK_SUCCESS;
+1
src/xrt/compositor/main/comp_window_xcb.c
··· 423 423 return ret; 424 424 } 425 425 426 + VK_NAME_OBJECT(vk, SURFACE_KHR, surface, "comp_window_xcb surface"); 426 427 *out_surface = surface; 427 428 428 429 return VK_SUCCESS;