From: Yanjun Zhang Date: Wed, 10 Jan 2018 00:12:47 +0000 (-0800) Subject: Check GS support before testing adjacent primitives X-Git-Tag: upstream/1.3.5~2758^2~3^2~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5d30c13f5033fa9ea86ee795ce96d2d2e27027d2;p=platform%2Fupstream%2FVK-GL-CTS.git Check GS support before testing adjacent primitives Affects: dEQP-VK.draw.basic_draw.draw.* Components: Vulkan VK-GL-CTS issue: 926 Change-Id: I02569b1944eed52f641966f9206d44983d1ff165 --- diff --git a/external/vulkancts/modules/vulkan/draw/vktBasicDrawTests.cpp b/external/vulkancts/modules/vulkan/draw/vktBasicDrawTests.cpp index 65f80a08e..e59d45e72 100644 --- a/external/vulkancts/modules/vulkan/draw/vktBasicDrawTests.cpp +++ b/external/vulkancts/modules/vulkan/draw/vktBasicDrawTests.cpp @@ -319,6 +319,18 @@ void DrawTestInstanceBase::initialize (const DrawParamsBase& data) const vk::VkDevice device = m_context.getDevice(); const deUint32 queueFamilyIndex = m_context.getUniversalQueueFamilyIndex(); + const vk::VkPhysicalDeviceFeatures features = m_context.getDeviceFeatures(); + + if (features.geometryShader == VK_FALSE && + (m_data.topology == vk::VK_PRIMITIVE_TOPOLOGY_LINE_LIST_WITH_ADJACENCY || + m_data.topology == vk::VK_PRIMITIVE_TOPOLOGY_LINE_STRIP_WITH_ADJACENCY || + m_data.topology == vk::VK_PRIMITIVE_TOPOLOGY_TRIANGLE_LIST_WITH_ADJACENCY || + m_data.topology == vk::VK_PRIMITIVE_TOPOLOGY_TRIANGLE_STRIP_WITH_ADJACENCY) + ) + { + TCU_THROW(NotSupportedError, "Geometry Not Supported"); + } + const PipelineLayoutCreateInfo pipelineLayoutCreateInfo; m_pipelineLayout = vk::createPipelineLayout(m_vk, device, &pipelineLayoutCreateInfo);