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 <kenneth@whitecape.org>
This commit is contained in:
Kenneth Graunke 2014-07-30 10:50:12 -07:00
parent b590a1237c
commit 7cdb0a30fa
2 changed files with 2 additions and 2 deletions

View 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)
{

View 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);