From a604394b204acf59481459c9c6d47298a49d174d Mon Sep 17 00:00:00 2001 From: Nekotekina Date: Sat, 24 Sep 2022 16:07:56 +0300 Subject: [PATCH] BufferUtils: fix regression on AVX path primitive_restart_impl::upload_untouched was broken. Bug in vec_broadcast_gpr on AVX path. --- Utilities/JIT.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Utilities/JIT.cpp b/Utilities/JIT.cpp index ced9c85d7d..fbaabad470 100644 --- a/Utilities/JIT.cpp +++ b/Utilities/JIT.cpp @@ -544,7 +544,7 @@ void asmjit::simd_builder::vec_broadcast_gpr(u32 esize, const Operand& v, const this->emit(x86::Inst::kIdVpbroadcastw, v, v); else { - this->emit(x86::Inst::kIdVpunpcklwd, v, v); + this->emit(x86::Inst::kIdVpunpcklwd, v, v, v); this->emit(x86::Inst::kIdVpshufd, v, v, Imm(0)); } }