spirv: ignore SpvDecorationInvariant warning on struct members

Similar to SpvDecorationRestrict, looks like it's also incorrectly
generated by glslang.

This will allow RADV/CI to leave MESA_SPIRV_LOG_LEVEL as default
(ie. only warnings).

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Acked-by: Martin Roukala <martin.roukala@mupuf.org>
Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22917>
This commit is contained in:
Samuel Pitoiset 2023-05-09 11:52:55 +02:00 committed by Marge Bot
parent 31e6d15801
commit 4f7b27bccf

View file

@ -1131,7 +1131,6 @@ struct_member_decoration_cb(struct vtn_builder *b,
case SpvDecorationArrayStride:
case SpvDecorationGLSLShared:
case SpvDecorationGLSLPacked:
case SpvDecorationInvariant:
case SpvDecorationAliased:
case SpvDecorationConstant:
case SpvDecorationIndex:
@ -1153,6 +1152,10 @@ struct_member_decoration_cb(struct vtn_builder *b,
*/
break;
case SpvDecorationInvariant:
/* Also incorrectly generated by glslang, ignore it. */
break;
case SpvDecorationXfbBuffer:
case SpvDecorationXfbStride:
/* This is handled later by var_decoration_cb in vtn_variables.c */