mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 06:40:11 +01:00
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:
parent
8e71ac731b
commit
b23b099a0b
5 changed files with 6 additions and 5 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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 |
|
||||
|
|
|
|||
|
|
@ -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 |
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue