From 12d55d5f19368de7697f2e6df7d4ff98929112b1 Mon Sep 17 00:00:00 2001 From: Topi Pohjolainen Date: Tue, 18 Feb 2014 22:27:42 +0200 Subject: [PATCH] i965: Mark invariants in backend_visitor as constants Reviewed-by: Matt Turner Signed-off-by: Topi Pohjolainen --- 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 33295549b7a..086d042dd96 100644 --- a/src/mesa/drivers/dri/i965/brw_shader.h +++ b/src/mesa/drivers/dri/i965/brw_shader.h @@ -79,12 +79,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; -- 2.30.2