i965: Mark brw const in brw_state_dirty and callers.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
Kenneth Graunke 2016-04-27 11:26:08 -07:00
parent 8e71ac731b
commit b23b099a0b
5 changed files with 6 additions and 5 deletions

View file

@ -149,7 +149,7 @@ brw_codegen_ff_gs_prog(struct brw_context *brw,
}
static bool
brw_ff_gs_state_dirty(struct brw_context *brw)
brw_ff_gs_state_dirty(const struct brw_context *brw)
{
return brw_state_dirty(brw,
_NEW_LIGHT,

View file

@ -199,7 +199,7 @@ brw_codegen_gs_prog(struct brw_context *brw,
}
static bool
brw_gs_state_dirty(struct brw_context *brw)
brw_gs_state_dirty(const struct brw_context *brw)
{
return brw_state_dirty(brw,
_NEW_TEXTURE,

View file

@ -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;

View file

@ -281,7 +281,7 @@ brw_vs_debug_recompile(struct brw_context *brw,
}
static bool
brw_vs_state_dirty(struct brw_context *brw)
brw_vs_state_dirty(const struct brw_context *brw)
{
return brw_state_dirty(brw,
_NEW_BUFFERS |

View file

@ -379,7 +379,7 @@ brw_populate_sampler_prog_key_data(struct gl_context *ctx,
}
static bool
brw_wm_state_dirty (struct brw_context *brw)
brw_wm_state_dirty(const struct brw_context *brw)
{
return brw_state_dirty(brw,
_NEW_BUFFERS |