summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri
diff options
context:
space:
mode:
authorMatt Turner <[email protected]>2013-12-04 15:01:16 -0800
committerMatt Turner <[email protected]>2014-01-21 14:09:33 -0800
commit71bc11a37508542662132b16a53acd5f541cd2b4 (patch)
tree7283da80117ff36546978d1c01507da3b42e852b /src/mesa/drivers/dri
parent955c93dc089f85fe52f4f34971ffcca43eb87310 (diff)
i965: Print reg_offset for vgrf of size > 1 in dump_instruction().
Previously we wouldn't print the +0 for the first part of a VGRF of size greater than 1. Reviewed-by: Jordan Justen <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri')
-rw-r--r--src/mesa/drivers/dri/i965/brw_fs.cpp6
-rw-r--r--src/mesa/drivers/dri/i965/brw_vec4.cpp2
2 files changed, 4 insertions, 4 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp
index 9a0ae9e857e..3fdb3c9ea02 100644
--- a/src/mesa/drivers/dri/i965/brw_fs.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs.cpp
@@ -2857,7 +2857,7 @@ fs_visitor::dump_instruction(backend_instruction *be_inst)
switch (inst->dst.file) {
case GRF:
printf("vgrf%d", inst->dst.reg);
- if (inst->dst.reg_offset)
+ if (virtual_grf_sizes[inst->dst.reg] != 1)
printf("+%d", inst->dst.reg_offset);
break;
case MRF:
@@ -2910,7 +2910,7 @@ fs_visitor::dump_instruction(backend_instruction *be_inst)
switch (inst->src[i].file) {
case GRF:
printf("vgrf%d", inst->src[i].reg);
- if (inst->src[i].reg_offset)
+ if (virtual_grf_sizes[inst->src[i].reg] != 1)
printf("+%d", inst->src[i].reg_offset);
break;
case MRF:
@@ -2918,7 +2918,7 @@ fs_visitor::dump_instruction(backend_instruction *be_inst)
break;
case UNIFORM:
printf("u%d", inst->src[i].reg);
- if (inst->src[i].reg_offset)
+ if (virtual_grf_sizes[inst->src[i].reg] != 1)
printf(".%d", inst->src[i].reg_offset);
break;
case BAD_FILE:
diff --git a/src/mesa/drivers/dri/i965/brw_vec4.cpp b/src/mesa/drivers/dri/i965/brw_vec4.cpp
index 2a0cb138587..f4f4019a8af 100644
--- a/src/mesa/drivers/dri/i965/brw_vec4.cpp
+++ b/src/mesa/drivers/dri/i965/brw_vec4.cpp
@@ -1242,7 +1242,7 @@ vec4_visitor::dump_instruction(backend_instruction *be_inst)
break;
}
- if (inst->src[i].reg_offset)
+ if (virtual_grf_sizes[inst->src[i].reg] != 1)
printf(".%d", inst->src[i].reg_offset);
if (inst->src[i].file != IMM) {