i965: SF: Move the computation of urb_entry_read_offset.
authorPaul Berry <stereotype441@gmail.com>
Tue, 23 Aug 2011 20:49:19 +0000 (13:49 -0700)
committerPaul Berry <stereotype441@gmail.com>
Tue, 6 Sep 2011 18:04:29 +0000 (11:04 -0700)
commit39fc725b0c81db8d76cb490488cd95de5c4d7a79
tree5e10b9be2705a6cc3ce3797924670409a8b34710
parentf3ecc90730c1637b82e7a8eb8bef6d9a7a0531e8
i965: SF: Move the computation of urb_entry_read_offset.

This patch moves the computation of the SF URB entry read offset from
upload_sf_unit() to its own function, so that it can be re-used when
creating the gen4-5 SF program.

Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/i965/brw_sf.h
src/mesa/drivers/dri/i965/brw_sf_state.c