diff options
author | Eric Anholt <eric@anholt.net> | 2010-07-21 11:19:52 -0700 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2010-07-21 20:17:24 -0700 |
commit | 0ecf5128a43ed1eff980825e425a030d2b71e50b (patch) | |
tree | c4e4f94963e32ca181527a382a71a44a4227b6ab | |
parent | 7a66e549583a3168f05acc7df1e872d218fd670d (diff) | |
download | external_mesa3d-0ecf5128a43ed1eff980825e425a030d2b71e50b.zip external_mesa3d-0ecf5128a43ed1eff980825e425a030d2b71e50b.tar.gz external_mesa3d-0ecf5128a43ed1eff980825e425a030d2b71e50b.tar.bz2 |
i965: Add disasm for dataport reads (register unspilling).
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_disasm.c | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_disasm.c b/src/mesa/drivers/dri/i965/brw_disasm.c index 23095d9..52865c7 100644 --- a/src/mesa/drivers/dri/i965/brw_disasm.c +++ b/src/mesa/drivers/dri/i965/brw_disasm.c @@ -870,6 +870,27 @@ int brw_disasm (FILE *file, struct brw_instruction *inst, int gen) inst->bits3.sampler.return_format, NULL); string (file, ")"); break; + case BRW_MESSAGE_TARGET_DATAPORT_READ: + if (gen >= 6) { + format (file, " (%d, %d, %d, %d, %d, %d)", + inst->bits3.dp_render_cache.binding_table_index, + inst->bits3.dp_render_cache.msg_control, + inst->bits3.dp_render_cache.msg_type, + inst->bits3.dp_render_cache.send_commit_msg, + inst->bits3.dp_render_cache.msg_length, + inst->bits3.dp_render_cache.response_length); + } else if (gen >= 5) { + format (file, " (%d, %d, %d)", + inst->bits3.dp_read_gen5.binding_table_index, + inst->bits3.dp_read_gen5.msg_control, + inst->bits3.dp_read_gen5.msg_type); + } else { + format (file, " (%d, %d, %d)", + inst->bits3.dp_read.binding_table_index, + inst->bits3.dp_read.msg_control, + inst->bits3.dp_read.msg_type); + } + break; case BRW_MESSAGE_TARGET_DATAPORT_WRITE: if (gen >= 6) { format (file, " (%d, %d, %d, %d, %d, %d)", @@ -912,7 +933,7 @@ int brw_disasm (FILE *file, struct brw_instruction *inst, int gen) case BRW_MESSAGE_TARGET_THREAD_SPAWNER: break; default: - format (file, "unsupported target %d", inst->bits3.generic.msg_target); + format (file, "unsupported target %d", target); break; } if (space) |