Mesa (master): prog_print: Add support for printing the TXD opcode.

Kenneth Graunke kwg at kemper.freedesktop.org
Thu Apr 28 14:52:00 PDT 2011


Module: Mesa
Branch: master
Commit: 19efd1442cc44b0307fe72938d7c2b66c544654f
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=19efd1442cc44b0307fe72938d7c2b66c544654f

Author: Kenneth Graunke <kenneth at whitecape.org>
Date:   Tue Apr 26 16:14:06 2011 -0700

prog_print: Add support for printing the TXD opcode.

Reviewed-by: Brian Paul <brianp at vmware.com>

---

 src/mesa/program/prog_print.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/src/mesa/program/prog_print.c b/src/mesa/program/prog_print.c
index 484596a..7c3b490 100644
--- a/src/mesa/program/prog_print.c
+++ b/src/mesa/program/prog_print.c
@@ -647,6 +647,7 @@ _mesa_fprint_instruction_opt(FILE *f,
    case OPCODE_TXP:
    case OPCODE_TXL:
    case OPCODE_TXB:
+   case OPCODE_TXD:
       fprintf(f, "%s", _mesa_opcode_string(inst->Opcode));
       if (inst->SaturateMode == SATURATE_ZERO_ONE)
          fprintf(f, "_SAT");
@@ -654,6 +655,12 @@ _mesa_fprint_instruction_opt(FILE *f,
       fprint_dst_reg(f, &inst->DstReg, mode, prog);
       fprintf(f, ", ");
       fprint_src_reg(f, &inst->SrcReg[0], mode, prog);
+      if (inst->Opcode == OPCODE_TXD) {
+         fprintf(f, ", ");
+         fprint_src_reg(f, &inst->SrcReg[1], mode, prog);
+         fprintf(f, ", ");
+         fprint_src_reg(f, &inst->SrcReg[2], mode, prog);
+      }
       fprintf(f, ", texture[%d], ", inst->TexSrcUnit);
       switch (inst->TexSrcTarget) {
       case TEXTURE_1D_INDEX:   fprintf(f, "1D");    break;



More information about the mesa-commit mailing list