diff options
author | Eric Anholt <[email protected]> | 2014-03-26 10:06:12 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2014-04-08 00:59:48 -0700 |
commit | 72b845e6409ad353af1abd420162917dadda5a7e (patch) | |
tree | 4fefcd9a62db8fc448768759ca72aea359c09d01 /src/mesa/drivers | |
parent | caa2605db52da7303c4571bddc424a613786f56f (diff) |
i965/fs: Fix dump_instructions() on uniforms.
All of a vec4 uniform was being printed as "u0"
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_fs.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp index 7eac9ad75b3..2b4bfe64a05 100644 --- a/src/mesa/drivers/dri/i965/brw_fs.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs.cpp @@ -2854,7 +2854,7 @@ fs_visitor::dump_instruction(backend_instruction *be_inst) fprintf(stderr, "(null)"); break; case UNIFORM: - fprintf(stderr, "***u%d***", inst->dst.reg); + fprintf(stderr, "***u%d***", inst->dst.reg + inst->dst.reg_offset); break; case HW_REG: if (inst->dst.fixed_hw_reg.file == BRW_ARCHITECTURE_REGISTER_FILE) { @@ -2906,7 +2906,7 @@ fs_visitor::dump_instruction(backend_instruction *be_inst) fprintf(stderr, "***m%d***", inst->src[i].reg); break; case UNIFORM: - fprintf(stderr, "u%d", inst->src[i].reg); + fprintf(stderr, "u%d", inst->src[i].reg + inst->src[i].reg_offset); if (inst->src[i].reladdr) { fprintf(stderr, "+reladdr"); } else if (virtual_grf_sizes[inst->src[i].reg] != 1 || |