projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ac/nir: support v2f16 derivatives
[mesa.git]
/
src
/
amd
/
llvm
/
ac_llvm_build.c
diff --git
a/src/amd/llvm/ac_llvm_build.c
b/src/amd/llvm/ac_llvm_build.c
index 7fa2e38361e4730df9c9dcbbc73e02d0d423fe03..ef4e79c85f0e8e8dcbb9a210c484b5d6d6bceb6f 100644
(file)
--- 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;