Skip to content

Commit

Permalink
vulkaninfo: Add video profiles support
Browse files Browse the repository at this point in the history
  • Loading branch information
aqnuep committed Dec 4, 2024
1 parent 4f965e1 commit 0169ad3
Show file tree
Hide file tree
Showing 8 changed files with 4,757 additions and 1,445 deletions.
151 changes: 19 additions & 132 deletions icd/generated/function_declarations.h
Original file line number Diff line number Diff line change
Expand Up @@ -1620,100 +1620,6 @@ static VKAPI_ATTR void VKAPI_CALL GetDeviceImageSparseMemoryRequirements(
VkSparseImageMemoryRequirements2* pSparseMemoryRequirements);


static VKAPI_ATTR void VKAPI_CALL CmdSetLineStipple(
VkCommandBuffer commandBuffer,
uint32_t lineStippleFactor,
uint16_t lineStipplePattern);

static VKAPI_ATTR VkResult VKAPI_CALL MapMemory2(
VkDevice device,
const VkMemoryMapInfo* pMemoryMapInfo,
void** ppData);

static VKAPI_ATTR VkResult VKAPI_CALL UnmapMemory2(
VkDevice device,
const VkMemoryUnmapInfo* pMemoryUnmapInfo);

static VKAPI_ATTR void VKAPI_CALL CmdBindIndexBuffer2(
VkCommandBuffer commandBuffer,
VkBuffer buffer,
VkDeviceSize offset,
VkDeviceSize size,
VkIndexType indexType);

static VKAPI_ATTR void VKAPI_CALL GetRenderingAreaGranularity(
VkDevice device,
const VkRenderingAreaInfo* pRenderingAreaInfo,
VkExtent2D* pGranularity);

static VKAPI_ATTR void VKAPI_CALL GetDeviceImageSubresourceLayout(
VkDevice device,
const VkDeviceImageSubresourceInfo* pInfo,
VkSubresourceLayout2* pLayout);

static VKAPI_ATTR void VKAPI_CALL GetImageSubresourceLayout2(
VkDevice device,
VkImage image,
const VkImageSubresource2* pSubresource,
VkSubresourceLayout2* pLayout);

static VKAPI_ATTR void VKAPI_CALL CmdPushDescriptorSet(
VkCommandBuffer commandBuffer,
VkPipelineBindPoint pipelineBindPoint,
VkPipelineLayout layout,
uint32_t set,
uint32_t descriptorWriteCount,
const VkWriteDescriptorSet* pDescriptorWrites);

static VKAPI_ATTR void VKAPI_CALL CmdPushDescriptorSetWithTemplate(
VkCommandBuffer commandBuffer,
VkDescriptorUpdateTemplate descriptorUpdateTemplate,
VkPipelineLayout layout,
uint32_t set,
const void* pData);

static VKAPI_ATTR void VKAPI_CALL CmdSetRenderingAttachmentLocations(
VkCommandBuffer commandBuffer,
const VkRenderingAttachmentLocationInfo* pLocationInfo);

static VKAPI_ATTR void VKAPI_CALL CmdSetRenderingInputAttachmentIndices(
VkCommandBuffer commandBuffer,
const VkRenderingInputAttachmentIndexInfo* pInputAttachmentIndexInfo);

static VKAPI_ATTR void VKAPI_CALL CmdBindDescriptorSets2(
VkCommandBuffer commandBuffer,
const VkBindDescriptorSetsInfo* pBindDescriptorSetsInfo);

static VKAPI_ATTR void VKAPI_CALL CmdPushConstants2(
VkCommandBuffer commandBuffer,
const VkPushConstantsInfo* pPushConstantsInfo);

static VKAPI_ATTR void VKAPI_CALL CmdPushDescriptorSet2(
VkCommandBuffer commandBuffer,
const VkPushDescriptorSetInfo* pPushDescriptorSetInfo);

static VKAPI_ATTR void VKAPI_CALL CmdPushDescriptorSetWithTemplate2(
VkCommandBuffer commandBuffer,
const VkPushDescriptorSetWithTemplateInfo* pPushDescriptorSetWithTemplateInfo);

static VKAPI_ATTR VkResult VKAPI_CALL CopyMemoryToImage(
VkDevice device,
const VkCopyMemoryToImageInfo* pCopyMemoryToImageInfo);

static VKAPI_ATTR VkResult VKAPI_CALL CopyImageToMemory(
VkDevice device,
const VkCopyImageToMemoryInfo* pCopyImageToMemoryInfo);

static VKAPI_ATTR VkResult VKAPI_CALL CopyImageToImage(
VkDevice device,
const VkCopyImageToImageInfo* pCopyImageToImageInfo);

static VKAPI_ATTR VkResult VKAPI_CALL TransitionImageLayout(
VkDevice device,
uint32_t transitionCount,
const VkHostImageLayoutTransitionInfo* pTransitions);


static VKAPI_ATTR void VKAPI_CALL DestroySurfaceKHR(
VkInstance instance,
VkSurfaceKHR surface,
Expand Down Expand Up @@ -2384,11 +2290,11 @@ static VKAPI_ATTR void VKAPI_CALL CmdSetFragmentShadingRateKHR(

static VKAPI_ATTR void VKAPI_CALL CmdSetRenderingAttachmentLocationsKHR(
VkCommandBuffer commandBuffer,
const VkRenderingAttachmentLocationInfo* pLocationInfo);
const VkRenderingAttachmentLocationInfoKHR* pLocationInfo);

static VKAPI_ATTR void VKAPI_CALL CmdSetRenderingInputAttachmentIndicesKHR(
VkCommandBuffer commandBuffer,
const VkRenderingInputAttachmentIndexInfo* pInputAttachmentIndexInfo);
const VkRenderingInputAttachmentIndexInfoKHR* pInputAttachmentIndexInfo);



Expand Down Expand Up @@ -2460,12 +2366,12 @@ static VKAPI_ATTR VkResult VKAPI_CALL GetPipelineExecutableInternalRepresentatio

static VKAPI_ATTR VkResult VKAPI_CALL MapMemory2KHR(
VkDevice device,
const VkMemoryMapInfo* pMemoryMapInfo,
const VkMemoryMapInfoKHR* pMemoryMapInfo,
void** ppData);

static VKAPI_ATTR VkResult VKAPI_CALL UnmapMemory2KHR(
VkDevice device,
const VkMemoryUnmapInfo* pMemoryUnmapInfo);
const VkMemoryUnmapInfoKHR* pMemoryUnmapInfo);



Expand Down Expand Up @@ -2586,19 +2492,19 @@ static VKAPI_ATTR void VKAPI_CALL CmdBindIndexBuffer2KHR(

static VKAPI_ATTR void VKAPI_CALL GetRenderingAreaGranularityKHR(
VkDevice device,
const VkRenderingAreaInfo* pRenderingAreaInfo,
const VkRenderingAreaInfoKHR* pRenderingAreaInfo,
VkExtent2D* pGranularity);

static VKAPI_ATTR void VKAPI_CALL GetDeviceImageSubresourceLayoutKHR(
VkDevice device,
const VkDeviceImageSubresourceInfo* pInfo,
VkSubresourceLayout2* pLayout);
const VkDeviceImageSubresourceInfoKHR* pInfo,
VkSubresourceLayout2KHR* pLayout);

static VKAPI_ATTR void VKAPI_CALL GetImageSubresourceLayout2KHR(
VkDevice device,
VkImage image,
const VkImageSubresource2* pSubresource,
VkSubresourceLayout2* pLayout);
const VkImageSubresource2KHR* pSubresource,
VkSubresourceLayout2KHR* pLayout);



Expand Down Expand Up @@ -2667,19 +2573,19 @@ static VKAPI_ATTR VkResult VKAPI_CALL GetCalibratedTimestampsKHR(

static VKAPI_ATTR void VKAPI_CALL CmdBindDescriptorSets2KHR(
VkCommandBuffer commandBuffer,
const VkBindDescriptorSetsInfo* pBindDescriptorSetsInfo);
const VkBindDescriptorSetsInfoKHR* pBindDescriptorSetsInfo);

static VKAPI_ATTR void VKAPI_CALL CmdPushConstants2KHR(
VkCommandBuffer commandBuffer,
const VkPushConstantsInfo* pPushConstantsInfo);
const VkPushConstantsInfoKHR* pPushConstantsInfo);

static VKAPI_ATTR void VKAPI_CALL CmdPushDescriptorSet2KHR(
VkCommandBuffer commandBuffer,
const VkPushDescriptorSetInfo* pPushDescriptorSetInfo);
const VkPushDescriptorSetInfoKHR* pPushDescriptorSetInfo);

static VKAPI_ATTR void VKAPI_CALL CmdPushDescriptorSetWithTemplate2KHR(
VkCommandBuffer commandBuffer,
const VkPushDescriptorSetWithTemplateInfo* pPushDescriptorSetWithTemplateInfo);
const VkPushDescriptorSetWithTemplateInfoKHR* pPushDescriptorSetWithTemplateInfo);

static VKAPI_ATTR void VKAPI_CALL CmdSetDescriptorBufferOffsets2EXT(
VkCommandBuffer commandBuffer,
Expand Down Expand Up @@ -3628,26 +3534,26 @@ static VKAPI_ATTR void VKAPI_CALL CmdSetStencilOpEXT(

static VKAPI_ATTR VkResult VKAPI_CALL CopyMemoryToImageEXT(
VkDevice device,
const VkCopyMemoryToImageInfo* pCopyMemoryToImageInfo);
const VkCopyMemoryToImageInfoEXT* pCopyMemoryToImageInfo);

static VKAPI_ATTR VkResult VKAPI_CALL CopyImageToMemoryEXT(
VkDevice device,
const VkCopyImageToMemoryInfo* pCopyImageToMemoryInfo);
const VkCopyImageToMemoryInfoEXT* pCopyImageToMemoryInfo);

static VKAPI_ATTR VkResult VKAPI_CALL CopyImageToImageEXT(
VkDevice device,
const VkCopyImageToImageInfo* pCopyImageToImageInfo);
const VkCopyImageToImageInfoEXT* pCopyImageToImageInfo);

static VKAPI_ATTR VkResult VKAPI_CALL TransitionImageLayoutEXT(
VkDevice device,
uint32_t transitionCount,
const VkHostImageLayoutTransitionInfo* pTransitions);
const VkHostImageLayoutTransitionInfoEXT* pTransitions);

static VKAPI_ATTR void VKAPI_CALL GetImageSubresourceLayout2EXT(
VkDevice device,
VkImage image,
const VkImageSubresource2* pSubresource,
VkSubresourceLayout2* pLayout);
const VkImageSubresource2KHR* pSubresource,
VkSubresourceLayout2KHR* pLayout);



Expand Down Expand Up @@ -4963,25 +4869,6 @@ static const std::unordered_map<std::string, void*> name_to_funcptr_map = {
{"vkGetDeviceBufferMemoryRequirements", (void*)GetDeviceBufferMemoryRequirements},
{"vkGetDeviceImageMemoryRequirements", (void*)GetDeviceImageMemoryRequirements},
{"vkGetDeviceImageSparseMemoryRequirements", (void*)GetDeviceImageSparseMemoryRequirements},
{"vkCmdSetLineStipple", (void*)CmdSetLineStipple},
{"vkMapMemory2", (void*)MapMemory2},
{"vkUnmapMemory2", (void*)UnmapMemory2},
{"vkCmdBindIndexBuffer2", (void*)CmdBindIndexBuffer2},
{"vkGetRenderingAreaGranularity", (void*)GetRenderingAreaGranularity},
{"vkGetDeviceImageSubresourceLayout", (void*)GetDeviceImageSubresourceLayout},
{"vkGetImageSubresourceLayout2", (void*)GetImageSubresourceLayout2},
{"vkCmdPushDescriptorSet", (void*)CmdPushDescriptorSet},
{"vkCmdPushDescriptorSetWithTemplate", (void*)CmdPushDescriptorSetWithTemplate},
{"vkCmdSetRenderingAttachmentLocations", (void*)CmdSetRenderingAttachmentLocations},
{"vkCmdSetRenderingInputAttachmentIndices", (void*)CmdSetRenderingInputAttachmentIndices},
{"vkCmdBindDescriptorSets2", (void*)CmdBindDescriptorSets2},
{"vkCmdPushConstants2", (void*)CmdPushConstants2},
{"vkCmdPushDescriptorSet2", (void*)CmdPushDescriptorSet2},
{"vkCmdPushDescriptorSetWithTemplate2", (void*)CmdPushDescriptorSetWithTemplate2},
{"vkCopyMemoryToImage", (void*)CopyMemoryToImage},
{"vkCopyImageToMemory", (void*)CopyImageToMemory},
{"vkCopyImageToImage", (void*)CopyImageToImage},
{"vkTransitionImageLayout", (void*)TransitionImageLayout},
{"vkDestroySurfaceKHR", (void*)DestroySurfaceKHR},
{"vkGetPhysicalDeviceSurfaceSupportKHR", (void*)GetPhysicalDeviceSurfaceSupportKHR},
{"vkGetPhysicalDeviceSurfaceCapabilitiesKHR", (void*)GetPhysicalDeviceSurfaceCapabilitiesKHR},
Expand Down
Loading

0 comments on commit 0169ad3

Please sign in to comment.