i965/sf: Use BRW_SF_URB_ENTRY_READ_OFFSET rather than hardcoded values.
authorPaul Berry <stereotype441@gmail.com>
Mon, 2 Sep 2013 15:43:02 +0000 (08:43 -0700)
committerPaul Berry <stereotype441@gmail.com>
Mon, 16 Sep 2013 19:53:21 +0000 (12:53 -0700)
commitd5b4095356566b33a1c0a8163099d878fe83822a
tree53dba6d1e16cdb08679d034aeea46e6a71ac1bdd
parent8c2b9bd1dfd482622260acbbc122bbfc8bd3bbf9
i965/sf: Use BRW_SF_URB_ENTRY_READ_OFFSET rather than hardcoded values.

We always program the SF unit to start reading the vertex URB entry at
offset 1.  In upcoming patches, we'll be adding FS code that relies on
this.  So consistently use the constant BRW_SF_URB_ENTRY_READ_OFFSET
rather than hardcoding a 1.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_context.h
src/mesa/drivers/dri/i965/brw_sf.h
src/mesa/drivers/dri/i965/gen6_sf_state.c
src/mesa/drivers/dri/i965/gen7_sf_state.c