i965: Un-hardcode border color table from upload_default_color.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 21 Aug 2012 23:13:17 +0000 (16:13 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 19 Aug 2013 20:16:59 +0000 (13:16 -0700)
commited4459b10bda151de0d147936c848939c5da045a
tree39fc71a7dff575807625ce4dec37b0e7ff756770
parentf5a690cb68d69c0279ab95ecb2d188ede13ada03
i965: Un-hardcode border color table from upload_default_color.

When we begin uploading separate sampler state tables for VS and FS,
we won't be able to use &brw->wm.sdc_offset[ss_index].  By passing it in
as a parameter, we push the problem up to the caller.

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