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

Author: Dave Airlie <airl...@redhat.com>
Date:   Mon Feb 26 11:05:26 2018 +1000

r600: add time lo/hi debugging output.

This just adds the these to the debug prints.

---

 src/gallium/drivers/r600/r600_asm.c        | 6 ++++++
 src/gallium/drivers/r600/sb/sb_bc_dump.cpp | 6 ++++++
 2 files changed, 12 insertions(+)

diff --git a/src/gallium/drivers/r600/r600_asm.c 
b/src/gallium/drivers/r600/r600_asm.c
index fdccae8c04..427e7856d2 100644
--- a/src/gallium/drivers/r600/r600_asm.c
+++ b/src/gallium/drivers/r600/r600_asm.c
@@ -2009,6 +2009,12 @@ static int print_src(struct r600_bytecode_alu *alu, 
unsigned idx)
                        o += fprintf(stderr, "LDS_OQ_B_POP");
                        need_chan = 1;
                        break;
+               case EG_V_SQ_ALU_SRC_TIME_LO:
+                       o += fprintf(stderr, "TIME_LO");
+                       break;
+               case EG_V_SQ_ALU_SRC_TIME_HI:
+                       o += fprintf(stderr, "TIME_HI");
+                       break;
                case EG_V_SQ_ALU_SRC_SE_ID:
                        o += fprintf(stderr, "SE_ID");
                        break;
diff --git a/src/gallium/drivers/r600/sb/sb_bc_dump.cpp 
b/src/gallium/drivers/r600/sb/sb_bc_dump.cpp
index a3acb21e2f..9b2674daf2 100644
--- a/src/gallium/drivers/r600/sb/sb_bc_dump.cpp
+++ b/src/gallium/drivers/r600/sb/sb_bc_dump.cpp
@@ -333,6 +333,12 @@ static void print_src(sb_ostream &s, bc_alu &alu, unsigned 
idx)
                case ALU_SRC_0:
                        s << "0";
                        break;
+               case ALU_SRC_TIME_LO:
+                       s << "TIME_LO";
+                       break;
+               case ALU_SRC_TIME_HI:
+                       s << "TIME_HI";
+                       break;
                case ALU_SRC_MASK_LO:
                        s << "MASK_LO";
                        break;

_______________________________________________
mesa-commit mailing list
mesa-commit@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to