diff options
author | Hans-Kristian Arntzen <post@arntzen-software.no> | 2022-10-20 16:02:16 +0300 |
---|---|---|
committer | Hans-Kristian Arntzen <post@arntzen-software.no> | 2022-10-20 16:02:16 +0300 |
commit | b77e81a6eb020018dde3171568add9d9ccf6eec9 (patch) | |
tree | 3585d80c96970ca8a15fcda709b1d642c9320fb6 /dxil_converter.cpp | |
parent | 2166bc7ea0ceb2d7ff6d787d9b007f7eb7d4aaa8 (diff) |
Don't use relaxed when using native FP16 == min16float.
Diffstat (limited to 'dxil_converter.cpp')
-rw-r--r-- | dxil_converter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dxil_converter.cpp b/dxil_converter.cpp index fbf11ae..6d2827e 100644 --- a/dxil_converter.cpp +++ b/dxil_converter.cpp @@ -6037,7 +6037,7 @@ bool Converter::Impl::type_can_relax_precision(const llvm::Type *type, bool know if (type->getTypeID() == llvm::Type::TypeID::VectorTyID) type = llvm::cast<llvm::VectorType>(type)->getElementType(); - return !execution_mode_meta.native_16bit_operations && + return (!execution_mode_meta.native_16bit_operations && !options.min_precision_prefer_native_16bit) && (type->getTypeID() == llvm::Type::TypeID::HalfTyID || (type->getTypeID() == llvm::Type::TypeID::IntegerTyID && type->getIntegerBitWidth() == 16 && known_integer_sign)); |