Module: Mesa Branch: master Commit: 13782dcf9d34a1bd276312cdecc44deb8f7caafd URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=13782dcf9d34a1bd276312cdecc44deb8f7caafd
Author: Kenneth Graunke <[email protected]> Date: Tue Mar 11 00:11:42 2014 -0700 i965/fs: Print "+reladdr" on variably-indexed uniform arrays. Previously, dump_instruction() would print output such as: { 2} 3: mov vgrf1:F, u0:F { 3} 4: mov vgrf7:F, u0:F { 4} 5: mov vgrf8:F, u0:F which looked like either a scalar access or perhaps a constant-indexed access of element 0, when it was really a variable index. Signed-off-by: Kenneth Graunke <[email protected]> Reviewed-by: Matt Turner <[email protected]> --- src/mesa/drivers/dri/i965/brw_fs.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp index 9081aaf..3fab309 100644 --- a/src/mesa/drivers/dri/i965/brw_fs.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs.cpp @@ -3088,10 +3088,13 @@ fs_visitor::dump_instruction(backend_instruction *be_inst) break; case UNIFORM: fprintf(stderr, "u%d", inst->src[i].reg); - if (virtual_grf_sizes[inst->src[i].reg] != 1 || - inst->src[i].subreg_offset) + if (inst->src[i].reladdr) { + fprintf(stderr, "+reladdr"); + } else if (virtual_grf_sizes[inst->src[i].reg] != 1 || + inst->src[i].subreg_offset) { fprintf(stderr, "+%d.%d", inst->src[i].reg_offset, inst->src[i].subreg_offset); + } break; case BAD_FILE: fprintf(stderr, "(null)"); _______________________________________________ mesa-commit mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/mesa-commit
