mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 04:48:08 +02:00
spirv: replace assert() with unreachable()
This fixes an uninitialized warning for is_vertex_input. Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
parent
298c2e03d7
commit
338d3c0b0f
1 changed files with 1 additions and 1 deletions
|
|
@ -1054,7 +1054,7 @@ var_decoration_cb(struct vtn_builder *b, struct vtn_value *val, int member,
|
|||
is_vertex_input = false;
|
||||
location += VARYING_SLOT_VAR0;
|
||||
} else {
|
||||
assert(!"Location must be on input or output variable");
|
||||
unreachable("Location must be on input or output variable");
|
||||
}
|
||||
|
||||
if (vtn_var->var) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue