Mesa (master): intel/aubinator: Stop searching after a custom handler is found

Jordan Justen jljusten at kemper.freedesktop.org
Thu Apr 6 20:30:03 UTC 2017


Module: Mesa
Branch: master
Commit: 0370350d11bcb5f1ca82a4f9ee0ae6eb239d32db
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=0370350d11bcb5f1ca82a4f9ee0ae6eb239d32db

Author: Jordan Justen <jordan.l.justen at intel.com>
Date:   Tue Mar 28 13:36:11 2017 -0700

intel/aubinator: Stop searching after a custom handler is found

Signed-off-by: Jordan Justen <jordan.l.justen at intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>

---

 src/intel/tools/aubinator.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/intel/tools/aubinator.c b/src/intel/tools/aubinator.c
index 05d932ea6c..f1bedd271e 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;
+            }
          }
       }
 




More information about the mesa-commit mailing list