summaryrefslogtreecommitdiffstats
path: root/src/compiler/nir/nir_lower_io.c
diff options
context:
space:
mode:
authorGrazvydas Ignotas <[email protected]>2017-06-07 02:19:15 +0300
committerGrazvydas Ignotas <[email protected]>2017-06-10 16:48:45 +0300
commit29b9f357049ddd85f3423f9c68ee8ed6bebbd3c1 (patch)
tree073956b0e6120a2c3c362a3ce49f64aacf9df615 /src/compiler/nir/nir_lower_io.c
parente179a3438a7794b13a1ffd3fbc65ac6e68e3f0de (diff)
nir: make various getters take const pointers
This will allow to constify other things. Signed-off-by: Grazvydas Ignotas <[email protected]> Reviewed-by: Connor Abbott <[email protected]> Reviewed-by: Eric Engestrom <[email protected]>
Diffstat (limited to 'src/compiler/nir/nir_lower_io.c')
-rw-r--r--src/compiler/nir/nir_lower_io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/nir/nir_lower_io.c b/src/compiler/nir/nir_lower_io.c
index 1ae2cc7fa8d..bb1cdec9632 100644
--- a/src/compiler/nir/nir_lower_io.c
+++ b/src/compiler/nir/nir_lower_io.c
@@ -68,7 +68,7 @@ nir_assign_var_locations(struct exec_list *var_list, unsigned *size,
* (such as geometry shader inputs).
*/
bool
-nir_is_per_vertex_io(nir_variable *var, gl_shader_stage stage)
+nir_is_per_vertex_io(const nir_variable *var, gl_shader_stage stage)
{
if (var->data.patch || !glsl_type_is_array(var->type))
return false;