nir: make various getters take const pointers

This will allow to constify other things.

Signed-off-by: Grazvydas Ignotas <notasas@gmail.com>
Reviewed-by: Connor Abbott <cwabbott0@gmail.com>
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
This commit is contained in:
Grazvydas Ignotas
2017-06-07 02:19:15 +03:00
parent e179a3438a
commit 29b9f35704
2 changed files with 14 additions and 13 deletions

View File

@@ -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;