Lines Matching refs:device

71 uint64_t objTrackGetObjectCount(VkDevice device);
121 static void createDeviceRegisterExtensions(const VkDeviceCreateInfo *pCreateInfo, VkDevice device) { in createDeviceRegisterExtensions() argument
122 layer_data *my_device_data = get_my_data_ptr(get_dispatch_key(device), layer_data_map); in createDeviceRegisterExtensions()
123 VkLayerDispatchTable *pDisp = get_dispatch_table(object_tracker_device_table_map, device); in createDeviceRegisterExtensions()
125 pDisp->CreateSwapchainKHR = (PFN_vkCreateSwapchainKHR)gpa(device, "vkCreateSwapchainKHR"); in createDeviceRegisterExtensions()
126 pDisp->DestroySwapchainKHR = (PFN_vkDestroySwapchainKHR)gpa(device, "vkDestroySwapchainKHR"); in createDeviceRegisterExtensions()
127 …pDisp->GetSwapchainImagesKHR = (PFN_vkGetSwapchainImagesKHR)gpa(device, "vkGetSwapchainImagesKHR"); in createDeviceRegisterExtensions()
128 pDisp->AcquireNextImageKHR = (PFN_vkAcquireNextImageKHR)gpa(device, "vkAcquireNextImageKHR"); in createDeviceRegisterExtensions()
129 pDisp->QueuePresentKHR = (PFN_vkQueuePresentKHR)gpa(device, "vkQueuePresentKHR"); in createDeviceRegisterExtensions()
462 static void alloc_command_buffer(VkDevice device, VkCommandPool commandPool, VkCommandBuffer vkObj, in alloc_command_buffer() argument
464 …log_msg(mdd(device), VK_DEBUG_REPORT_INFORMATION_BIT_EXT, objType, reinterpret_cast<uint64_t>(vkOb… in alloc_command_buffer()
470 pNewObjNode->belongsTo = (uint64_t)device; in alloc_command_buffer()
484 static void free_command_buffer(VkDevice device, VkCommandPool commandPool, VkCommandBuffer command… in free_command_buffer() argument
490 … log_msg(mdd(device), VK_DEBUG_REPORT_ERROR_BIT_EXT, pNode->objType, object_handle, __LINE__, in free_command_buffer()
502 …log_msg(mdd(device), VK_DEBUG_REPORT_INFORMATION_BIT_EXT, pNode->objType, object_handle, __LINE__,… in free_command_buffer()
510 …log_msg(mdd(device), VK_DEBUG_REPORT_ERROR_BIT_EXT, (VkDebugReportObjectTypeEXT)0, object_handle, … in free_command_buffer()
516 static void alloc_descriptor_set(VkDevice device, VkDescriptorPool descriptorPool, VkDescriptorSet … in alloc_descriptor_set() argument
518 …log_msg(mdd(device), VK_DEBUG_REPORT_INFORMATION_BIT_EXT, objType, (uint64_t)(vkObj), __LINE__, OB… in alloc_descriptor_set()
524 pNewObjNode->belongsTo = (uint64_t)device; in alloc_descriptor_set()
534 static void free_descriptor_set(VkDevice device, VkDescriptorPool descriptorPool, VkDescriptorSet d… in free_descriptor_set() argument
540 … log_msg(mdd(device), VK_DEBUG_REPORT_ERROR_BIT_EXT, pNode->objType, object_handle, __LINE__, in free_descriptor_set()
551 …log_msg(mdd(device), VK_DEBUG_REPORT_INFORMATION_BIT_EXT, pNode->objType, object_handle, __LINE__,… in free_descriptor_set()
559 …log_msg(mdd(device), VK_DEBUG_REPORT_ERROR_BIT_EXT, (VkDebugReportObjectTypeEXT)0, object_handle, … in free_descriptor_set()
718 void explicit_GetDeviceQueue(VkDevice device, uint32_t queueNodeIndex, uint32_t queueIndex, VkQueue… in explicit_GetDeviceQueue() argument
720 validate_device(device, device, VK_DEBUG_REPORT_OBJECT_TYPE_DEVICE_EXT, false); in explicit_GetDeviceQueue()
723 …get_dispatch_table(object_tracker_device_table_map, device)->GetDeviceQueue(device, queueNodeIndex… in explicit_GetDeviceQueue()
727 create_queue(device, *pQueue, VK_DEBUG_REPORT_OBJECT_TYPE_QUEUE_EXT); in explicit_GetDeviceQueue()
731 VkResult explicit_MapMemory(VkDevice device, VkDeviceMemory mem, VkDeviceSize offset, VkDeviceSize … in explicit_MapMemory() argument
735 …skipCall |= set_device_memory_status(device, mem, VK_DEBUG_REPORT_OBJECT_TYPE_DEVICE_MEMORY_EXT, O… in explicit_MapMemory()
736 skipCall |= validate_device(device, device, VK_DEBUG_REPORT_OBJECT_TYPE_DEVICE_EXT, false); in explicit_MapMemory()
742 …get_dispatch_table(object_tracker_device_table_map, device)->MapMemory(device, mem, offset, size, … in explicit_MapMemory()
747 void explicit_UnmapMemory(VkDevice device, VkDeviceMemory mem) { in explicit_UnmapMemory() argument
750 …skipCall |= reset_device_memory_status(device, mem, VK_DEBUG_REPORT_OBJECT_TYPE_DEVICE_MEMORY_EXT,… in explicit_UnmapMemory()
751 skipCall |= validate_device(device, device, VK_DEBUG_REPORT_OBJECT_TYPE_DEVICE_EXT, false); in explicit_UnmapMemory()
756 get_dispatch_table(object_tracker_device_table_map, device)->UnmapMemory(device, mem); in explicit_UnmapMemory()
779 VkResult explicit_AllocateCommandBuffers(VkDevice device, const VkCommandBufferAllocateInfo *pAlloc… in explicit_AllocateCommandBuffers() argument
783 skipCall |= validate_device(device, device, VK_DEBUG_REPORT_OBJECT_TYPE_DEVICE_EXT, false); in explicit_AllocateCommandBuffers()
784 …skipCall |= validate_command_pool(device, pAllocateInfo->commandPool, VK_DEBUG_REPORT_OBJECT_TYPE_… in explicit_AllocateCommandBuffers()
792 …get_dispatch_table(object_tracker_device_table_map, device)->AllocateCommandBuffers(device, pAlloc… in explicit_AllocateCommandBuffers()
796 …alloc_command_buffer(device, pAllocateInfo->commandPool, pCommandBuffers[i], VK_DEBUG_REPORT_OBJEC… in explicit_AllocateCommandBuffers()
804 VkResult explicit_AllocateDescriptorSets(VkDevice device, const VkDescriptorSetAllocateInfo *pAlloc… in explicit_AllocateDescriptorSets() argument
808 skipCall |= validate_device(device, device, VK_DEBUG_REPORT_OBJECT_TYPE_DEVICE_EXT, false); in explicit_AllocateDescriptorSets()
810 …validate_descriptor_pool(device, pAllocateInfo->descriptorPool, VK_DEBUG_REPORT_OBJECT_TYPE_DESCRI… in explicit_AllocateDescriptorSets()
812 skipCall |= validate_descriptor_set_layout(device, pAllocateInfo->pSetLayouts[i], in explicit_AllocateDescriptorSets()
820 …get_dispatch_table(object_tracker_device_table_map, device)->AllocateDescriptorSets(device, pAlloc… in explicit_AllocateDescriptorSets()
825 alloc_descriptor_set(device, pAllocateInfo->descriptorPool, pDescriptorSets[i], in explicit_AllocateDescriptorSets()
834 void explicit_FreeCommandBuffers(VkDevice device, VkCommandPool commandPool, uint32_t commandBuffer… in explicit_FreeCommandBuffers() argument
837 validate_command_pool(device, commandPool, VK_DEBUG_REPORT_OBJECT_TYPE_COMMAND_POOL_EXT, false); in explicit_FreeCommandBuffers()
838 validate_device(device, device, VK_DEBUG_REPORT_OBJECT_TYPE_DEVICE_EXT, false); in explicit_FreeCommandBuffers()
841 get_dispatch_table(object_tracker_device_table_map, device) in explicit_FreeCommandBuffers()
842 ->FreeCommandBuffers(device, commandPool, commandBufferCount, pCommandBuffers); in explicit_FreeCommandBuffers()
846 free_command_buffer(device, commandPool, *pCommandBuffers); in explicit_FreeCommandBuffers()
852 void explicit_DestroySwapchainKHR(VkDevice device, VkSwapchainKHR swapchain, const VkAllocationCall… in explicit_DestroySwapchainKHR() argument
865 destroy_swapchain_khr(device, swapchain); in explicit_DestroySwapchainKHR()
868 …get_dispatch_table(object_tracker_device_table_map, device)->DestroySwapchainKHR(device, swapchain… in explicit_DestroySwapchainKHR()
871 void explicit_FreeMemory(VkDevice device, VkDeviceMemory mem, const VkAllocationCallbacks *pAllocat… in explicit_FreeMemory() argument
873 validate_device(device, device, VK_DEBUG_REPORT_OBJECT_TYPE_DEVICE_EXT, false); in explicit_FreeMemory()
876 … get_dispatch_table(object_tracker_device_table_map, device)->FreeMemory(device, mem, pAllocator); in explicit_FreeMemory()
879 destroy_device_memory(device, mem); in explicit_FreeMemory()
883 VkResult explicit_FreeDescriptorSets(VkDevice device, VkDescriptorPool descriptorPool, uint32_t cou… in explicit_FreeDescriptorSets() argument
886 …validate_descriptor_pool(device, descriptorPool, VK_DEBUG_REPORT_OBJECT_TYPE_DESCRIPTOR_POOL_EXT, … in explicit_FreeDescriptorSets()
887 validate_device(device, device, VK_DEBUG_REPORT_OBJECT_TYPE_DEVICE_EXT, false); in explicit_FreeDescriptorSets()
889 VkResult result = get_dispatch_table(object_tracker_device_table_map, device) in explicit_FreeDescriptorSets()
890 ->FreeDescriptorSets(device, descriptorPool, count, pDescriptorSets); in explicit_FreeDescriptorSets()
894 free_descriptor_set(device, descriptorPool, *pDescriptorSets++); in explicit_FreeDescriptorSets()
900 void explicit_DestroyDescriptorPool(VkDevice device, VkDescriptorPool descriptorPool, const VkAlloc… in explicit_DestroyDescriptorPool() argument
903 skipCall |= validate_device(device, device, VK_DEBUG_REPORT_OBJECT_TYPE_DEVICE_EXT, false); in explicit_DestroyDescriptorPool()
904 …skipCall |= validate_descriptor_pool(device, descriptorPool, VK_DEBUG_REPORT_OBJECT_TYPE_DESCRIPTO… in explicit_DestroyDescriptorPool()
917 destroy_descriptor_set(device, (VkDescriptorSet)((*del_itr).first)); in explicit_DestroyDescriptorPool()
920 destroy_descriptor_pool(device, descriptorPool); in explicit_DestroyDescriptorPool()
922 …get_dispatch_table(object_tracker_device_table_map, device)->DestroyDescriptorPool(device, descrip… in explicit_DestroyDescriptorPool()
925 void explicit_DestroyCommandPool(VkDevice device, VkCommandPool commandPool, const VkAllocationCall… in explicit_DestroyCommandPool() argument
928 skipCall |= validate_device(device, device, VK_DEBUG_REPORT_OBJECT_TYPE_DEVICE_EXT, false); in explicit_DestroyCommandPool()
929 …skipCall |= validate_command_pool(device, commandPool, VK_DEBUG_REPORT_OBJECT_TYPE_COMMAND_POOL_EX… in explicit_DestroyCommandPool()
947 destroy_command_pool(device, commandPool); in explicit_DestroyCommandPool()
949 …get_dispatch_table(object_tracker_device_table_map, device)->DestroyCommandPool(device, commandPoo… in explicit_DestroyCommandPool()
952 VkResult explicit_GetSwapchainImagesKHR(VkDevice device, VkSwapchainKHR swapchain, uint32_t *pCount… in explicit_GetSwapchainImagesKHR() argument
955 skipCall |= validate_device(device, device, VK_DEBUG_REPORT_OBJECT_TYPE_DEVICE_EXT, false); in explicit_GetSwapchainImagesKHR()
960 VkResult result = get_dispatch_table(object_tracker_device_table_map, device) in explicit_GetSwapchainImagesKHR()
961 ->GetSwapchainImagesKHR(device, swapchain, pCount, pSwapchainImages); in explicit_GetSwapchainImagesKHR()
966 create_swapchain_image_obj(device, pSwapchainImages[i], swapchain); in explicit_GetSwapchainImagesKHR()
974 VkResult explicit_CreateGraphicsPipelines(VkDevice device, VkPipelineCache pipelineCache, uint32_t … in explicit_CreateGraphicsPipelines() argument
979 skipCall |= validate_device(device, device, VK_DEBUG_REPORT_OBJECT_TYPE_DEVICE_EXT, false); in explicit_CreateGraphicsPipelines()
983 skipCall |= validate_pipeline(device, pCreateInfos[idx0].basePipelineHandle, in explicit_CreateGraphicsPipelines()
987 skipCall |= validate_pipeline_layout(device, pCreateInfos[idx0].layout, in explicit_CreateGraphicsPipelines()
993 … skipCall |= validate_shader_module(device, pCreateInfos[idx0].pStages[idx1].module, in explicit_CreateGraphicsPipelines()
1000 …validate_render_pass(device, pCreateInfos[idx0].renderPass, VK_DEBUG_REPORT_OBJECT_TYPE_RENDER_PAS… in explicit_CreateGraphicsPipelines()
1005 …skipCall |= validate_pipeline_cache(device, pipelineCache, VK_DEBUG_REPORT_OBJECT_TYPE_PIPELINE_CA… in explicit_CreateGraphicsPipelines()
1010 VkResult result = get_dispatch_table(object_tracker_device_table_map, device) in explicit_CreateGraphicsPipelines()
1011 …->CreateGraphicsPipelines(device, pipelineCache, createInfoCount, pCreateInfos, pAllocator, pPipel… in explicit_CreateGraphicsPipelines()
1015 create_pipeline(device, pPipelines[idx2], VK_DEBUG_REPORT_OBJECT_TYPE_PIPELINE_EXT); in explicit_CreateGraphicsPipelines()
1023 VkResult explicit_CreateComputePipelines(VkDevice device, VkPipelineCache pipelineCache, uint32_t c… in explicit_CreateComputePipelines() argument
1028 skipCall |= validate_device(device, device, VK_DEBUG_REPORT_OBJECT_TYPE_DEVICE_EXT, false); in explicit_CreateComputePipelines()
1032 skipCall |= validate_pipeline(device, pCreateInfos[idx0].basePipelineHandle, in explicit_CreateComputePipelines()
1036 skipCall |= validate_pipeline_layout(device, pCreateInfos[idx0].layout, in explicit_CreateComputePipelines()
1040 skipCall |= validate_shader_module(device, pCreateInfos[idx0].stage.module, in explicit_CreateComputePipelines()
1046 …skipCall |= validate_pipeline_cache(device, pipelineCache, VK_DEBUG_REPORT_OBJECT_TYPE_PIPELINE_CA… in explicit_CreateComputePipelines()
1051 VkResult result = get_dispatch_table(object_tracker_device_table_map, device) in explicit_CreateComputePipelines()
1052 …->CreateComputePipelines(device, pipelineCache, createInfoCount, pCreateInfos, pAllocator, pPipeli… in explicit_CreateComputePipelines()
1056 create_pipeline(device, pPipelines[idx1], VK_DEBUG_REPORT_OBJECT_TYPE_PIPELINE_EXT); in explicit_CreateComputePipelines()