Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 2c25b14

Browse files
committed
Implement GetPhysicalDeviceSparseImageFormatProperties
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>
1 parent 9584fe4 commit 2c25b14

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/Vulkan/libVulkan.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -689,8 +689,11 @@ VKAPI_ATTR void VKAPI_CALL vkGetImageSparseMemoryRequirements(VkDevice device, V
689689

690690
VKAPI_ATTR void VKAPI_CALL vkGetPhysicalDeviceSparseImageFormatProperties(VkPhysicalDevice physicalDevice, VkFormat format, VkImageType type, VkSampleCountFlagBits samples, VkImageUsageFlags usage, VkImageTiling tiling, uint32_t* pPropertyCount, VkSparseImageFormatProperties* pProperties)
691691
{
692-
TRACE("()");
693-
UNIMPLEMENTED();
692+
TRACE("(VkPhysicalDevice physicalDevice, VkFormat format, VkImageType type, VkSampleCountFlagBits samples, VkImageUsageFlags usage, VkImageTiling tiling, uint32_t* pPropertyCount, VkSparseImageFormatProperties* pProperties)",
693+
physicalDevice, format, type, samples, usage, tiling, pPropertyCount, pProperties);
694+
695+
// We do not support sparse images.
696+
*pPropertyCount = 0;
694697
}
695698

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

0 commit comments

Comments
 (0)