mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 02:58:05 +02:00
nir/spirv: Allow pointless variable decorations on inputs
SPIR-V specifies that a bunch of stuff gets applied to types. This means taht a local variable could get, for instance, an array stride. Just because it's pointless doesn't mean you'll never see it.
This commit is contained in:
parent
1ec45a1948
commit
9f9f229359
1 changed files with 2 additions and 0 deletions
|
|
@ -1050,6 +1050,8 @@ var_decoration_cb(struct vtn_builder *b, struct vtn_value *val, int member,
|
|||
case SpvDecorationArrayStride:
|
||||
case SpvDecorationGLSLShared:
|
||||
case SpvDecorationGLSLPacked:
|
||||
break; /* These can apply to a type but we don't care about them */
|
||||
|
||||
case SpvDecorationBinding:
|
||||
case SpvDecorationDescriptorSet:
|
||||
case SpvDecorationNoContraction:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue