i965: Add const to upload_default_color's sampler parameter.
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 30 Jul 2014 17:50:12 +0000 (10:50 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Sat, 2 Aug 2014 12:16:18 +0000 (05:16 -0700)
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 <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_sampler_state.c
src/mesa/drivers/dri/i965/brw_state.h

index a4091a1..5d9f85c 100644 (file)
@@ -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)
 {
index 0fda360..6b40923 100644 (file)
@@ -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);