ShaderRenderCase: use default allocator provided by the Context
authorPeter Gal <pgal.u-szeged@partner.samsung.com>
Thu, 29 Oct 2015 13:13:27 +0000 (14:13 +0100)
committerPeter Gal <pgal.u-szeged@partner.samsung.com>
Thu, 12 Nov 2015 18:54:16 +0000 (19:54 +0100)
external/vulkancts/modules/vulkan/shaderrendercase/vktShaderRenderCase.cpp
external/vulkancts/modules/vulkan/shaderrendercase/vktShaderRenderCase.hpp

index 27cc748..a8e709e 100644 (file)
@@ -470,7 +470,7 @@ ShaderRenderCaseInstance::ShaderRenderCaseInstance (Context&                                        context,
                                                                                                        const AttributeSetupFunc        attribFunc)
        : vkt::TestInstance     (context)
        , m_clearColor          (DEFAULT_CLEAR_COLOR)
-       , m_memAlloc            (m_context.getDeviceInterface(), m_context.getDevice(), getPhysicalDeviceMemoryProperties(m_context.getInstanceInterface(), m_context.getPhysicalDevice()))
+       , m_memAlloc            (context.getDefaultAllocator())
        , m_isVertexCase        (isVertexCase)
        , m_evaluator           (evaluator)
        , m_uniformSetup        (uniformSetup)
index e7f9721..07f155c 100644 (file)
@@ -400,7 +400,7 @@ protected:
        const tcu::Vec4                                                                         m_clearColor;
        std::vector<TextureBindingSp>                                           m_textures;
 
-       vk::SimpleAllocator                                                                     m_memAlloc;
+       vk::Allocator&                                                                          m_memAlloc;
 
 private: