mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-27 12:40:09 +01:00
ac/nir: set the second v_cvt_pkrtz argument to undef if it's unused
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
bfb95725aa
commit
7c423dd721
1 changed files with 1 additions and 1 deletions
|
|
@ -971,7 +971,7 @@ static void visit_alu(struct ac_nir_context *ctx, const nir_alu_instr *instr)
|
|||
}
|
||||
|
||||
assert(ac_get_llvm_num_components(src[0]) == 1);
|
||||
LLVMValueRef param[2] = { src[0], ctx->ac.f32_0 };
|
||||
LLVMValueRef param[2] = { src[0], LLVMGetUndef(ctx->ac.f32) };
|
||||
result = ac_build_cvt_pkrtz_f16(&ctx->ac, param);
|
||||
result = LLVMBuildExtractElement(ctx->ac.builder, result, ctx->ac.i32_0, "");
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue