mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 21:50:12 +01:00
glsl: use the is_gl_identifier() helper in a couple more places
Reviewed-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
parent
83b344021b
commit
a6822e3135
2 changed files with 2 additions and 2 deletions
|
|
@ -706,7 +706,7 @@ ir_validate::visit(ir_variable *ir)
|
|||
}
|
||||
|
||||
if (ir->data.mode == ir_var_uniform
|
||||
&& strncmp(ir->name, "gl_", 3) == 0
|
||||
&& is_gl_identifier(ir->name)
|
||||
&& ir->get_state_slots() == NULL) {
|
||||
printf("built-in uniform has no state\n");
|
||||
ir->print();
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@ optimize_dead_builtin_variables(exec_list *instructions,
|
|||
&& var->data.how_declared != ir_var_declared_implicitly)
|
||||
continue;
|
||||
|
||||
if (strncmp(var->name, "gl_", 3) != 0)
|
||||
if (!is_gl_identifier(var->name))
|
||||
continue;
|
||||
|
||||
/* gl_ModelViewProjectionMatrix and gl_Vertex are special because they
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue