Mesa (master): r600g: update comments about ALU src operands

Alex Deucher agd5f at kemper.freedesktop.org
Thu Aug 19 16:07:02 UTC 2010


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

Author: Alex Deucher <alexdeucher at gmail.com>
Date:   Thu Aug 19 12:06:20 2010 -0400

r600g: update comments about ALU src operands

---

 src/gallium/drivers/r600/r600_shader.c |   10 ++++++++--
 src/gallium/drivers/r600/r600_sq.h     |    4 ++++
 2 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/src/gallium/drivers/r600/r600_shader.c b/src/gallium/drivers/r600/r600_shader.c
index 4d390f9..4557303 100644
--- a/src/gallium/drivers/r600/r600_shader.c
+++ b/src/gallium/drivers/r600/r600_shader.c
@@ -362,9 +362,15 @@ int r600_shader_from_tgsi(const struct tgsi_token *tokens, struct r600_shader *s
 	shader->processor_type = ctx.type;
 
 	/* register allocations */
-	/* Values [0,127] correspond to GPR[0..127]. 
-	 * Values [256,511] correspond to cfile constants c[0..255]. 
+	/* Values [0,127] correspond to GPR[0..127].
+	 * Values [128,159] correspond to constant buffer bank 0
+	 * Values [160,191] correspond to constant buffer bank 1
+	 * Values [256,511] correspond to cfile constants c[0..255].
 	 * Other special values are shown in the list below.
+	 * 244  ALU_SRC_1_DBL_L: special constant 1.0 double-float, LSW. (RV670+)
+	 * 245  ALU_SRC_1_DBL_M: special constant 1.0 double-float, MSW. (RV670+)
+	 * 246  ALU_SRC_0_5_DBL_L: special constant 0.5 double-float, LSW. (RV670+)
+	 * 247  ALU_SRC_0_5_DBL_M: special constant 0.5 double-float, MSW. (RV670+)
 	 * 248	SQ_ALU_SRC_0: special constant 0.0.
 	 * 249	SQ_ALU_SRC_1: special constant 1.0 float.
 	 * 250	SQ_ALU_SRC_1_INT: special constant 1 integer.
diff --git a/src/gallium/drivers/r600/r600_sq.h b/src/gallium/drivers/r600/r600_sq.h
index da71778..819624e 100644
--- a/src/gallium/drivers/r600/r600_sq.h
+++ b/src/gallium/drivers/r600/r600_sq.h
@@ -584,6 +584,10 @@
 #define   C_SQ_TEX_WORD2_SRC_SEL_W                                   0x1FFFFFFF
 
 /*
+ * 244  ALU_SRC_1_DBL_L: special constant 1.0 double-float, LSW. (RV670+)
+ * 245  ALU_SRC_1_DBL_M: special constant 1.0 double-float, MSW. (RV670+)
+ * 246  ALU_SRC_0_5_DBL_L: special constant 0.5 double-float, LSW. (RV670+)
+ * 247  ALU_SRC_0_5_DBL_M: special constant 0.5 double-float, MSW. (RV670+)
  * 248	SQ_ALU_SRC_0: special constant 0.0.
  * 249	SQ_ALU_SRC_1: special constant 1.0 float.
  * 250	SQ_ALU_SRC_1_INT: special constant 1 integer.




More information about the mesa-commit mailing list