mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 16:18:06 +02:00
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:
parent
0ee0d54985
commit
03549f3bf3
1 changed files with 8 additions and 1 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue