Skip to content

Commit

Permalink
Remove redundant calls to spv::Parameterize() from tests
Browse files Browse the repository at this point in the history
This means the tests won't need to have this entrypoint exposed when
building as a shared library with hidden symbols.
  • Loading branch information
arcady-lunarg committed Sep 11, 2024
1 parent 12a17b7 commit 6495f77
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 7 deletions.
1 change: 0 additions & 1 deletion gtests/GlslMapIO.FromFile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,6 @@ TEST_P(GlslMapIOTest, FromFile)
spirv_binary, &logger, &options());

std::ostringstream disassembly_stream;
spv::Parameterize();
spv::Disassemble(disassembly_stream, spirv_binary);
result.spirvWarningsErrors += logger.getAllMessages();
result.spirv += disassembly_stream.str();
Expand Down
1 change: 0 additions & 1 deletion gtests/Link.FromFile.Vk.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ TEST_P(LinkTestVulkan, FromFile)
spirv_binary, &logger, &options());

std::ostringstream disassembly_stream;
spv::Parameterize();
spv::Disassemble(disassembly_stream, spirv_binary);
result.spirvWarningsErrors = logger.getAllMessages();
result.spirv = disassembly_stream.str();
Expand Down
4 changes: 0 additions & 4 deletions gtests/TestFixture.h
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,6 @@ class GlslangTest : public GT {
}

std::ostringstream disassembly_stream;
spv::Parameterize();
spv::Disassemble(disassembly_stream, spirv_binary);
bool validation_result = !options().validate || logger.getAllMessages().empty();
return {{
Expand Down Expand Up @@ -384,7 +383,6 @@ class GlslangTest : public GT {
spirv_binary, &logger, &options());

std::ostringstream disassembly_stream;
spv::Parameterize();
spv::Disassemble(disassembly_stream, spirv_binary);
bool validation_result = !options().validate || logger.getAllMessages().empty();
return {{{shaderName, shader.getInfoLog(), shader.getInfoDebugLog()},},
Expand Down Expand Up @@ -429,7 +427,6 @@ class GlslangTest : public GT {
spv::spirvbin_t(0 /*verbosity*/).remap(spirv_binary, whiteListStrings, remapOptions);

std::ostringstream disassembly_stream;
spv::Parameterize();
spv::Disassemble(disassembly_stream, spirv_binary);
bool validation_result = !options().validate || logger.getAllMessages().empty();
return {{{shaderName, shader.getInfoLog(), shader.getInfoDebugLog()},},
Expand All @@ -453,7 +450,6 @@ class GlslangTest : public GT {
spv::spirvbin_t(0 /*verbosity*/).remap(spirv_binary, whiteListStrings, remapOptions);

std::ostringstream disassembly_stream;
spv::Parameterize();
spv::Disassemble(disassembly_stream, spirv_binary);

return {{{shaderName, "", ""},},
Expand Down
1 change: 0 additions & 1 deletion gtests/VkRelaxed.FromFile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,6 @@ TEST_P(VulkanRelaxedTest, FromFile)
spirv_binary, &logger, &options());

std::ostringstream disassembly_stream;
spv::Parameterize();
spv::Disassemble(disassembly_stream, spirv_binary);
result.spirvWarningsErrors += logger.getAllMessages();
result.spirv += disassembly_stream.str();
Expand Down

0 comments on commit 6495f77

Please sign in to comment.