Mesa (master): ac/nir: support v2f16 derivatives
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue Jun 2 20:46:54 UTC 2020
Module: Mesa
Branch: master
Commit: c6c8a9bd554f51c05bba5ab2c6cbc70edae9d10f
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=c6c8a9bd554f51c05bba5ab2c6cbc70edae9d10f
Author: Marek Olšák <marek.olsak at amd.com>
Date: Mon May 11 03:01:50 2020 -0400
ac/nir: support v2f16 derivatives
Reviewed-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5003>
---
src/amd/llvm/ac_llvm_build.c | 2 ++
1 file changed, 2 insertions(+)
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;
More information about the mesa-commit
mailing list