aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/brw_state.h
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2012-08-21 16:13:17 -0700
committerKenneth Graunke <[email protected]>2013-08-19 13:16:59 -0700
commited4459b10bda151de0d147936c848939c5da045a (patch)
tree39fc71a7dff575807625ce4dec37b0e7ff756770 /src/mesa/drivers/dri/i965/brw_state.h
parentf5a690cb68d69c0279ab95ecb2d188ede13ada03 (diff)
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 <[email protected]> Reviewed-by: Paul Berry <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_state.h')
-rw-r--r--src/mesa/drivers/dri/i965/brw_state.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_state.h b/src/mesa/drivers/dri/i965/brw_state.h
index a1236b7c08f..dde9f1f4423 100644
--- a/src/mesa/drivers/dri/i965/brw_state.h
+++ b/src/mesa/drivers/dri/i965/brw_state.h
@@ -208,7 +208,8 @@ void gen7_upload_3dstate_so_decl_list(struct brw_context *brw,
uint32_t translate_wrap_mode(GLenum wrap, bool using_nearest);
void upload_default_color(struct brw_context *brw,
struct gl_sampler_object *sampler,
- int unit, int ss_index);
+ int unit,
+ uint32_t *sdc_offset);
/* gen6_sf_state.c */
uint32_t