Skip to content

Commit 94cbb6d

Browse files
committed
update cafm def
1 parent c456fd8 commit 94cbb6d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

clang/lib/Headers/hlsl/hlsl_intrinsics.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -667,7 +667,9 @@ smoothstep(__detail::HLSL_FIXED_VECTOR<float, N> Min,
667667
}
668668

669669
inline bool CheckAccessFullyMapped(uint Status) {
670-
return static_cast<bool>(Status);
670+
// The bool cast should only apply to the LSB.
671+
uint TruncStatus = Status % 2;
672+
return static_cast<bool>(TruncStatus);
671673
}
672674

673675
//===----------------------------------------------------------------------===//

0 commit comments

Comments
 (0)