From: Topi Pohjolainen Date: Tue, 18 Feb 2014 20:27:42 +0000 (+0200) Subject: i965: Mark invariants in backend_visitor as constants X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=12d55d5f19368de7697f2e6df7d4ff98929112b1;p=mesa.git i965: Mark invariants in backend_visitor as constants Reviewed-by: Matt Turner Signed-off-by: Topi Pohjolainen --- 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;