spirv: Silence "Decoration not allowed on struct members: SpvDecorationRestrict"

VK-GL-CTS causes tons of these due to a bug in glslang, to the point where
it's hard to find actual issues in test logs.  Disable the warning for
now, with a link to the issue we're waiting on being resolved.

Acked-by: Daniel Stone <daniels@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15332>
This commit is contained in:
Emma Anholt 2022-03-10 12:39:24 -08:00 committed by Marge Bot
parent 0ee0d54985
commit 03549f3bf3

View file

@ -1116,7 +1116,6 @@ struct_member_decoration_cb(struct vtn_builder *b,
case SpvDecorationGLSLShared:
case SpvDecorationGLSLPacked:
case SpvDecorationInvariant:
case SpvDecorationRestrict:
case SpvDecorationAliased:
case SpvDecorationConstant:
case SpvDecorationIndex:
@ -1130,6 +1129,14 @@ struct_member_decoration_cb(struct vtn_builder *b,
spirv_decoration_to_string(dec->decoration));
break;
case SpvDecorationRestrict:
/* While "Restrict" is invalid for struct members, glslang incorrectly
* generates it and it ends up hiding actual driver issues in a wall of
* spam from deqp-vk. Return it to the above block once the issue is
* resolved. https://github.com/KhronosGroup/glslang/issues/703
*/
break;
case SpvDecorationXfbBuffer:
case SpvDecorationXfbStride:
/* This is handled later by var_decoration_cb in vtn_variables.c */