i965/fs: Don't look at virtual_grf_sizes for uniforms
authorJason Ekstrand <jason.ekstrand@intel.com>
Sat, 6 Sep 2014 00:07:16 +0000 (17:07 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Sat, 6 Sep 2014 00:33:17 +0000 (17:33 -0700)
Uniform values are in the UNIFORM register file, not the GRF register file.
Looking in virtual_grf_sizes makes no sense and only makes the output of
dump_instructions confusing.

Signed-off-by: Jason Ekstrand <jason.ekstrand@intel.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/drivers/dri/i965/brw_fs.cpp

index 20acafa52b43c90c83566cd690de33cc7410c5bd..a064390ce84ba4331c06c28f50d4d046e5c0a33e 100644 (file)
@@ -2920,8 +2920,7 @@ fs_visitor::dump_instruction(backend_instruction *be_inst, FILE *file)
          fprintf(file, "u%d", inst->src[i].reg + inst->src[i].reg_offset);
          if (inst->src[i].reladdr) {
             fprintf(file, "+reladdr");
-         } else if (virtual_grf_sizes[inst->src[i].reg] != 1 ||
-             inst->src[i].subreg_offset) {
+         } else if (inst->src[i].subreg_offset) {
             fprintf(file, "+%d.%d", inst->src[i].reg_offset,
                     inst->src[i].subreg_offset);
          }