Fix debug build when spirv-tools is not available
authorPyry Haulos <phaulos@google.com>
Thu, 10 Mar 2016 18:21:10 +0000 (10:21 -0800)
committerPyry Haulos <phaulos@google.com>
Thu, 10 Mar 2016 18:21:10 +0000 (10:21 -0800)
vk::validateSpirV signature mismatch was causing linking error
in debug builds when DEQP_HAVE_SPIRV_TOOLS was not defined.

Change-Id: Icf98f80b72dfa744c4482b1abb0b7d1132aad296

external/vulkancts/framework/vulkan/vkSpirVAsm.cpp

index 9d292ef..bd5105d 100644 (file)
@@ -104,7 +104,7 @@ void assembleSpirV (const SpirVAsmSource*, std::vector<deUint8>*, SpirVProgramIn
        TCU_THROW(NotSupportedError, "SPIR-V assembly not supported (DEQP_HAVE_SPIRV_TOOLS not defined)");
 }
 
-bool validateSpirV (std::vector<deUint8>*, std::string*)
+bool validateSpirV (const std::vector<deUint8>&, std::string*)
 {
        TCU_THROW(NotSupportedError, "SPIR-V validation not supported (DEQP_HAVE_SPIRV_TOOLS not defined)");
 }