Mesa (master): i965: Add more #defines for Gen6+ 3DSTATE_GS fields.

Kenneth Graunke kwg at kemper.freedesktop.org
Tue Oct 25 17:08:47 PDT 2011


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

Author: Kenneth Graunke <kenneth at whitecape.org>
Date:   Sun Oct 23 23:02:05 2011 -0700

i965: Add more #defines for Gen6+ 3DSTATE_GS fields.

These should be useful for doing transform feedback on Sandybridge.

Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
Reviewed-by: Eric Anholt <eric at anholt.net>

---

 src/mesa/drivers/dri/i965/brw_defines.h |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/src/mesa/drivers/dri/i965/brw_defines.h b/src/mesa/drivers/dri/i965/brw_defines.h
index 5314ac6..61a739c 100644
--- a/src/mesa/drivers/dri/i965/brw_defines.h
+++ b/src/mesa/drivers/dri/i965/brw_defines.h
@@ -1052,6 +1052,8 @@ enum brw_message_target {
 # define GEN6_GS_VECTOR_MASK_ENABLE			(1 << 30)
 # define GEN6_GS_SAMPLER_COUNT_SHIFT			27
 # define GEN6_GS_BINDING_TABLE_ENTRY_COUNT_SHIFT	18
+# define GEN6_GS_FLOATING_POINT_MODE_IEEE_754		(0 << 16)
+# define GEN6_GS_FLOATING_POINT_MODE_ALT		(1 << 16)
 /* DW4 */
 # define GEN6_GS_URB_READ_LENGTH_SHIFT			11
 # define GEN7_GS_INCLUDE_VERTEX_HANDLES		        (1 << 10)
@@ -1064,6 +1066,12 @@ enum brw_message_target {
 # define GEN6_GS_RENDERING_ENABLE			(1 << 8)
 # define GEN7_GS_ENABLE					(1 << 0)
 /* DW6 */
+# define GEN6_GS_REORDER				(1 << 30)
+# define GEN6_GS_DISCARD_ADJACENCY			(1 << 29)
+# define GEN6_GS_SVBI_PAYLOAD_ENABLE			(1 << 28)
+# define GEN6_GS_SVBI_POSTINCREMENT_ENABLE		(1 << 27)
+# define GEN6_GS_SVBI_POSTINCREMENT_VALUE_SHIFT		16
+# define GEN6_GS_SVBI_POSTINCREMENT_VALUE_MASK		INTEL_MASK(25, 16)
 # define GEN6_GS_ENABLE					(1 << 15)
 
 #define _3DSTATE_HS                             0x781B /* GEN7+ */



More information about the mesa-commit mailing list