Fix build when SPIRV-Tools is not present
authorChris Forbes <chrisforbes@google.com>
Thu, 2 Aug 2018 00:16:17 +0000 (17:16 -0700)
committerChris Forbes <chrisforbes@google.com>
Thu, 2 Aug 2018 00:16:58 +0000 (17:16 -0700)
This function does not require SPIRV-Tools, and is still used when it
is not present.

Components: Framework
VK-GL-CTS: 1293

Change-Id: I9ce49db2e6e55e8d379c713c9fe39d15fb7ecbd6

external/vulkancts/framework/vulkan/vkPrograms.cpp

index 39c16ea182efd6be1913332b24d12810dea77837..1ab9c58c7250060c9d65c0a77710cdb70af95cb8 100644 (file)
@@ -86,7 +86,7 @@ bool isSaneSpirVBinary (const ProgramBinary& binary)
 
        return true;
 }
-#if defined(DEQP_HAVE_SPIRV_TOOLS)
+
 ProgramBinary* createProgramBinaryFromSpirV (const vector<deUint32>& binary)
 {
        DE_ASSERT(!binary.empty());
@@ -96,7 +96,7 @@ ProgramBinary* createProgramBinaryFromSpirV (const vector<deUint32>& binary)
        else
                TCU_THROW(InternalError, "SPIR-V endianness translation not supported");
 }
-#endif
+
 } // anonymous
 
 void validateCompiledBinary(const vector<deUint32>& binary, glu::ShaderProgramInfo* buildInfo, const SpirvVersion spirvVersion)