mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 20:38:06 +02:00
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:
parent
31e6d15801
commit
4f7b27bccf
1 changed files with 4 additions and 1 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue