i965/vec4: dump subnr for FIXED_GRF
authorIago Toral Quiroga <itoral@igalia.com>
Fri, 1 Jul 2016 07:28:31 +0000 (09:28 +0200)
committerSamuel Iglesias Gonsálvez <siglesias@igalia.com>
Tue, 3 Jan 2017 10:26:51 +0000 (11:26 +0100)
This came in handy when debugging the payload setup for Tess Eval,
since it prints correct subnr for attributes that can be loaded
in the second half of a register.

Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/drivers/dri/i965/brw_vec4.cpp

index 6bc6f48d5b6da549b4d6d1363151d6a9f1d6017b..9f6d9a8cfe5c6e98da1030c3adfa33e2e266d8ba 100644 (file)
@@ -1562,7 +1562,7 @@ vec4_visitor::dump_instruction(backend_instruction *be_inst, FILE *file)
          fprintf(file, "vgrf%d", inst->src[i].nr);
          break;
       case FIXED_GRF:
-         fprintf(file, "g%d", inst->src[i].nr);
+         fprintf(file, "g%d.%d", inst->src[i].nr, inst->src[i].subnr);
          break;
       case ATTR:
          fprintf(file, "attr%d", inst->src[i].nr);