mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-27 01:50:10 +01:00
ac/nir: support v2f16 derivatives
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5003>
This commit is contained in:
parent
7c423dd721
commit
c6c8a9bd55
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue