From a5d3bec25d70f23da1e79cd7773981ff34593611 Mon Sep 17 00:00:00 2001 From: Yong He Date: Thu, 15 Sep 2022 20:37:45 -0700 Subject: Run simple compute kernel in gfx-smoke test. (#2400) --- source/slang/slang-ir-lower-generic-function.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source/slang/slang-ir-lower-generic-function.cpp') diff --git a/source/slang/slang-ir-lower-generic-function.cpp b/source/slang/slang-ir-lower-generic-function.cpp index 0f94f137d..806ea8826 100644 --- a/source/slang/slang-ir-lower-generic-function.cpp +++ b/source/slang/slang-ir-lower-generic-function.cpp @@ -268,6 +268,8 @@ namespace Slang IRInst* interfaceRequirementVal = nullptr; auto witnessTableType = as(lookupInst->getWitnessTable()->getDataType()); if (!witnessTableType) return; + if (witnessTableType->getConformanceType()->findDecoration()) + return; auto interfaceType = maybeLowerInterfaceType(cast(witnessTableType->getConformanceType())); interfaceRequirementVal = sharedContext->findInterfaceRequirementVal(interfaceType, lookupInst->getRequirementKey()); lookupInst->setFullType((IRType*)interfaceRequirementVal); -- cgit v1.2.3