i965: Mark brw const in brw_state_dirty and callers.
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 27 Apr 2016 18:26:08 +0000 (11:26 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 16 May 2016 07:11:43 +0000 (00:11 -0700)
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/mesa/drivers/dri/i965/brw_ff_gs.c
src/mesa/drivers/dri/i965/brw_gs.c
src/mesa/drivers/dri/i965/brw_state.h
src/mesa/drivers/dri/i965/brw_vs.c
src/mesa/drivers/dri/i965/brw_wm.c

index c329ecedaaf5a3c1c643ef0b7d094b1069fca1b5..9065e08d970c2f53f66c276e7e3277deebdaff14 100644 (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,
index 91efd344f90344478c0c67ecd01d961b85774029..4dddb863e9792268e49ae2c41401029e52e0a0c7 100644 (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,
index 6efcef14e4d31621059c7599216c80de2b337013..9c3694604551093ca2f288c14107478f26591515 100644 (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;
index 1bbc315e9da34fa8329304ff2ad9c4a63d2f6220..2478e62c18067280677088f554f47edcdfc853d7 100644 (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 |
index d47a2665db7df33f5a6426955060a01c911d1f4b..6473b021245e10860eca41ced8b92bcbe314c7e8 100644 (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 |