From b007250a464dac2ef4201c50005115467a294d29 Mon Sep 17 00:00:00 2001 From: Qining Date: Wed, 18 Oct 2017 13:29:41 -0400 Subject: [PATCH] Fix indices for subcommand in Vulkan when resolving command groups (#1223) * Fix indices for subcommand in Vulkan when resolving command groups Fix #1214 Turns out we just need to remove two historical lines of code * remove unused variables --- gapis/resolve/command_tree.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/gapis/resolve/command_tree.go b/gapis/resolve/command_tree.go index 5215659130..9b2d5ec29f 100644 --- a/gapis/resolve/command_tree.go +++ b/gapis/resolve/command_tree.go @@ -114,17 +114,13 @@ func CommandTreeNode(ctx context.Context, c *path.CommandTreeNode) (*service.Com case api.SubCmdRoot: count := uint64(1) g := "" - commandStart := append([]uint64{}, item.Id...) - commandEnd := append([]uint64{}, item.Id...) if len(item.Id) > 1 { g = fmt.Sprintf("%v", item.Id) - commandStart = append(commandStart, uint64(0)) - commandEnd = append(commandEnd, uint64(item.SubGroup.Count()-1)) count = uint64(item.SubGroup.Count()) } return &service.CommandTreeNode{ NumChildren: item.SubGroup.Count(), - Commands: cmdTree.path.Capture.SubCommandRange(commandStart, commandEnd), + Commands: cmdTree.path.Capture.SubCommandRange(item.Id, item.Id), Group: g, NumCommands: count, }, nil