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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user