ac/llvm: implement v2f16 fsat
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12143>
This commit is contained in:
@@ -2499,7 +2499,7 @@ LLVMValueRef ac_build_fsat(struct ac_llvm_context *ctx, LLVMValueRef src,
|
||||
LLVMValueRef one = LLVMConstReal(type, 1.0);
|
||||
LLVMValueRef result;
|
||||
|
||||
if (bitsize == 64 || (bitsize == 16 && ctx->chip_class <= GFX8)) {
|
||||
if (bitsize == 64 || (bitsize == 16 && ctx->chip_class <= GFX8) || type == ctx->v2f16) {
|
||||
/* Use fmin/fmax for 64-bit fsat or 16-bit on GFX6-GFX8 because LLVM
|
||||
* doesn't expose an intrinsic.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user