From b23b099a0bc3ea0c6857b342b6d75f0dbfc334bd Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Wed, 27 Apr 2016 11:26:08 -0700 Subject: i965: Mark brw const in brw_state_dirty and callers. Signed-off-by: Kenneth Graunke Reviewed-by: Jason Ekstrand --- src/mesa/drivers/dri/i965/brw_state.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/mesa/drivers/dri/i965/brw_state.h') diff --git a/src/mesa/drivers/dri/i965/brw_state.h b/src/mesa/drivers/dri/i965/brw_state.h index 6efcef14e4d..9c369460455 100644 --- a/src/mesa/drivers/dri/i965/brw_state.h +++ b/src/mesa/drivers/dri/i965/brw_state.h @@ -179,7 +179,8 @@ extern const struct brw_tracked_state gen8_vs_state; extern const struct brw_tracked_state brw_cs_work_groups_surface; static inline bool -brw_state_dirty(struct brw_context *brw, GLuint mesa_flags, uint64_t brw_flags) +brw_state_dirty(const struct brw_context *brw, + GLuint mesa_flags, uint64_t brw_flags) { return ((brw->NewGLState & mesa_flags) | (brw->ctx.NewDriverState & brw_flags)) != 0; -- cgit v1.2.3