Fix build
authorPyry Haulos <phaulos@google.com>
Fri, 22 Jan 2016 20:46:27 +0000 (12:46 -0800)
committerPyry Haulos <phaulos@google.com>
Fri, 22 Jan 2016 20:46:27 +0000 (12:46 -0800)
external/vulkancts/modules/vulkan/draw/vktDrawIndirectTest.cpp

index b03f6c194053d95ce371863614cd20cac32051fb..f048db101546366a082e98e0e521652394e3c88d 100644 (file)
@@ -146,17 +146,12 @@ IndirectDraw::IndirectDraw (Context &context, ShaderMap shaders, vk::VkPrimitive
        initialize();
 
        // Check device for multidraw support:
-       const vk::VkPhysicalDeviceFeatures&         deviceFeatures = m_context.getDeviceFeatures();
-       const vk::VkPhysicalDeviceProperties&   deviceProperties = m_context.getDeviceProperties();
-
-       m_context.getInstanceInterface().getPhysicalDeviceProperties(m_context.getPhysicalDevice(), &deviceProperties);
-       m_context.getInstanceInterface().getPhysicalDeviceFeatures(m_context.getPhysicalDevice(), &deviceFeatures);
-       if (deviceFeatures.multiDrawIndirect)
+       if (m_context.getDeviceFeatures().multiDrawIndirect)
                m_isMultiDrawEnabled = true;    
        else
                m_isMultiDrawEnabled = false;
        
-       m_drawIndirectMaxCount = deviceProperties.limits.maxDrawIndirectCount;
+       m_drawIndirectMaxCount = m_context.getDeviceProperties().limits.maxDrawIndirectCount;
 
 }