i965: Use a const nir_shader in backend_shader
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 6 Oct 2015 02:26:02 +0000 (19:26 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Mon, 19 Oct 2015 15:47:03 +0000 (08:47 -0700)
Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
src/mesa/drivers/dri/i965/brw_fs.h
src/mesa/drivers/dri/i965/brw_fs_visitor.cpp
src/mesa/drivers/dri/i965/brw_shader.cpp
src/mesa/drivers/dri/i965/brw_shader.h
src/mesa/drivers/dri/i965/brw_vec4.h
src/mesa/drivers/dri/i965/brw_vec4_gs_visitor.cpp
src/mesa/drivers/dri/i965/brw_vec4_gs_visitor.h
src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp
src/mesa/drivers/dri/i965/brw_vec4_vs_visitor.cpp
src/mesa/drivers/dri/i965/brw_vs.h
src/mesa/drivers/dri/i965/gen6_gs_visitor.h

index 0da5a7625a247f28f89455be151786b25845784b..171338dcc0bd406cceb9affe158f1ee491f93676 100644 (file)
@@ -96,7 +96,7 @@ public:
               const void *key,
               struct brw_stage_prog_data *prog_data,
               struct gl_program *prog,
-              nir_shader *shader,
+              const nir_shader *shader,
               unsigned dispatch_width,
               int shader_time_index);
 
index eac1ec0c9320d573ca25a0f6ebe841cd74481626..23c99b7b9126632a8aebdb319483f0f2656f998e 100644 (file)
@@ -1070,7 +1070,7 @@ fs_visitor::fs_visitor(const struct brw_compiler *compiler, void *log_data,
                        const void *key,
                        struct brw_stage_prog_data *prog_data,
                        struct gl_program *prog,
-                       nir_shader *shader,
+                       const nir_shader *shader,
                        unsigned dispatch_width,
                        int shader_time_index)
    : backend_shader(compiler, log_data, mem_ctx, shader, prog_data),
index 7ee0c66468c20d82e4f2f0b86d134d15d778c16c..2324b56f583479eb175f84598e3d04eb0d9700dc 100644 (file)
@@ -657,7 +657,7 @@ brw_abs_immediate(enum brw_reg_type type, struct brw_reg *reg)
 backend_shader::backend_shader(const struct brw_compiler *compiler,
                                void *log_data,
                                void *mem_ctx,
-                               nir_shader *shader,
+                               const nir_shader *shader,
                                struct brw_stage_prog_data *stage_prog_data)
    : compiler(compiler),
      log_data(log_data),
index ad2de5eae2d5d999c904238c4b8c15fbe357b985..6d4cf048390b98ec1ab5b14384f289bdd5396d8e 100644 (file)
@@ -225,7 +225,7 @@ protected:
    backend_shader(const struct brw_compiler *compiler,
                   void *log_data,
                   void *mem_ctx,
-                  nir_shader *shader,
+                  const nir_shader *shader,
                   struct brw_stage_prog_data *stage_prog_data);
 
 public:
@@ -234,7 +234,7 @@ public:
    void *log_data; /* Passed to compiler->*_log functions */
 
    const struct brw_device_info * const devinfo;
-   nir_shader *nir;
+   const nir_shader *nir;
    struct brw_stage_prog_data * const stage_prog_data;
 
    /** ralloc context for temporary data used during compile */
index cf9ec0aa2ef621b24f5e4fec1a639149673d2176..d861b2e85dfb64600f1d527026f661d5d414ad5a 100644 (file)
@@ -72,7 +72,7 @@ public:
                 void *log_data,
                 const struct brw_sampler_prog_key_data *key,
                 struct brw_vue_prog_data *prog_data,
-                nir_shader *shader,
+                const nir_shader *shader,
                void *mem_ctx,
                 bool no_spills,
                 int shader_time_index);
index 5775cd276dce3b9030ce6e41efbe34ebae2908b7..b710d64f74e56c630d5c48762f3670418d9f84b6 100644 (file)
@@ -35,7 +35,7 @@ namespace brw {
 vec4_gs_visitor::vec4_gs_visitor(const struct brw_compiler *compiler,
                                  void *log_data,
                                  struct brw_gs_compile *c,
-                                 nir_shader *shader,
+                                 const nir_shader *shader,
                                  void *mem_ctx,
                                  bool no_spills,
                                  int shader_time_index)
index 3ff195c3e68d59d6380457809b138c057c80f308..d75e4802d8df2889856c69463602b95216ead345 100644 (file)
@@ -71,7 +71,7 @@ public:
    vec4_gs_visitor(const struct brw_compiler *compiler,
                    void *log_data,
                    struct brw_gs_compile *c,
-                   nir_shader *shader,
+                   const nir_shader *shader,
                    void *mem_ctx,
                    bool no_spills,
                    int shader_time_index);
index 7bc13fe29d6fb6818287258d561d6d337f6dc6dc..f891910ae605e7eb4018a9900c949cd991594339 100644 (file)
@@ -1814,7 +1814,7 @@ vec4_visitor::vec4_visitor(const struct brw_compiler *compiler,
                            void *log_data,
                            const struct brw_sampler_prog_key_data *key_tex,
                            struct brw_vue_prog_data *prog_data,
-                           nir_shader *shader,
+                           const nir_shader *shader,
                           void *mem_ctx,
                            bool no_spills,
                            int shader_time_index)
index b6e1971c2ee1a613ce1c827fe7a1af0694fed5d1..485a80ee2fc7a75c88e04e1370059ea1567aa1d8 100644 (file)
@@ -301,7 +301,7 @@ vec4_vs_visitor::vec4_vs_visitor(const struct brw_compiler *compiler,
                                  void *log_data,
                                  const struct brw_vs_prog_key *key,
                                  struct brw_vs_prog_data *vs_prog_data,
-                                 nir_shader *shader,
+                                 const nir_shader *shader,
                                  gl_clip_plane *clip_planes,
                                  void *mem_ctx,
                                  int shader_time_index,
index f1242f61b33b9414ad6f22e07fc2504c6dbddffd..c927cacd787abbc0654f522838177efcba489faf 100644 (file)
@@ -88,7 +88,7 @@ public:
                    void *log_data,
                    const struct brw_vs_prog_key *key,
                    struct brw_vs_prog_data *vs_prog_data,
-                   nir_shader *shader,
+                   const nir_shader *shader,
                    gl_clip_plane *clip_planes,
                    void *mem_ctx,
                    int shader_time_index,
index e75d6aa10b8b0f28c9cbdd7edae8ed53320934c8..d02c67d8a7445662be2c0728703d9255cd1de244 100644 (file)
@@ -39,7 +39,7 @@ public:
                    void *log_data,
                    struct brw_gs_compile *c,
                    struct gl_shader_program *prog,
-                   nir_shader *shader,
+                   const nir_shader *shader,
                    void *mem_ctx,
                    bool no_spills,
                    int shader_time_index) :