i965: Stop storing sdc_offset in brw_stage_state.
authorKenneth Graunke <kenneth@whitecape.org>
Sat, 26 Jul 2014 09:34:02 +0000 (02:34 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Sat, 2 Aug 2014 12:14:42 +0000 (05:14 -0700)
commita381592a8e5d17ea4448c7fecbcacd1d0e77b09d
treea480d201c8a6ffbbe6e9bd91f0457e918ba0d7e7
parent9a1a8cb84d940313130e2ef4e7a94079fa4092b7
i965: Stop storing sdc_offset in brw_stage_state.

sdc_offset is produced and consumed in the same function, so there's no
need to store it in the context, nor pass pointers to it through various
call chains.

Saves 128 bytes per brw_stage_state structure, and makes the code
clearer as well.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
src/mesa/drivers/dri/i965/brw_context.h
src/mesa/drivers/dri/i965/brw_sampler_state.c
src/mesa/drivers/dri/i965/gen7_sampler_state.c