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>
This commit is contained in:

committed by
Marge Bot

parent
893aab57a8
commit
84c3d68344
@@ -1164,7 +1164,7 @@ void brw_compute_tess_vue_map(struct brw_vue_map *const vue_map,
|
|||||||
uint32_t is_patch);
|
uint32_t is_patch);
|
||||||
|
|
||||||
/* brw_interpolation_map.c */
|
/* 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 nir_shader *nir,
|
||||||
struct brw_wm_prog_data *prog_data);
|
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_index16,
|
||||||
int shader_time_index32,
|
int shader_time_index32,
|
||||||
bool allow_spilling,
|
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 */
|
struct brw_compile_stats *stats, /**< Array of three stats */
|
||||||
char **error_str);
|
char **error_str);
|
||||||
|
|
||||||
|
@@ -9062,7 +9062,7 @@ brw_compile_fs(const struct brw_compiler *compiler, void *log_data,
|
|||||||
nir_shader *nir,
|
nir_shader *nir,
|
||||||
int shader_time_index8, int shader_time_index16,
|
int shader_time_index8, int shader_time_index16,
|
||||||
int shader_time_index32, bool allow_spilling,
|
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,
|
struct brw_compile_stats *stats,
|
||||||
char **error_str)
|
char **error_str)
|
||||||
{
|
{
|
||||||
|
@@ -37,7 +37,7 @@ static char const *get_qual_name(int mode)
|
|||||||
|
|
||||||
static void
|
static void
|
||||||
gen4_frag_prog_set_interp_modes(struct brw_wm_prog_data *prog_data,
|
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,
|
unsigned location, unsigned slot_count,
|
||||||
enum glsl_interp_mode interp)
|
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 */
|
/* Set up interpolation modes for every element in the VUE */
|
||||||
void
|
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)
|
struct brw_wm_prog_data *prog_data)
|
||||||
{
|
{
|
||||||
/* Initialise interp_mode. INTERP_MODE_NONE == 0 */
|
/* Initialise interp_mode. INTERP_MODE_NONE == 0 */
|
||||||
|
Reference in New Issue
Block a user