vtn: Don't warn about linkage capability if we're creating a NIR library

We've supported this for a while now for libclc

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Karol Herbst <kherbst@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10181>
This commit is contained in:
Jesse Natalie
2021-04-11 14:09:09 -07:00
committed by Marge Bot
parent 6a545e69d9
commit 9f82399bf9

View File

@@ -4286,8 +4286,9 @@ vtn_handle_preamble_instruction(struct vtn_builder *b, SpvOp opcode,
break;
case SpvCapabilityLinkage:
vtn_warn("Unsupported SPIR-V capability: %s",
spirv_capability_to_string(cap));
if (!b->options->create_library)
vtn_warn("Unsupported SPIR-V capability: %s",
spirv_capability_to_string(cap));
break;
case SpvCapabilitySparseResidency: