Treat Op(Member)DecorateStringGOOGLE as part of the annotation section

Fixes a crash in the driver on RADV when compiling the PostVS shader
for a shader that has these opcodes. The incorrect section boundaries
was causing BuiltIn decorations to not be stripped.
This commit is contained in:
Alex Smith
2018-12-29 14:00:34 +00:00
committed by Baldur Karlsson
parent 9db805a1cd
commit 5444c4b3ab
@@ -201,7 +201,8 @@ SPIRVEditor::SPIRVEditor(std::vector<uint32_t> &spirvWords) : spirv(spirvWords)
}
else if(opcode == spv::OpDecorate || opcode == spv::OpMemberDecorate ||
opcode == spv::OpGroupDecorate || opcode == spv::OpGroupMemberDecorate ||
opcode == spv::OpDecorationGroup)
opcode == spv::OpDecorationGroup || opcode == spv::OpDecorateStringGOOGLE ||
opcode == spv::OpMemberDecorateStringGOOGLE)
{
START_SECTION(SPIRVSection::Annotations);
}