[Mesa-dev] [PATCH] i965/disasm: Don't disassemble the URB complete field on Broadwell.

Kenneth Graunke kenneth at whitecape.org
Thu Jul 17 15:55:05 PDT 2014


It doesn't exist, so attempting to read it will trigger generation
assertions in the brw_inst API.

Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
---
 src/mesa/drivers/dri/i965/brw_disasm.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/mesa/drivers/dri/i965/brw_disasm.c b/src/mesa/drivers/dri/i965/brw_disasm.c
index d7362c1..f66865f 100644
--- a/src/mesa/drivers/dri/i965/brw_disasm.c
+++ b/src/mesa/drivers/dri/i965/brw_disasm.c
@@ -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;
-- 
2.0.0



More information about the mesa-dev mailing list