i965/vec4: print predicate control at brw_vec4 dump_instruction

v2: externalize pred_ctrl_align16 from brw_disasm.c instead of adding
    a copy on brw_vec4.c, as suggested by Matt Turner

Reviewed-by: Matt Turner <mattst88@gmail.com>
This commit is contained in:
Alejandro Piñeiro 2015-10-09 18:39:42 +02:00
parent 92ae101ed0
commit 8cf84a7e47
3 changed files with 5 additions and 3 deletions

View file

@ -1680,6 +1680,7 @@ struct opcode_desc {
extern const struct opcode_desc opcode_descs[128];
extern const char * const conditional_modifier[16];
extern const char *const pred_ctrl_align16[16];
void
brw_emit_depthbuffer(struct brw_context *brw);

View file

@ -252,7 +252,7 @@ static const char *const pred_inv[2] = {
[1] = "-"
};
static const char *const pred_ctrl_align16[16] = {
const char *const pred_ctrl_align16[16] = {
[1] = "",
[2] = ".x",
[3] = ".y",

View file

@ -1370,9 +1370,10 @@ vec4_visitor::dump_instruction(backend_instruction *be_inst, FILE *file)
vec4_instruction *inst = (vec4_instruction *)be_inst;
if (inst->predicate) {
fprintf(file, "(%cf0.%d) ",
fprintf(file, "(%cf0.%d%s) ",
inst->predicate_inverse ? '-' : '+',
inst->flag_subreg);
inst->flag_subreg,
pred_ctrl_align16[inst->predicate]);
}
fprintf(file, "%s", brw_instruction_name(inst->opcode));