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:
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user