Skip to content

Commit

Permalink
Implement GetPhysicalDeviceSparseImageFormatProperties
Browse files Browse the repository at this point in the history
We don't support any sparse features, so we can always just produce zero
properties structures here. The VK1.1/GPDP2 equivalent already forwards
to this function, so we also get that for free.

Bug: b/118429780
Change-Id: I7b43a291354f1ca2ae01d021dfa48263b08b57cc
Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/26308
Tested-by: Chris Forbes <chrisforbes@google.com>
Reviewed-by: Alexis Hétu <sugoi@google.com>
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Kokoro-Presubmit: kokoro <noreply+kokoro@google.com>
  • Loading branch information
chrisforbes committed Mar 6, 2019
1 parent 9584fe4 commit 2c25b14
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/Vulkan/libVulkan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -689,8 +689,11 @@ VKAPI_ATTR void VKAPI_CALL vkGetImageSparseMemoryRequirements(VkDevice device, V

VKAPI_ATTR void VKAPI_CALL vkGetPhysicalDeviceSparseImageFormatProperties(VkPhysicalDevice physicalDevice, VkFormat format, VkImageType type, VkSampleCountFlagBits samples, VkImageUsageFlags usage, VkImageTiling tiling, uint32_t* pPropertyCount, VkSparseImageFormatProperties* pProperties)
{
TRACE("()");
UNIMPLEMENTED();
TRACE("(VkPhysicalDevice physicalDevice, VkFormat format, VkImageType type, VkSampleCountFlagBits samples, VkImageUsageFlags usage, VkImageTiling tiling, uint32_t* pPropertyCount, VkSparseImageFormatProperties* pProperties)",
physicalDevice, format, type, samples, usage, tiling, pPropertyCount, pProperties);

// We do not support sparse images.
*pPropertyCount = 0;
}

VKAPI_ATTR VkResult VKAPI_CALL vkQueueBindSparse(VkQueue queue, uint32_t bindInfoCount, const VkBindSparseInfo* pBindInfo, VkFence fence)
Expand Down

0 comments on commit 2c25b14

Please sign in to comment.