diff options
author | Jason Ekstrand <[email protected]> | 2015-07-14 17:06:11 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2015-07-14 17:06:11 -0700 |
commit | c7fcfebd5bb5e1fb51b15615ecb091dbc986885d (patch) | |
tree | 113bffffe1924219f2bd25ad97b8502c7a93d773 /src | |
parent | 2a9136feb46b2491e9d93c7980bc69bed7eae6a8 (diff) |
vk: Add stubs for all the sparse resource stuff
Diffstat (limited to 'src')
-rw-r--r-- | src/vulkan/device.c | 38 | ||||
-rw-r--r-- | src/vulkan/formats.c | 25 |
2 files changed, 56 insertions, 7 deletions
diff --git a/src/vulkan/device.c b/src/vulkan/device.c index 7ab7a05706f..b53000a5372 100644 --- a/src/vulkan/device.c +++ b/src/vulkan/device.c @@ -1339,6 +1339,24 @@ VkResult anv_GetImageMemoryRequirements( return VK_SUCCESS; } +VkResult anv_GetImageSparseMemoryRequirements( + VkDevice device, + VkImage image, + uint32_t* pNumRequirements, + VkSparseImageMemoryRequirements* pSparseMemoryRequirements) +{ + return vk_error(VK_UNSUPPORTED); +} + +VkResult anv_GetDeviceMemoryCommitment( + VkDevice device, + VkDeviceMemory memory, + VkDeviceSize* pCommittedMemoryInBytes) +{ + *pCommittedMemoryInBytes = 0; + stub_return(VK_SUCCESS); +} + VkResult anv_BindBufferMemory( VkDevice device, VkBuffer _buffer, @@ -1372,10 +1390,17 @@ VkResult anv_BindImageMemory( VkResult anv_QueueBindSparseBufferMemory( VkQueue queue, VkBuffer buffer, - VkDeviceSize rangeOffset, - VkDeviceSize rangeSize, - VkDeviceMemory mem, - VkDeviceSize memOffset) + uint32_t numBindings, + const VkSparseMemoryBindInfo* pBindInfo) +{ + stub_return(VK_UNSUPPORTED); +} + +VkResult anv_QueueBindSparseImageOpaqueMemory( + VkQueue queue, + VkImage image, + uint32_t numBindings, + const VkSparseMemoryBindInfo* pBindInfo) { stub_return(VK_UNSUPPORTED); } @@ -1383,9 +1408,8 @@ VkResult anv_QueueBindSparseBufferMemory( VkResult anv_QueueBindSparseImageMemory( VkQueue queue, VkImage image, - const VkImageMemoryBindInfo* pBindInfo, - VkDeviceMemory mem, - VkDeviceSize memOffset) + uint32_t numBindings, + const VkSparseImageMemoryBindInfo* pBindInfo) { stub_return(VK_UNSUPPORTED); } diff --git a/src/vulkan/formats.c b/src/vulkan/formats.c index 361dd70fa3e..9d9294b7ebd 100644 --- a/src/vulkan/formats.c +++ b/src/vulkan/formats.c @@ -307,3 +307,28 @@ VkResult anv_GetPhysicalDeviceFormatProperties( return VK_SUCCESS; } + +VkResult anv_GetPhysicalDeviceImageFormatProperties( + VkPhysicalDevice physicalDevice, + VkFormat format, + VkImageType type, + VkImageTiling tiling, + VkImageUsageFlags usage, + VkImageFormatProperties* pImageFormatProperties) +{ + /* TODO: We should do something here. Chad? */ + stub_return(VK_UNSUPPORTED); +} + +VkResult anv_GetPhysicalDeviceSparseImageFormatProperties( + VkPhysicalDevice physicalDevice, + VkFormat format, + VkImageType type, + uint32_t samples, + VkImageUsageFlags usage, + VkImageTiling tiling, + uint32_t* pNumProperties, + VkSparseImageFormatProperties* pProperties) +{ + stub_return(VK_UNSUPPORTED); +} |