Check for geometryShader in multi-viewport scissor
authorMaciej Jesionowski <maciej.jesionowski@mobica.com>
Wed, 19 Oct 2016 09:32:29 +0000 (11:32 +0200)
committerPyry Haulos <phaulos@google.com>
Tue, 25 Oct 2016 04:46:28 +0000 (00:46 -0400)
Affected tests:
- dEQP-VK.fragment_operations.scissor.multi_viewport.*

Public issue #25

Change-Id: I82c45e7bff2f771b9874966246341d14d3371d8a

external/vulkancts/modules/vulkan/fragment_ops/vktFragmentOperationsScissorMultiViewportTests.cpp

index 69314c986eb9850f59abba786ee090e721c60c6e..a4e9c44dce5cbf664fafd88624b66ead3b2982b7 100644 (file)
@@ -373,6 +373,9 @@ void requireFeatureMultiViewport (const InstanceInterface& vki, const VkPhysical
        const VkPhysicalDeviceFeatures  features        = getPhysicalDeviceFeatures(vki, physDevice);
        const VkPhysicalDeviceLimits    limits          = getPhysicalDeviceProperties(vki, physDevice).limits;
 
+       if (!features.geometryShader)
+               TCU_THROW(NotSupportedError, "Required feature is not supported: geometryShader");
+
        if (!features.multiViewport)
                TCU_THROW(NotSupportedError, "Required feature is not supported: multiViewport");