i965: Tidy preprocessor macros for SO_NUM_PRIMS_WRITTEN registers.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 1 Aug 2013 22:11:37 +0000 (15:11 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 6 Aug 2013 21:41:37 +0000 (14:41 -0700)
commit8c27f13cd9aca3f4eb3089863c6e8dd708e85bc6
tree281f5ebf366d77a80e25aaaca30a7a43c374ea31
parent2daf974cfe701f5955b96b51478ca545c4a5082c
i965: Tidy preprocessor macros for SO_NUM_PRIMS_WRITTEN registers.

Gen7+ supports four transform feedback streams.  Using a function-like
macro makes it easy to access them by stream number or loop over them.
"GEN7_" prefixes are more common than "_IVB" suffixes, so we use that.

Gen6 only supports a single stream, so the single #define should be
fine.  However, SO_NUM_PRIMS_WRITTEN was confusingly generic, as it
doesn't exist on Gen7+.  Add a "GEN6_" prefix for clarity.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Paul Berry <stereotype441@gmail.com>
src/mesa/drivers/dri/i965/gen6_queryobj.c
src/mesa/drivers/dri/i965/intel_reg.h