X-Git-Url: https://git.libre-soc.org/?p=mesa.git;a=blobdiff_plain;f=src%2Famd%2Fvulkan%2Fradv_debug.c;h=47d70b96499b90f31393f9ac4a1647494395dff2;hp=e86b0079df7803f68da9fcef59625a1341c5c973;hb=f811ddf5d1fac8a857aadc51278546d5b46d5a2b;hpb=89b56f19412e4794ec2ecfc1578fbfdb9e183bea diff --git a/src/amd/vulkan/radv_debug.c b/src/amd/vulkan/radv_debug.c index e86b0079df7..47d70b96499 100644 --- a/src/amd/vulkan/radv_debug.c +++ b/src/amd/vulkan/radv_debug.c @@ -273,6 +273,12 @@ static void si_add_split_disasm(const char *disasm, struct radv_shader_inst *inst = &instructions[*num]; unsigned len = next - disasm; + if (!memchr(disasm, ';', len)) { + /* Ignore everything that is not an instruction. */ + disasm = next + 1; + continue; + } + assert(len < ARRAY_SIZE(inst->text)); memcpy(inst->text, disasm, len); inst->text[len] = 0;