mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-03 06:30:24 +01:00
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: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Cc: 17.0 <mesa-stable@lists.freedesktop.org>
(cherry picked from commit 8a28e764d0)
This commit is contained in:
parent
b6ec9c2098
commit
83cf2d72f7
1 changed files with 2 additions and 1 deletions
|
|
@ -1058,7 +1058,8 @@ var_decoration_cb(struct vtn_builder *b, struct vtn_value *val, int member,
|
|||
is_vertex_input = false;
|
||||
location += 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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue