[Mesa-dev] [RFC 11/27] i965: Mark invariants in backend_visitor as constants
Topi Pohjolainen
topi.pohjolainen at intel.com
Sat Feb 22 01:05:37 PST 2014
Signed-off-by: Topi Pohjolainen <topi.pohjolainen at intel.com>
---
src/mesa/drivers/dri/i965/brw_shader.h | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/src/mesa/drivers/dri/i965/brw_shader.h b/src/mesa/drivers/dri/i965/brw_shader.h
index 4e41c84..e718197 100644
--- a/src/mesa/drivers/dri/i965/brw_shader.h
+++ b/src/mesa/drivers/dri/i965/brw_shader.h
@@ -78,12 +78,12 @@ protected:
public:
- struct brw_context *brw;
- struct gl_context *ctx;
- struct brw_shader *shader;
- struct gl_shader_program *shader_prog;
- struct gl_program *prog;
- struct brw_stage_prog_data *stage_prog_data;
+ struct brw_context * const brw;
+ struct gl_context * const ctx;
+ struct brw_shader * const shader;
+ struct gl_shader_program * const shader_prog;
+ struct gl_program * const prog;
+ struct brw_stage_prog_data * const stage_prog_data;
/** ralloc context for temporary data used during compile */
void *mem_ctx;
--
1.8.3.1
More information about the mesa-dev
mailing list