mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-13 17:25:54 +00:00
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:
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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user