summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/brw_state.h
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2016-04-27 11:26:08 -0700
committerKenneth Graunke <[email protected]>2016-05-16 00:11:43 -0700
commitb23b099a0bc3ea0c6857b342b6d75f0dbfc334bd (patch)
tree0779095a7d4c5626e73356c4284e642fbf65a7bd /src/mesa/drivers/dri/i965/brw_state.h
parent8e71ac731b53a755df37efe63cf49607276de2d4 (diff)
i965: Mark brw const in brw_state_dirty and callers.
Signed-off-by: Kenneth Graunke <[email protected]> Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_state.h')
-rw-r--r--src/mesa/drivers/dri/i965/brw_state.h3
1 files changed, 2 insertions, 1 deletions
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;