Device and PhysicalDevice features and properties
This cl adds basic functionality to Device and PhysicalDevice
features and properties. Every setting and feature is either
set to the most basic setting, or disabled, when possible.
Bug b/117974925
Change-Id: Ib96630076b8e07e92c59fdf3ae902eeac00639bb
Reviewed-on: https://swiftshader-review.googlesource.com/c/21589
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Tested-by: Alexis Hétu <sugoi@google.com>
diff --git a/src/Vulkan/VkDevice.cpp b/src/Vulkan/VkDevice.cpp
index 2389fda..4638bb5 100644
--- a/src/Vulkan/VkDevice.cpp
+++ b/src/Vulkan/VkDevice.cpp
@@ -15,6 +15,7 @@
#include "VkConfig.h"
#include "VkDebug.hpp"
#include "VkDevice.hpp"
+#include "VkQueue.hpp"
#include <new> // Must #include this to use "placement new"
namespace vk
@@ -65,4 +66,30 @@
return queues[queueIndex];
}
+void Device::getImageSparseMemoryRequirements(VkImage pImage, uint32_t* pSparseMemoryRequirementCount,
+ VkSparseImageMemoryRequirements* pSparseMemoryRequirements) const
+{
+ if(!pSparseMemoryRequirements)
+ {
+ *pSparseMemoryRequirementCount = 1;
+ }
+ else
+ {
+ UNIMPLEMENTED();
+ }
+}
+
+void Device::getGroupPeerMemoryFeatures(uint32_t heapIndex, uint32_t localDeviceIndex, uint32_t remoteDeviceIndex,
+ VkPeerMemoryFeatureFlags* pPeerMemoryFeatures) const
+{
+ UNIMPLEMENTED();
+}
+
+void Device::getDescriptorSetLayoutSupport(const VkDescriptorSetLayoutCreateInfo* pCreateInfo,
+ VkDescriptorSetLayoutSupport* pSupport) const
+{
+ // Mark everything as unsupported
+ pSupport->supported = VK_FALSE;
+}
+
} // namespace vk