Remove UNIMPLEMENTED on unsupported features
There is nothing unimplemented here. We produce the correct error.
Test: dEQP-VK.api.device_init.create_device_unsupported_features
Change-Id: I663fa376bda0752e1c17992be29aac7bd1cbecda
Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/31028
Reviewed-by: Ben Clayton <bclayton@google.com>
Reviewed-by: Alexis Hétu <sugoi@google.com>
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Tested-by: Chris Forbes <chrisforbes@google.com>
Kokoro-Presubmit: kokoro <noreply+kokoro@google.com>
diff --git a/src/Vulkan/libVulkan.cpp b/src/Vulkan/libVulkan.cpp
index db25416..a836715 100644
--- a/src/Vulkan/libVulkan.cpp
+++ b/src/Vulkan/libVulkan.cpp
@@ -407,7 +407,6 @@
{
if(!vk::Cast(physicalDevice)->hasFeatures(*(pCreateInfo->pEnabledFeatures)))
{
- UNIMPLEMENTED("pCreateInfo->pEnabledFeatures");
return VK_ERROR_FEATURE_NOT_PRESENT;
}
}
@@ -1798,8 +1797,8 @@
switch(renderPassBeginInfo->sType)
{
case VK_STRUCTURE_TYPE_DEVICE_GROUP_RENDER_PASS_BEGIN_INFO:
- // This extension controls which render area is used on which physical device,
- // in order to distribute rendering between multiple physical devices.
+ // This extension controls which render area is used on which physical device,
+ // in order to distribute rendering between multiple physical devices.
// SwiftShader only has a single physical device, so this extension does nothing in this case.
break;
default: