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>
*/
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)
{
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);