i965: Mark invariants in backend_visitor as constants
authorTopi Pohjolainen <topi.pohjolainen@intel.com>
Tue, 18 Feb 2014 20:27:42 +0000 (22:27 +0200)
committerTopi Pohjolainen <topi.pohjolainen@intel.com>
Wed, 5 Mar 2014 08:31:57 +0000 (10:31 +0200)
Reviewed-by: Matt Turner <mattst88@gmail.com>
Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
src/mesa/drivers/dri/i965/brw_shader.h

index 33295549b7a93508517b1496cdf38dc02813656f..086d042dd96f01b372f7deb0060d85cc1e5af372 100644 (file)
@@ -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;