Lines Matching refs:icd_surface
196 VkIcdSurface *icd_surface = (VkIcdSurface *)(uintptr_t)(surface);
197 if (NULL != icd_surface) {
198 if (NULL != icd_surface->real_icd_surfaces) {
203 (VkSurfaceKHR)(uintptr_t)NULL != icd_surface->real_icd_surfaces[i]) {
204 icd_term->dispatch.DestroySurfaceKHR(icd_term->instance, icd_surface->real_icd_surfaces[i], pAllocator);
205 icd_surface->real_icd_surfaces[i] = (VkSurfaceKHR)(uintptr_t)NULL;
211 assert((VkSurfaceKHR)(uintptr_t)NULL == icd_surface->real_icd_surfaces[i]);
214 loader_instance_heap_free(loader_inst, icd_surface->real_icd_surfaces);
267 VkIcdSurface *icd_surface = (VkIcdSurface *)(uintptr_t)surface;
268 if (NULL != icd_surface->real_icd_surfaces &&
269 (VkSurfaceKHR)(uintptr_t)NULL != icd_surface->real_icd_surfaces[phys_dev_term->icd_index]) {
271 phys_dev_term->phys_dev, queueFamilyIndex, icd_surface->real_icd_surfaces[phys_dev_term->icd_index], pSupported);
321 VkIcdSurface *icd_surface = (VkIcdSurface *)(uintptr_t)surface;
322 if (NULL != icd_surface->real_icd_surfaces &&
323 (VkSurfaceKHR)(uintptr_t)NULL != icd_surface->real_icd_surfaces[phys_dev_term->icd_index]) {
325 phys_dev_term->phys_dev, icd_surface->real_icd_surfaces[phys_dev_term->icd_index], pSurfaceCapabilities);
377 VkIcdSurface *icd_surface = (VkIcdSurface *)(uintptr_t)surface;
378 if (NULL != icd_surface->real_icd_surfaces &&
379 (VkSurfaceKHR)(uintptr_t)NULL != icd_surface->real_icd_surfaces[phys_dev_term->icd_index]) {
381 icd_surface->real_icd_surfaces[phys_dev_term->icd_index],
435 VkIcdSurface *icd_surface = (VkIcdSurface *)(uintptr_t)surface;
436 if (NULL != icd_surface->real_icd_surfaces &&
437 (VkSurfaceKHR)(uintptr_t)NULL != icd_surface->real_icd_surfaces[phys_dev_term->icd_index]) {
439 phys_dev_term->phys_dev, icd_surface->real_icd_surfaces[phys_dev_term->icd_index], pPresentModeCount, pPresentModes);
493 VkIcdSurface *icd_surface = (VkIcdSurface *)(uintptr_t)pCreateInfo->surface;
494 if (NULL != icd_surface->real_icd_surfaces) {
495 if ((VkSurfaceKHR)(uintptr_t)NULL != icd_surface->real_icd_surfaces[icd_index]) {
504 pCreateCopy->surface = icd_surface->real_icd_surfaces[icd_index];
1620 VkIcdSurface *icd_surface = NULL;
1631 icd_surface = AllocateIcdSurfaceStruct(loader_inst, sizeof(icd_surface->metal_surf.base), sizeof(icd_surface->metal_surf));
1632 if (icd_surface == NULL) {
1637 icd_surface->metal_surf.base.platform = VK_ICD_WSI_PLATFORM_METAL;
1638 icd_surface->metal_surf.pLayer = pCreateInfo->pLayer;
1646 &icd_surface->real_icd_surfaces[i]);
1653 *pSurface = (VkSurfaceKHR)(uintptr_t)icd_surface;
1656 if (result != VK_SUCCESS && icd_surface != NULL) {
1657 if (icd_surface->real_icd_surfaces != NULL) {
1660 if (icd_surface->real_icd_surfaces[i] == VK_NULL_HANDLE && icd_term->dispatch.DestroySurfaceKHR != NULL) {
1661 icd_term->dispatch.DestroySurfaceKHR(icd_term->instance, icd_surface->real_icd_surfaces[i], pAllocator);
1664 loader_instance_heap_free(loader_inst, icd_surface->real_icd_surfaces);
1666 loader_instance_heap_free(loader_inst, icd_surface);
2236 VkIcdSurface *icd_surface = (VkIcdSurface *)(uintptr_t)pCreateInfos->surface;
2237 if ((VkSurfaceKHR)(uintptr_t)NULL != icd_surface->real_icd_surfaces[icd_index]) {
2247 pCreateCopy[sc].surface = icd_surface->real_icd_surfaces[icd_index];
2298 VkIcdSurface *icd_surface = (VkIcdSurface *)(uintptr_t)surface;
2299 if (NULL != icd_surface->real_icd_surfaces && (VkSurfaceKHR)(uintptr_t)NULL != icd_surface->real_icd_surfaces[icd_index]) {
2301 device, icd_surface->real_icd_surfaces[icd_index], pModes);
2335 VkIcdSurface *icd_surface = (VkIcdSurface *)(uintptr_t)(surface);
2337 if (NULL != icd_surface->real_icd_surfaces && NULL != (void *)(uintptr_t)(icd_surface->real_icd_surfaces[icd_index])) {
2339 phys_dev_term->phys_dev, icd_surface->real_icd_surfaces[icd_index], pRectCount, pRects);
2679 VkIcdSurface *icd_surface = (VkIcdSurface *)(uintptr_t)(pSurfaceInfo->surface);
2695 if (NULL != icd_surface->real_icd_surfaces && NULL != (void *)(uintptr_t)icd_surface->real_icd_surfaces[icd_index]) {
2697 info_copy.surface = icd_surface->real_icd_surfaces[icd_index];
2719 if (NULL != icd_surface->real_icd_surfaces && NULL != (void *)(uintptr_t)(icd_surface->real_icd_surfaces[icd_index])) {
2720 surface = icd_surface->real_icd_surfaces[icd_index];
2771 VkIcdSurface *icd_surface = (VkIcdSurface *)(uintptr_t)(pSurfaceInfo->surface);
2776 if (NULL != icd_surface->real_icd_surfaces && NULL != (void *)(uintptr_t)(icd_surface->real_icd_surfaces[icd_index])) {
2778 info_copy.surface = icd_surface->real_icd_surfaces[icd_index];
2798 if (NULL != icd_surface->real_icd_surfaces && NULL != (void *)(uintptr_t)(icd_surface->real_icd_surfaces[icd_index])) {
2799 surface = icd_surface->real_icd_surfaces[icd_index];