i965/disasm: Don't disassemble the URB complete field on Broadwell.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 17 Jul 2014 22:55:05 +0000 (15:55 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 21 Jul 2014 18:19:17 +0000 (11:19 -0700)
It doesn't exist, so attempting to read it will trigger generation
assertions in the brw_inst API.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/drivers/dri/i965/brw_disasm.c

index d7362c16c28623bab20093fadb1f6d188087e5cf..f66865fc4d1c91e026b11a138b8a273e69968727 100644 (file)
@@ -1410,8 +1410,10 @@ brw_disassemble_inst(FILE *file, struct brw_context *brw, brw_inst *inst,
                err |= control(file, "urb used", urb_used,
                               brw_inst_urb_used(brw, inst), &space);
             }
-            err |= control(file, "urb complete", urb_complete,
-                           brw_inst_urb_complete(brw, inst), &space);
+            if (brw->gen < 8) {
+               err |= control(file, "urb complete", urb_complete,
+                              brw_inst_urb_complete(brw, inst), &space);
+            }
             break;
          case BRW_SFID_THREAD_SPAWNER:
             break;