Skip to content
Snippets Groups Projects
Commit 8a28e764 authored by Lionel Landwerlin's avatar Lionel Landwerlin
Browse files

spirv: don't assert with location decorations on non i/o variables


Some applications might add location decoration to samplers. Rather
than raising an error it seems it would make more sense to just
discard these decorations.

Signed-off-by: default avatarLionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: default avatarJason Ekstrand <jason@jlekstrand.net>
Cc: 17.0 <mesa-stable@lists.freedesktop.org>
parent f57bdd48
No related branches found
No related tags found
No related merge requests found
......@@ -1199,7 +1199,8 @@ var_decoration_cb(struct vtn_builder *b, struct vtn_value *val, int member,
is_vertex_input = false;
location += vtn_var->patch ? VARYING_SLOT_PATCH0 : VARYING_SLOT_VAR0;
} else {
unreachable("Location must be on input or output variable");
vtn_warn("Location must be on input or output variable");
return;
}
if (vtn_var->var) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment