summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2014-07-30 10:50:12 -0700
committerKenneth Graunke <[email protected]>2014-08-02 05:16:18 -0700
commit7cdb0a30faf1c96bacf5cec2d64bb64d7c8ef4a8 (patch)
tree1725c34e8e78cd9788c7b093d5574694fda1abca /src/mesa/drivers
parentb590a1237c7dccdd2a197298dbd62bf8fb1c6d33 (diff)
i965: Add const to upload_default_color's sampler parameter.
It doesn't edit the value, and this lets us use const in more places. Needed to implement Topi's review comments for the next patch. Signed-off-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r--src/mesa/drivers/dri/i965/brw_sampler_state.c2
-rw-r--r--src/mesa/drivers/dri/i965/brw_state.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_sampler_state.c b/src/mesa/drivers/dri/i965/brw_sampler_state.c
index a4091a1ec21..5d9f85cc217 100644
--- a/src/mesa/drivers/dri/i965/brw_sampler_state.c
+++ b/src/mesa/drivers/dri/i965/brw_sampler_state.c
@@ -115,7 +115,7 @@ translate_wrap_mode(struct brw_context *brw, GLenum wrap, bool using_nearest)
*/
void
upload_default_color(struct brw_context *brw,
- struct gl_sampler_object *sampler,
+ const struct gl_sampler_object *sampler,
int unit,
uint32_t *sdc_offset)
{
diff --git a/src/mesa/drivers/dri/i965/brw_state.h b/src/mesa/drivers/dri/i965/brw_state.h
index 0fda360e3c1..6b4092344d0 100644
--- a/src/mesa/drivers/dri/i965/brw_state.h
+++ b/src/mesa/drivers/dri/i965/brw_state.h
@@ -246,7 +246,7 @@ void gen8_init_vtable_surface_functions(struct brw_context *brw);
uint32_t translate_wrap_mode(struct brw_context *brw,
GLenum wrap, bool using_nearest);
void upload_default_color(struct brw_context *brw,
- struct gl_sampler_object *sampler,
+ const struct gl_sampler_object *sampler,
int unit,
uint32_t *sdc_offset);