I could be wrong, but I think there is a mistake in the way Nsight is displaying the secondary cmd-buf info.
The display of the secondary cmd-buf is being extended pass its end. In the screenshot shown, it should show as completing earlier, at event 74, and switching back to primary cmd-buf. Instead, it displays secondary as running to the end of the frame.
I’m using primary and secondary cmd-bufs like this:
begin-cmdbuf(primary)
// Locator pass
begin-renderpass(contents-inline)
// record in primary cmdbuf
end-renderpass // in primary cmdbuf
// Editor pass
begin-renderpass(contents-inline)
// record in primary cmdbuf
end-renderpass // in primary cmdbuf
// Gui pass
begin-cmdbuf(secondary)
begin-renderpass(contents-secondary)
// record in secondary cmdbuf
end-renderpass // in secondary
end-cmdbuf // secondary
// Present pass
begin-renderpass(contents-inline) // back in primary cmdbuf
// record in primary cmdbuf
end-renderpass // in primary cmdbuf
end-cmdbuf // primary
