summaryrefslogtreecommitdiffstats
path: root/src/intel
diff options
context:
space:
mode:
authorJordan Justen <[email protected]>2017-03-28 13:36:11 -0700
committerJordan Justen <[email protected]>2017-04-06 13:26:08 -0700
commit0370350d11bcb5f1ca82a4f9ee0ae6eb239d32db (patch)
tree3cb16f44b15ec9475a9c92aee479124c678d882e /src/intel
parentd5bd0e411ede67f5c56f95ae4d905d8d94c9be2f (diff)
intel/aubinator: Stop searching after a custom handler is found
Signed-off-by: Jordan Justen <[email protected]> Reviewed-by: Lionel Landwerlin <[email protected]>
Diffstat (limited to 'src/intel')
-rw-r--r--src/intel/tools/aubinator.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/intel/tools/aubinator.c b/src/intel/tools/aubinator.c
index 05d932ea6c7..f1bedd271e1 100644
--- a/src/intel/tools/aubinator.c
+++ b/src/intel/tools/aubinator.c
@@ -725,8 +725,10 @@ parse_commands(struct gen_spec *spec, uint32_t *cmds, int size, int engine)
decode_group(inst, p, 0);
for (i = 0; i < ARRAY_LENGTH(custom_handlers); i++) {
- if (gen_group_get_opcode(inst) == custom_handlers[i].opcode)
+ if (gen_group_get_opcode(inst) == custom_handlers[i].opcode) {
custom_handlers[i].handle(spec, p);
+ break;
+ }
}
}