i965: Add more #defines for Gen6+ 3DSTATE_GS fields.
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 24 Oct 2011 06:02:05 +0000 (23:02 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 26 Oct 2011 00:09:35 +0000 (17:09 -0700)
These should be useful for doing transform feedback on Sandybridge.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/i965/brw_defines.h

index 5314ac6544d19a3064934b11b70fd56860f5f1f3..61a739c3a9849da9033c465f6aab3201a00595b0 100644 (file)
@@ -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+ */