From: Marek Olšák Date: Mon, 11 May 2020 07:01:50 +0000 (-0400) Subject: ac/nir: support v2f16 derivatives X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c6c8a9bd554f51c05bba5ab2c6cbc70edae9d10f;p=mesa.git ac/nir: support v2f16 derivatives Reviewed-by: Samuel Pitoiset Part-of: --- diff --git a/src/amd/llvm/ac_llvm_build.c b/src/amd/llvm/ac_llvm_build.c index 7fa2e38361e..ef4e79c85f0 100644 --- a/src/amd/llvm/ac_llvm_build.c +++ b/src/amd/llvm/ac_llvm_build.c @@ -2055,6 +2055,8 @@ ac_build_ddxy(struct ac_llvm_context *ctx, if (result_type == ctx->f16) val = LLVMBuildZExt(ctx->builder, val, ctx->i32, ""); + else if (result_type == ctx->v2f16) + val = LLVMBuildBitCast(ctx->builder, val, ctx->i32, ""); for (unsigned i = 0; i < 4; ++i) { tl_lanes[i] = i & mask;