The open source OpenXR runtime
0
fork

Configure Feed

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

comp: Further remove unused struct field initializers.

-51
-12
src/xrt/auxiliary/vk/vk_helpers.c
··· 219 219 220 220 VkImageCreateInfo image_info = { 221 221 .sType = VK_STRUCTURE_TYPE_IMAGE_CREATE_INFO, 222 - .pNext = NULL, 223 - .flags = 0, 224 222 .imageType = VK_IMAGE_TYPE_2D, 225 223 .format = format, 226 224 .extent = ··· 324 322 325 323 VkImportMemoryFdInfoKHR import_memory_info = { 326 324 .sType = VK_STRUCTURE_TYPE_IMPORT_MEMORY_FD_INFO_KHR, 327 - .pNext = NULL, 328 325 .handleType = VK_EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_FD_BIT_KHR, 329 326 .fd = image_fd->fd, 330 327 }; ··· 353 350 354 351 VkSamplerCreateInfo info = { 355 352 .sType = VK_STRUCTURE_TYPE_SAMPLER_CREATE_INFO, 356 - .pNext = NULL, 357 - .flags = 0, 358 353 .magFilter = VK_FILTER_LINEAR, 359 354 .minFilter = VK_FILTER_LINEAR, 360 355 .mipmapMode = VK_SAMPLER_MIPMAP_MODE_LINEAR, 361 356 .addressModeU = VK_SAMPLER_ADDRESS_MODE_CLAMP_TO_BORDER, 362 357 .addressModeV = VK_SAMPLER_ADDRESS_MODE_CLAMP_TO_BORDER, 363 358 .addressModeW = VK_SAMPLER_ADDRESS_MODE_CLAMP_TO_BORDER, 364 - .mipLodBias = 0.0f, 365 - .anisotropyEnable = VK_FALSE, 366 - .maxAnisotropy = 1.0f, 367 - .compareEnable = VK_FALSE, 368 - .compareOp = VK_COMPARE_OP_NEVER, 369 - .minLod = 0.0f, 370 - .maxLod = 1.0f, 371 359 .borderColor = VK_BORDER_COLOR_FLOAT_OPAQUE_BLACK, 372 360 .unnormalizedCoordinates = VK_FALSE, 373 361 };
-1
src/xrt/compositor/main/comp_compositor.c
··· 547 547 548 548 VkInstanceCreateInfo instance_create_info = { 549 549 .sType = VK_STRUCTURE_TYPE_INSTANCE_CREATE_INFO, 550 - .pNext = NULL, 551 550 .enabledExtensionCount = ARRAY_SIZE(extension_names), 552 551 .ppEnabledExtensionNames = extension_names, 553 552 };
-1
src/xrt/compositor/main/comp_distortion.c
··· 394 394 395 395 VkGraphicsPipelineCreateInfo pipeline_info = { 396 396 .sType = VK_STRUCTURE_TYPE_GRAPHICS_PIPELINE_CREATE_INFO, 397 - .flags = 0, 398 397 .stageCount = ARRAY_SIZE(shader_stages), 399 398 .pStages = shader_stages, 400 399 .pVertexInputState = &vertex_input_state,
-34
src/xrt/compositor/main/comp_renderer.c
··· 220 220 221 221 VkSubmitInfo comp_submit_info = { 222 222 .sType = VK_STRUCTURE_TYPE_SUBMIT_INFO, 223 - .pNext = NULL, 224 223 .waitSemaphoreCount = 1, 225 224 .pWaitSemaphores = &r->semaphores.present_complete, 226 225 .pWaitDstStageMask = stage_flags, ··· 288 287 289 288 VkCommandBufferBeginInfo command_buffer_info = { 290 289 .sType = VK_STRUCTURE_TYPE_COMMAND_BUFFER_BEGIN_INFO, 291 - .pNext = NULL, 292 - .flags = 0, 293 - .pInheritanceInfo = NULL, 294 290 }; 295 291 296 292 ret = vk->vkBeginCommandBuffer(command_buffer, &command_buffer_info); ··· 302 298 303 299 VkRenderPassBeginInfo render_pass_begin_info = { 304 300 .sType = VK_STRUCTURE_TYPE_RENDER_PASS_BEGIN_INFO, 305 - .pNext = NULL, 306 301 .renderPass = r->render_pass, 307 302 .framebuffer = framebuffer, 308 303 .renderArea = ··· 401 396 402 397 VkDescriptorPoolCreateInfo descriptor_pool_info = { 403 398 .sType = VK_STRUCTURE_TYPE_DESCRIPTOR_POOL_CREATE_INFO, 404 - .pNext = NULL, 405 - .flags = 0, 406 399 .maxSets = 2, 407 400 .poolSizeCount = ARRAY_SIZE(pool_sizes), 408 401 .pPoolSizes = pool_sizes, ··· 429 422 { 430 423 VkImageMemoryBarrier barrier = { 431 424 .sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER, 432 - .pNext = NULL, 433 425 .srcAccessMask = src_access_mask, 434 426 .dstAccessMask = dst_access_mask, 435 427 .oldLayout = old_layout, ··· 454 446 455 447 VkCommandBufferAllocateInfo cmd_buffer_info = { 456 448 .sType = VK_STRUCTURE_TYPE_COMMAND_BUFFER_ALLOCATE_INFO, 457 - .pNext = NULL, 458 449 .commandPool = cmd_pool, 459 450 .level = VK_COMMAND_BUFFER_LEVEL_PRIMARY, 460 451 .commandBufferCount = 1, ··· 471 462 472 463 VkCommandBufferBeginInfo begin_info = { 473 464 .sType = VK_STRUCTURE_TYPE_COMMAND_BUFFER_BEGIN_INFO, 474 - .pNext = NULL, 475 - .flags = 0, 476 - .pInheritanceInfo = NULL, 477 465 }; 478 466 ret = vk->vkBeginCommandBuffer(*out_cmd_buffer, &begin_info); 479 467 if (ret != VK_SUCCESS) { ··· 497 485 498 486 VkSubmitInfo submitInfo = { 499 487 .sType = VK_STRUCTURE_TYPE_SUBMIT_INFO, 500 - .pNext = NULL, 501 - .waitSemaphoreCount = 0, 502 - .pWaitSemaphores = NULL, 503 - .pWaitDstStageMask = NULL, 504 488 .commandBufferCount = 1, 505 489 .pCommandBuffers = &cmd_buffer, 506 - .signalSemaphoreCount = 0, 507 - .pSignalSemaphores = NULL, 508 490 }; 509 491 510 492 VkFenceCreateInfo fence_info = { 511 493 .sType = VK_STRUCTURE_TYPE_FENCE_CREATE_INFO, 512 - .pNext = NULL, 513 - .flags = 0, 514 494 }; 515 495 VkFence fence; 516 496 ret = vk->vkCreateFence(vk->device, &fence_info, NULL, &fence); ··· 675 655 676 656 VkFramebufferCreateInfo frame_buffer_info = { 677 657 .sType = VK_STRUCTURE_TYPE_FRAMEBUFFER_CREATE_INFO, 678 - .pNext = NULL, 679 - .flags = 0, 680 658 .renderPass = r->render_pass, 681 659 .attachmentCount = num_attachements, 682 660 .pAttachments = attachments, ··· 715 693 716 694 VkCommandBufferAllocateInfo cmd_buffer_info = { 717 695 .sType = VK_STRUCTURE_TYPE_COMMAND_BUFFER_ALLOCATE_INFO, 718 - .pNext = NULL, 719 696 .commandPool = vk->cmd_pool, 720 697 .level = VK_COMMAND_BUFFER_LEVEL_PRIMARY, 721 698 .commandBufferCount = count, ··· 746 723 747 724 VkPipelineCacheCreateInfo pipeline_cache_info = { 748 725 .sType = VK_STRUCTURE_TYPE_PIPELINE_CACHE_CREATE_INFO, 749 - .pNext = NULL, 750 - .flags = 0, 751 - .initialDataSize = 0, 752 - .pInitialData = NULL, 753 726 }; 754 727 ret = vk->vkCreatePipelineCache(vk->device, &pipeline_cache_info, NULL, 755 728 &r->pipeline_cache); ··· 767 740 768 741 VkSemaphoreCreateInfo info = { 769 742 .sType = VK_STRUCTURE_TYPE_SEMAPHORE_CREATE_INFO, 770 - .pNext = NULL, 771 - .flags = 0, 772 743 }; 773 744 774 745 ret = vk->vkCreateSemaphore(vk->device, &info, NULL, ··· 838 809 839 810 VkAttachmentDescription attachments[1] = { 840 811 (VkAttachmentDescription){ 841 - .flags = 0, 842 812 .format = r->c->window->swapchain.surface_format.format, 843 813 .samples = VK_SAMPLE_COUNT_1_BIT, 844 814 .loadOp = VK_ATTACHMENT_LOAD_OP_CLEAR, ··· 856 826 }; 857 827 858 828 VkSubpassDescription subpass_description = { 859 - .flags = 0, 860 829 .pipelineBindPoint = VK_PIPELINE_BIND_POINT_GRAPHICS, 861 830 .inputAttachmentCount = 0, 862 831 .pInputAttachments = NULL, ··· 877 846 .srcAccessMask = 0, 878 847 .dstAccessMask = VK_ACCESS_COLOR_ATTACHMENT_READ_BIT | 879 848 VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT, 880 - .dependencyFlags = 0, 881 849 }, 882 850 }; 883 851 884 852 VkRenderPassCreateInfo render_pass_info = { 885 853 .sType = VK_STRUCTURE_TYPE_RENDER_PASS_CREATE_INFO, 886 - .pNext = NULL, 887 - .flags = 0, 888 854 .attachmentCount = ARRAY_SIZE(attachments), 889 855 .pAttachments = attachments, 890 856 .subpassCount = 1,
-1
src/xrt/compositor/main/comp_swapchain.c
··· 164 164 // vkAllocateMemory parameters 165 165 VkMemoryDedicatedAllocateInfoKHR dedicated_memory_info = { 166 166 .sType = VK_STRUCTURE_TYPE_MEMORY_DEDICATED_ALLOCATE_INFO_KHR, 167 - .pNext = NULL, 168 167 .image = image, 169 168 .buffer = VK_NULL_HANDLE, 170 169 };
-2
src/xrt/compositor/main/comp_window_wayland.c
··· 224 224 225 225 VkWaylandSurfaceCreateInfoKHR surface_info = { 226 226 .sType = VK_STRUCTURE_TYPE_WAYLAND_SURFACE_CREATE_INFO_KHR, 227 - .pNext = NULL, 228 - .flags = 0, 229 227 .display = w->display, 230 228 .surface = w->surface, 231 229 };