Lines Matching defs:device
277 VK_FROM_HANDLE(vk_device, device, _device);
282 vk_object_base_init(device, &chain->base, VK_OBJECT_TYPE_SWAPCHAIN_KHR);
285 chain->device = _device;
388 chain->wsi->DestroyFence(chain->device, chain->fences[i], &chain->alloc);
394 chain->wsi->DestroySemaphore(chain->device, chain->buffer_blit_semaphores[i], &chain->alloc);
398 chain->wsi->DestroySemaphore(chain->device, chain->dma_buf_semaphore,
404 chain->wsi->DestroyCommandPool(chain->device, chain->cmd_pools[i],
538 result = wsi->CreateImage(chain->device, &info->create,
547 result = wsi->BindImageMemory(chain->device, image->image,
577 wsi->UnmapMemory(chain->device, image->buffer.buffer != VK_NULL_HANDLE ?
586 wsi->FreeCommandBuffers(chain->device, chain->cmd_pools[i],
592 wsi->FreeMemory(chain->device, image->memory, &chain->alloc);
593 wsi->DestroyImage(chain->device, image->image, &chain->alloc);
594 wsi->FreeMemory(chain->device, image->buffer.memory, &chain->alloc);
595 wsi->DestroyBuffer(chain->device, image->buffer.buffer, &chain->alloc);
604 VK_FROM_HANDLE(vk_physical_device, device, physicalDevice);
606 struct wsi_device *wsi_device = device->wsi_device;
619 VK_FROM_HANDLE(vk_physical_device, device, physicalDevice);
621 struct wsi_device *wsi_device = device->wsi_device;
642 VK_FROM_HANDLE(vk_physical_device, device, physicalDevice);
644 struct wsi_device *wsi_device = device->wsi_device;
657 VK_FROM_HANDLE(vk_physical_device, device, physicalDevice);
659 struct wsi_device *wsi_device = device->wsi_device;
704 VK_FROM_HANDLE(vk_physical_device, device, physicalDevice);
706 struct wsi_device *wsi_device = device->wsi_device;
719 VK_FROM_HANDLE(vk_physical_device, device, physicalDevice);
721 struct wsi_device *wsi_device = device->wsi_device;
734 VK_FROM_HANDLE(vk_physical_device, device, physicalDevice);
736 struct wsi_device *wsi_device = device->wsi_device;
749 VK_FROM_HANDLE(vk_physical_device, device, physicalDevice);
751 struct wsi_device *wsi_device = device->wsi_device;
764 VK_FROM_HANDLE(vk_device, device, _device);
766 struct wsi_device *wsi_device = device->physical->wsi_device;
774 alloc = &device->alloc;
812 VK_FROM_HANDLE(vk_device, device, _device);
822 alloc = &device->alloc;
853 wsi_GetSwapchainImagesKHR(VkDevice device,
871 VK_FROM_HANDLE(vk_device, device, _device);
882 return device->dispatch_table.AcquireNextImage2KHR(_device, &acquire_info,
887 wsi_signal_semaphore_for_image(struct vk_device *device,
892 if (device->physical->supported_sync_types == NULL)
897 vk_semaphore_reset_temporary(device, semaphore);
908 return device->create_sync_for_memory(device, image->memory,
912 return vk_sync_create(device, &vk_sync_dummy_type,
919 wsi_signal_fence_for_image(struct vk_device *device,
924 if (device->physical->supported_sync_types == NULL)
929 vk_fence_reset_temporary(device, fence);
940 return device->create_sync_for_memory(device, image->memory,
944 return vk_sync_create(device, &vk_sync_dummy_type,
957 VK_FROM_HANDLE(vk_device, device, _device);
968 wsi_signal_semaphore_for_image(device, swapchain, image,
976 wsi_signal_fence_for_image(device, swapchain, image,
983 wsi->set_memory_ownership(swapchain->device, image->memory, true);
993 VK_FROM_HANDLE(vk_device, device, _device);
995 return wsi_common_acquire_next_image2(device->physical->wsi_device,
1001 VkDevice device,
1027 result = wsi->CreateFence(device, &fence_info,
1039 result = wsi->CreateSemaphore(device, &sem_info,
1047 wsi->WaitForFences(device, 1, &swapchain->fences[image_index],
1053 result = wsi->ResetFences(device, 1, &swapchain->fences[image_index]);
1154 wsi->WaitForFences(device, 1, &swapchain->fences[image_index],
1167 wsi->set_memory_ownership(swapchain->device, mem, false);
1189 return wsi_common_queue_present(queue->base.device->physical->wsi_device,
1190 vk_device_to_handle(queue->base.device),
1197 wsi_GetDeviceGroupPresentCapabilitiesKHR(VkDevice device,
1209 wsi_GetDeviceGroupSurfacePresentModesKHR(VkDevice device,
1270 return wsi->CreateImage(chain->device, &chain->image_info.create,
1283 return wsi->BindImageMemory(chain->device, vk_image, image->memory, 0);
1309 /* If they asked for non-device-local and all the types are device-local
1311 * device-local types
1358 result = wsi->CreateBuffer(chain->device, &buffer_info,
1364 wsi->GetBufferMemoryRequirements(chain->device, image->buffer.buffer, &reqs);
1407 result = wsi->AllocateMemory(chain->device, &buf_mem_info,
1412 result = wsi->BindBufferMemory(chain->device, image->buffer.buffer,
1417 wsi->GetImageMemoryRequirements(chain->device, image->image, &reqs);
1433 result = wsi->AllocateMemory(chain->device, &memory_info,
1471 result = wsi->AllocateCommandBuffers(chain->device, &cmd_buffer_info,
1571 * device's optimalBufferCopyRowPitchAlignment so we get efficient copies.
1594 wsi->GetImageMemoryRequirements(chain->device, image->image, &reqs);
1597 wsi->GetImageSubresourceLayout(chain->device, image->image,
1632 result = wsi->AllocateMemory(chain->device, &memory_info,
1637 result = wsi->MapMemory(chain->device, image->memory,
1662 result = chain->wsi->MapMemory(chain->device, image->buffer.memory,