From c15e7ade4e27e1649d5b98f5854e9e52bb9e60ae Mon Sep 17 00:00:00 2001 From: Yong He Date: Fri, 2 Feb 2024 22:04:40 -0800 Subject: Atomics+Wave ops intrinsics fixes. (#3542) * Fix atomics intrinsics, increase kMaxDescriptorSets. * Add SPIRVASM to known non-differentiable insts. * Support fp16 wave ops when targeting glsl. * Fixes. * Fix vk validation errors. * Fix. * Add to allowed failures. --- source/slang/slang-ir-peephole.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source/slang/slang-ir-peephole.cpp') diff --git a/source/slang/slang-ir-peephole.cpp b/source/slang/slang-ir-peephole.cpp index 22bcafdf4..fb67c6842 100644 --- a/source/slang/slang-ir-peephole.cpp +++ b/source/slang/slang-ir-peephole.cpp @@ -983,6 +983,7 @@ struct PeepholeContext : InstPassBase } case kIROp_IsInt: case kIROp_IsFloat: + case kIROp_IsHalf: case kIROp_IsUnsignedInt: case kIROp_IsSignedInt: case kIROp_IsBool: @@ -1009,6 +1010,9 @@ struct PeepholeContext : InstPassBase case kIROp_IsFloat: result = isFloatingType(type); break; + case kIROp_IsHalf: + result = type->getOp() == kIROp_HalfType; + break; case kIROp_IsUnsignedInt: result = isIntegralType(type) && !getIntTypeInfo(type).isSigned; break; -- cgit v1.2.3