Home | History | Annotate | Download | only in layers

Lines Matching refs:my_data

58         layer_data *my_data = get_my_data_ptr(key, layer_data_map);
59 return my_data->instance_dispatch_table->EnumerateDeviceExtensionProperties(physicalDevice, NULL, pCount, pProperties);
122 layer_data *my_data = get_my_data_ptr(get_dispatch_key(instance), layer_data_map);
123 VkLayerInstanceDispatchTable *pDisp = my_data->instance_dispatch_table;
165 my_data->instanceMap[instance].instance = instance;
166 my_data->instanceMap[instance].surfaceExtensionEnabled = false;
168 my_data->instanceMap[instance].androidSurfaceExtensionEnabled = false;
171 my_data->instanceMap[instance].mirSurfaceExtensionEnabled = false;
174 my_data->instanceMap[instance].waylandSurfaceExtensionEnabled = false;
177 my_data->instanceMap[instance].win32SurfaceExtensionEnabled = false;
180 my_data->instanceMap[instance].xcbSurfaceExtensionEnabled = false;
183 my_data->instanceMap[instance].xlibSurfaceExtensionEnabled = false;
192 my_data->instanceMap[instance].surfaceExtensionEnabled = true;
197 my_data->instanceMap[instance].androidSurfaceExtensionEnabled = true;
203 my_data->instanceMap[instance].mirSurfaceExtensionEnabled = true;
209 my_data->instanceMap[instance].waylandSurfaceExtensionEnabled = true;
215 my_data->instanceMap[instance].win32SurfaceExtensionEnabled = true;
221 my_data->instanceMap[instance].xcbSurfaceExtensionEnabled = true;
227 my_data->instanceMap[instance].xlibSurfaceExtensionEnabled = true;
234 static void init_swapchain(layer_data *my_data, const VkAllocationCallbacks *pAllocator) {
236 layer_debug_actions(my_data->report_data, my_data->logging_callback, pAllocator, "lunarg_swapchain");
283 layer_data *my_data = get_my_data_ptr(get_dispatch_key(*pInstance), layer_data_map);
284 my_data->instance_dispatch_table = new VkLayerInstanceDispatchTable;
285 layer_init_instance_dispatch_table(*pInstance, my_data->instance_dispatch_table, fpGetInstanceProcAddr);
287 my_data->report_data = debug_report_create_instance(my_data->instance_dispatch_table, *pInstance,
290 // Call the following function after my_data is initialized:
292 init_swapchain(my_data, pAllocator);
299 layer_data *my_data = get_my_data_ptr(key, layer_data_map);
300 SwpInstance *pInstance = &(my_data->instanceMap[instance]);
303 my_data->instance_dispatch_table->DestroyInstance(instance, pAllocator);
326 my_data->physicalDeviceMap (which
328 my_data->physicalDeviceMap.erase(it->second->physicalDevice);
341 my_data->instanceMap.erase(instance);
345 while (my_data->logging_callback.size() > 0) {
346 VkDebugReportCallbackEXT callback = my_data->logging_callback.back();
347 layer_destroy_msg_callback(my_data->report_data, callback, pAllocator);
348 my_data->logging_callback.pop_back();
350 layer_debug_report_destroy_instance(my_data->report_data);
352 delete my_data->instance_dispatch_table;
367 layer_data *my_data = get_my_data_ptr(get_dispatch_key(physicalDevice), layer_data_map);
370 my_data->instance_dispatch_table->GetPhysicalDeviceQueueFamilyProperties(physicalDevice, pQueueFamilyPropertyCount,
375 SwpPhysicalDevice *pPhysicalDevice = &my_data->physicalDeviceMap[physicalDevice];
389 layer_data *my_data = get_my_data_ptr(get_dispatch_key(instance), layer_data_map);
391 SwpInstance *pInstance = &(my_data->instanceMap[instance]);
415 result = my_data->instance_dispatch_table->CreateAndroidSurfaceKHR(instance, pCreateInfo, pAllocator, pSurface);
419 pInstance = &(my_data->instanceMap[instance]);
422 my_data->surfaceMap[*pSurface].surface = *pSurface;
423 my_data->surfaceMap[*pSurface].pInstance = pInstance;
424 my_data->surfaceMap[*pSurface].usedAllocatorToCreate = (pAllocator != NULL);
425 my_data->surfaceMap[*pSurface].numQueueFamilyIndexSupport = 0;
426 my_data->surfaceMap[*pSurface].pQueueFamilyIndexSupport = NULL;
428 pInstance->surfaces[*pSurface] = &my_data->surfaceMap[*pSurface];
444 layer_data *my_data = get_my_data_ptr(get_dispatch_key(instance), layer_data_map);
446 SwpInstance *pInstance = &(my_data->instanceMap[instance]);
470 result = my_data->instance_dispatch_table->CreateMirSurfaceKHR(instance, pCreateInfo, pAllocator, pSurface);
474 pInstance = &(my_data->instanceMap[instance]);
477 my_data->surfaceMap[*pSurface].surface = *pSurface;
478 my_data->surfaceMap[*pSurface].pInstance = pInstance;
479 my_data->surfaceMap[*pSurface].usedAllocatorToCreate = (pAllocator != NULL);
480 my_data->surfaceMap[*pSurface].numQueueFamilyIndexSupport = 0;
481 my_data->surfaceMap[*pSurface].pQueueFamilyIndexSupport = NULL;
483 pInstance->surfaces[*pSurface] = &my_data->surfaceMap[*pSurface];
497 layer_data *my_data = get_my_data_ptr(get_dispatch_key(physicalDevice), layer_data_map);
499 SwpPhysicalDevice *pPhysicalDevice = &my_data->physicalDeviceMap[physicalDevice];
517 result = my_data->instance_dispatch_table->GetPhysicalDeviceMirPresentationSupportKHR(physicalDevice, queueFamilyIndex,
530 layer_data *my_data = get_my_data_ptr(get_dispatch_key(instance), layer_data_map);
532 SwpInstance *pInstance = &(my_data->instanceMap[instance]);
556 result = my_data->instance_dispatch_table->CreateWaylandSurfaceKHR(instance, pCreateInfo, pAllocator, pSurface);
560 pInstance = &(my_data->instanceMap[instance]);
563 my_data->surfaceMap[*pSurface].surface = *pSurface;
564 my_data->surfaceMap[*pSurface].pInstance = pInstance;
565 my_data->surfaceMap[*pSurface].usedAllocatorToCreate = (pAllocator != NULL);
566 my_data->surfaceMap[*pSurface].numQueueFamilyIndexSupport = 0;
567 my_data->surfaceMap[*pSurface].pQueueFamilyIndexSupport = NULL;
569 pInstance->surfaces[*pSurface] = &my_data->surfaceMap[*pSurface];
583 layer_data *my_data = get_my_data_ptr(get_dispatch_key(physicalDevice), layer_data_map);
585 SwpPhysicalDevice *pPhysicalDevice = &my_data->physicalDeviceMap[physicalDevice];
603 result = my_data->instance_dispatch_table->GetPhysicalDeviceWaylandPresentationSupportKHR(physicalDevice, queueFamilyIndex,
616 layer_data *my_data = get_my_data_ptr(get_dispatch_key(instance), layer_data_map);
618 SwpInstance *pInstance = &(my_data->instanceMap[instance]);
642 result = my_data->instance_dispatch_table->CreateWin32SurfaceKHR(instance, pCreateInfo, pAllocator, pSurface);
646 pInstance = &(my_data->instanceMap[instance]);
649 my_data->surfaceMap[*pSurface].surface = *pSurface;
650 my_data->surfaceMap[*pSurface].pInstance = pInstance;
651 my_data->surfaceMap[*pSurface].usedAllocatorToCreate = (pAllocator != NULL);
652 my_data->surfaceMap[*pSurface].numQueueFamilyIndexSupport = 0;
653 my_data->surfaceMap[*pSurface].pQueueFamilyIndexSupport = NULL;
655 pInstance->surfaces[*pSurface] = &my_data->surfaceMap[*pSurface];
668 layer_data *my_data = get_my_data_ptr(get_dispatch_key(physicalDevice), layer_data_map);
670 SwpPhysicalDevice *pPhysicalDevice = &my_data->physicalDeviceMap[physicalDevice];
688 result = my_data->instance_dispatch_table->GetPhysicalDeviceWin32PresentationSupportKHR(physicalDevice, queueFamilyIndex);
700 layer_data *my_data = get_my_data_ptr(get_dispatch_key(instance), layer_data_map);
702 SwpInstance *pInstance = &(my_data->instanceMap[instance]);
726 result = my_data->instance_dispatch_table->CreateXcbSurfaceKHR(instance, pCreateInfo, pAllocator, pSurface);
730 pInstance = &(my_data->instanceMap[instance]);
733 my_data->surfaceMap[*pSurface].surface = *pSurface;
734 my_data->surfaceMap[*pSurface].pInstance = pInstance;
735 my_data->surfaceMap[*pSurface].usedAllocatorToCreate = (pAllocator != NULL);
736 my_data->surfaceMap[*pSurface].numQueueFamilyIndexSupport = 0;
737 my_data->surfaceMap[*pSurface].pQueueFamilyIndexSupport = NULL;
739 pInstance->surfaces[*pSurface] = &my_data->surfaceMap[*pSurface];
753 layer_data *my_data = get_my_data_ptr(get_dispatch_key(physicalDevice), layer_data_map);
755 SwpPhysicalDevice *pPhysicalDevice = &my_data->physicalDeviceMap[physicalDevice];
773 result = my_data->instance_dispatch_table->GetPhysicalDeviceXcbPresentationSupportKHR(physicalDevice, queueFamilyIndex,
786 layer_data *my_data = get_my_data_ptr(get_dispatch_key(instance), layer_data_map);
788 SwpInstance *pInstance = &(my_data->instanceMap[instance]);
812 result = my_data->instance_dispatch_table->CreateXlibSurfaceKHR(instance, pCreateInfo, pAllocator, pSurface);
816 pInstance = &(my_data->instanceMap[instance]);
819 my_data->surfaceMap[*pSurface].surface = *pSurface;
820 my_data->surfaceMap[*pSurface].pInstance = pInstance;
821 my_data->surfaceMap[*pSurface].usedAllocatorToCreate = (pAllocator != NULL);
822 my_data->surfaceMap[*pSurface].numQueueFamilyIndexSupport = 0;
823 my_data->surfaceMap[*pSurface].pQueueFamilyIndexSupport = NULL;
825 pInstance->surfaces[*pSurface] = &my_data->surfaceMap[*pSurface];
839 layer_data *my_data = get_my_data_ptr(get_dispatch_key(physicalDevice), layer_data_map);
841 SwpPhysicalDevice *pPhysicalDevice = &my_data->physicalDeviceMap[physicalDevice];
859 result = my_data->instance_dispatch_table->GetPhysicalDeviceXlibPresentationSupportKHR(physicalDevice, queueFamilyIndex,
869 layer_data *my_data = get_my_data_ptr(get_dispatch_key(instance), layer_data_map);
871 SwpSurface *pSurface = &my_data->surfaceMap[surface];
904 my_data->surfaceMap.erase(surface);
910 my_data->instance_dispatch_table->DestroySurfaceKHR(instance, surface, pAllocator);
917 layer_data *my_data = get_my_data_ptr(get_dispatch_key(instance), layer_data_map);
920 result = my_data->instance_dispatch_table->EnumeratePhysicalDevices(instance, pPhysicalDeviceCount, pPhysicalDevices);
923 SwpInstance *pInstance = &(my_data->instanceMap[instance]);
927 my_data->physicalDeviceMap[pPhysicalDevices[i]].physicalDevice = pPhysicalDevices[i];
928 my_data->physicalDeviceMap[pPhysicalDevices[i]].pInstance = pInstance;
929 my_data
930 my_data->physicalDeviceMap[pPhysicalDevices[i]].gotQueueFamilyPropertyCount = false;
931 my_data->physicalDeviceMap[pPhysicalDevices[i]].gotSurfaceCapabilities = false;
932 my_data->physicalDeviceMap[pPhysicalDevices[i]].surfaceFormatCount = 0;
933 my_data->physicalDeviceMap[pPhysicalDevices[i]].pSurfaceFormats = NULL;
934 my_data->physicalDeviceMap[pPhysicalDevices[i]].presentModeCount = 0;
935 my_data->physicalDeviceMap[pPhysicalDevices[i]].pPresentModes = NULL;
938 pInstance->physicalDevices[pPhysicalDevices[i]] = &my_data->physicalDeviceMap[pPhysicalDevices[i]];
984 layer_data *my_data = get_my_data_ptr(key, layer_data_map);
987 my_data->device_dispatch_table->DestroyDevice(device, pAllocator);
991 SwpDevice *pDevice = &my_data->deviceMap[device];
1016 my_data->deviceMap.erase(device);
1018 delete my_data->device_dispatch_table;
1028 layer_data *my_data = get_my_data_ptr(get_dispatch_key(physicalDevice), layer_data_map);
1030 SwpPhysicalDevice *pPhysicalDevice = &my_data->physicalDeviceMap[physicalDevice];
1057 result = my_data->instance_dispatch_table->GetPhysicalDeviceSurfaceSupportKHR(physicalDevice, queueFamilyIndex, surface,
1062 pPhysicalDevice = &my_data->physicalDeviceMap[physicalDevice];
1095 layer_data *my_data = get_my_data_ptr(get_dispatch_key(physicalDevice), layer_data_map);
1097 SwpPhysicalDevice *pPhysicalDevice = &my_data->physicalDeviceMap[physicalDevice];
1113 result = my_data->instance_dispatch_table->GetPhysicalDeviceSurfaceCapabilitiesKHR(physicalDevice, surface,
1118 pPhysicalDevice = &my_data->physicalDeviceMap[physicalDevice];
1137 layer_data *my_data = get_my_data_ptr(get_dispatch_key(physicalDevice), layer_data_map);
1139 SwpPhysicalDevice *pPhysicalDevice = &my_data->physicalDeviceMap[physicalDevice];
1155 result = my_data->instance_dispatch_table->GetPhysicalDeviceSurfaceFormatsKHR(physicalDevice, surface, pSurfaceFormatCount,
1160 pPhysicalDevice = &my_data->physicalDeviceMap[physicalDevice];
1195 layer_data *my_data = get_my_data_ptr(get_dispatch_key(physicalDevice), layer_data_map);
1197 SwpPhysicalDevice *pPhysicalDevice = &my_data->physicalDeviceMap[physicalDevice];
1213 result = my_data->instance_dispatch_table->GetPhysicalDeviceSurfacePresentModesKHR(physicalDevice, surface,
1218 pPhysicalDevice = &my_data->physicalDeviceMap[physicalDevice];
1256 layer_data *my_data = get_my_data_ptr(get_dispatch_key(device), layer_data_map);
1258 SwpDevice *pDevice = &my_data->deviceMap[device];
1383 skipCall |= debug_report_log_msg(my_data->report_data, VK_DEBUG_REPORT_ERROR_BIT_EXT,
1412 skipCall |= debug_report_log_msg(my_data->report_data, VK_DEBUG_REPORT_ERROR_BIT_EXT,
1545 SwpSwapchain *pOldSwapchain = &my_data->swapchainMap[pCreateInfo->oldSwapchain];
1574 layer_data *my_data = get_my_data_ptr(get_dispatch_key(device), layer_data_map);
1581 result = my_data->device_dispatch_table->CreateSwapchainKHR(device, pCreateInfo, pAllocator, pSwapchain);
1586 SwpDevice *pDevice = &my_data->deviceMap[device];
1588 my_data->swapchainMap[*pSwapchain].swapchain = *pSwapchain;
1590 pDevice->swapchains[*pSwapchain] = &my_data->swapchainMap[*pSwapchain];
1592 my_data->swapchainMap[*pSwapchain].pDevice = pDevice;
1593 my_data->swapchainMap[*pSwapchain].imageCount = 0;
1594 my_data->swapchainMap[*pSwapchain].usedAllocatorToCreate = (pAllocator != NULL);
1600 SwpSurface *pSurface = ((my_data && pCreateInfo) ? &my_instance_data->surfaceMap[pCreateInfo->surface] : NULL);
1601 my_data->swapchainMap[*pSwapchain].pSurface = pSurface;
1603 pSurface->swapchains[*pSwapchain] = &my_data->swapchainMap[*pSwapchain];
1621 layer_data *my_data = get_my_data_ptr(get_dispatch_key(device), layer_data_map);
1623 SwpDevice *pDevice = &my_data->deviceMap[device];
1633 SwpSwapchain *pSwapchain = &my_data->swapchainMap[swapchain];
1657 my_data->swapchainMap.erase(swapchain);
1663 my_data->device_dispatch_table->DestroySwapchainKHR(device, swapchain, pAllocator);
1671 layer_data *my_data = get_my_data_ptr(get_dispatch_key(device), layer_data_map);
1673 SwpDevice *pDevice = &my_data->deviceMap[device];
1681 SwpSwapchain *pSwapchain = &my_data->swapchainMap[swapchain];
1689 result = my_data->device_dispatch_table->GetSwapchainImagesKHR(device, swapchain, pSwapchainImageCount, pSwapchainImages);
1693 pSwapchain = &my_data->swapchainMap[swapchain];
1736 layer_data *my_data = get_my_data_ptr(get_dispatch_key(device), layer_data_map);
1738 SwpDevice *pDevice = &my_data->deviceMap[device];
1751 SwpSwapchain *pSwapchain = &my_data->swapchainMap[swapchain];
1783 result = my_data->device_dispatch_table->AcquireNextImageKHR(device, swapchain, timeout, semaphore, fence, pImageIndex);
1787 pSwapchain = &my_data->swapchainMap[swapchain];
1810 layer_data *my_data = get_my_data_ptr(get_dispatch_key(queue), layer_data_map);
1837 SwpSwapchain *pSwapchain = &my_data->swapchainMap[pPresentInfo->pSwapchains[i]];
1860 SwpQueue *pQueue = &my_data->queueMap[queue];
1884 result = my_data->device_dispatch_table->QueuePresentKHR(queue, pPresentInfo);
1890 SwpSwapchain *pSwapchain = &my_data->swapchainMap[pPresentInfo->pSwapchains[i]];
1908 layer_data *my_data = get_my_data_ptr(get_dispatch_key(device), layer_data_map);
1912 my_data->device_dispatch_table->GetDeviceQueue(device, queueFamilyIndex, queueIndex, pQueue);
1916 SwpDevice *pDevice = &my_data->deviceMap[device];
1917 my_data->queueMap[&pQueue].queue = *pQueue;
1919 pDevice->queues[*pQueue] = &my_data->queueMap[*pQueue];
1921 my_data->queueMap[&pQueue].pDevice = pDevice;
1922 my_data->queueMap[&pQueue].queueFamilyIndex = queueFamilyIndex;
1930 layer_data *my_data = get_my_data_ptr(get_dispatch_key(instance), layer_data_map);
1932 my_data->instance_dispatch_table->CreateDebugReportCallbackEXT(instance, pCreateInfo, pAllocator, pMsgCallback);
1935 result = layer_create_msg_callback(my_data->report_data, pCreateInfo, pAllocator, pMsgCallback);
1944 layer_data *my_data = get_my_data_ptr(get_dispatch_key(instance), layer_data_map);
1945 my_data->instance_dispatch_table->DestroyDebugReportCallbackEXT(instance, msgCallback, pAllocator);
1947 layer_destroy_msg_callback(my_data->report_data, msgCallback, pAllocator);
1954 layer_data *my_data = get_my_data_ptr(get_dispatch_key(instance), layer_data_map);
1955 my_data->instance_dispatch_table->DebugReportMessageEXT(instance, flags, objType, object, location, msgCode, pLayerPrefix,
1969 layer_data *my_data;
1971 my_data = get_my_data_ptr(get_dispatch_key(device), layer_data_map);
1972 VkLayerDispatchTable *pDisp = my_data->device_dispatch_table;
2019 layer_data *my_data;
2020 my_data = get_my_data_ptr(get_dispatch_key(instance), layer_data_map);
2021 VkLayerInstanceDispatchTable *pTable = my_data->instance_dispatch_table;
2022 addr = debug_report_get_instance_proc_addr(my_data->report_data, funcName);