diff options
author | Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com> | 2021-03-22 22:30:20 -0700 |
---|---|---|
committer | Marge Bot <eric+marge@anholt.net> | 2021-03-24 23:18:46 +0000 |
commit | 84c3d6834402b62ae36e1f2e6fc090b91b2dfa30 (patch) | |
tree | 234ee5f4c1c9c1c3ab6a41825da20ba63a7bb0e9 /src/intel | |
parent | 893aab57a85fde65dd0b09915455f278f19a71b8 (diff) |
intel/compiler: Make vue_map parameter const for brw_compile_fs
Just a documentation hint that the VUE map is not modified.
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9779>
Diffstat (limited to 'src/intel')
-rw-r--r-- | src/intel/compiler/brw_compiler.h | 4 | ||||
-rw-r--r-- | src/intel/compiler/brw_fs.cpp | 2 | ||||
-rw-r--r-- | src/intel/compiler/brw_interpolation_map.c | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/src/intel/compiler/brw_compiler.h b/src/intel/compiler/brw_compiler.h index dd09ad0b3a5..af5de0632c6 100644 --- a/src/intel/compiler/brw_compiler.h +++ b/src/intel/compiler/brw_compiler.h @@ -1164,7 +1164,7 @@ void brw_compute_tess_vue_map(struct brw_vue_map *const vue_map, uint32_t is_patch); /* brw_interpolation_map.c */ -void brw_setup_vue_interpolation(struct brw_vue_map *vue_map, +void brw_setup_vue_interpolation(const struct brw_vue_map *vue_map, struct nir_shader *nir, struct brw_wm_prog_data *prog_data); @@ -1544,7 +1544,7 @@ brw_compile_fs(const struct brw_compiler *compiler, void *log_data, int shader_time_index16, int shader_time_index32, bool allow_spilling, - bool use_rep_send, struct brw_vue_map *vue_map, + bool use_rep_send, const struct brw_vue_map *vue_map, struct brw_compile_stats *stats, /**< Array of three stats */ char **error_str); diff --git a/src/intel/compiler/brw_fs.cpp b/src/intel/compiler/brw_fs.cpp index eecbd5bcec8..134dd38ddf0 100644 --- a/src/intel/compiler/brw_fs.cpp +++ b/src/intel/compiler/brw_fs.cpp @@ -9062,7 +9062,7 @@ brw_compile_fs(const struct brw_compiler *compiler, void *log_data, nir_shader *nir, int shader_time_index8, int shader_time_index16, int shader_time_index32, bool allow_spilling, - bool use_rep_send, struct brw_vue_map *vue_map, + bool use_rep_send, const struct brw_vue_map *vue_map, struct brw_compile_stats *stats, char **error_str) { diff --git a/src/intel/compiler/brw_interpolation_map.c b/src/intel/compiler/brw_interpolation_map.c index a9686e8c59f..7759f06dbc9 100644 --- a/src/intel/compiler/brw_interpolation_map.c +++ b/src/intel/compiler/brw_interpolation_map.c @@ -37,7 +37,7 @@ static char const *get_qual_name(int mode) static void gen4_frag_prog_set_interp_modes(struct brw_wm_prog_data *prog_data, - struct brw_vue_map *vue_map, + const struct brw_vue_map *vue_map, unsigned location, unsigned slot_count, enum glsl_interp_mode interp) { @@ -57,7 +57,7 @@ gen4_frag_prog_set_interp_modes(struct brw_wm_prog_data *prog_data, /* Set up interpolation modes for every element in the VUE */ void -brw_setup_vue_interpolation(struct brw_vue_map *vue_map, nir_shader *nir, +brw_setup_vue_interpolation(const struct brw_vue_map *vue_map, nir_shader *nir, struct brw_wm_prog_data *prog_data) { /* Initialise interp_mode. INTERP_MODE_NONE == 0 */ |