Mesa (master): r600: document some of the missing shader constants.

Dave Airlie airlied at kemper.freedesktop.org
Mon Jun 5 20:10:01 UTC 2017


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

Author: Dave Airlie <airlied at redhat.com>
Date:   Mon Jun  5 13:25:29 2017 +1000

r600: document some of the missing shader constants.

These are used for fragment shader thread calculations.

Reviewed-by: Glenn Kennard <glenn.kennard at gmail.com>

---

 src/gallium/drivers/r600/r600_sq.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/gallium/drivers/r600/r600_sq.h b/src/gallium/drivers/r600/r600_sq.h
index 3526668c4b..aa38381328 100644
--- a/src/gallium/drivers/r600/r600_sq.h
+++ b/src/gallium/drivers/r600/r600_sq.h
@@ -197,6 +197,10 @@
 #define     EG_V_SQ_ALU_SRC_LDS_DIRECT_A                             0x000000DF
 #define     EG_V_SQ_ALU_SRC_LDS_DIRECT_B                             0x000000E0
 
+#define     EG_V_SQ_ALU_SRC_HW_WAVE_ID                               0x000000E7
+#define     EG_V_SQ_ALU_SRC_SIMD_ID                                  0x000000E8
+#define     EG_V_SQ_ALU_SRC_SE_ID                                    0x000000E9
+
 #define     V_SQ_ALU_SRC_0                                           0x000000F8
 #define     V_SQ_ALU_SRC_1                                           0x000000F9
 #define     V_SQ_ALU_SRC_1_INT                                       0x000000FA




More information about the mesa-commit mailing list