From: Jordan Justen Date: Tue, 28 Mar 2017 20:36:11 +0000 (-0700) Subject: intel/aubinator: Stop searching after a custom handler is found X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0370350d11bcb5f1ca82a4f9ee0ae6eb239d32db;p=mesa.git intel/aubinator: Stop searching after a custom handler is found Signed-off-by: Jordan Justen Reviewed-by: Lionel Landwerlin --- 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; + } } }