From 2ed5d67c0e8bcea691843af59b8ed64094ff3adf Mon Sep 17 00:00:00 2001 From: Simon Kallweit <64953474+skallweitNV@users.noreply.github.com> Date: Thu, 21 Nov 2024 10:46:42 +0100 Subject: [PATCH] update vcpkg (#128) * update vcpkg to version 2024.10.21 * fix deprecated asmjit API * fix build usage --- external/vcpkg | 2 +- src/sgl/core/struct.cpp | 10 ++++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/external/vcpkg b/external/vcpkg index c8696863..10b7a178 160000 --- a/external/vcpkg +++ b/external/vcpkg @@ -1 +1 @@ -Subproject commit c8696863d371ab7f46e213d8f5ca923c4aef2a00 +Subproject commit 10b7a178346f3f0abef60cecd5130e295afd8da4 diff --git a/src/sgl/core/struct.cpp b/src/sgl/core/struct.cpp index 6b0656db..e7c32d81 100644 --- a/src/sgl/core/struct.cpp +++ b/src/sgl/core/struct.cpp @@ -920,7 +920,8 @@ struct X86Program : public Program { c.comment(text.c_str()); }; - auto node = c.addFunc(asmjit::FuncSignatureT(asmjit::CallConvId::kHost)); + auto node + = c.addFunc(asmjit::FuncSignature::build(asmjit::CallConvId::kHost)); auto src = c.newIntPtr("src"); auto dst = c.newIntPtr("dst"); auto count = c.newInt64("count"); @@ -1113,7 +1114,7 @@ struct X86Program : public Program { c.invoke( &node, imm((void*)math::float16_to_float32), - FuncSignatureT(CallConvId::kHost) + FuncSignature::build(CallConvId::kHost) ); node->setArg(0, tmp); node->setRet(0, reg.xmm); @@ -1198,7 +1199,7 @@ struct X86Program : public Program { c.invoke( &node, imm((void*)math::float32_to_float16), - FuncSignatureT(CallConvId::kHost) + FuncSignature::build(CallConvId::kHost) ); node->setArg(0, reg.xmm); node->setRet(0, tmp2); @@ -1506,7 +1507,8 @@ struct ARMProgram : public Program { c.comment(text.c_str()); }; - auto node = c.addFunc(asmjit::FuncSignatureT(asmjit::CallConvId::kHost)); + auto node + = c.addFunc(asmjit::FuncSignature::build(asmjit::CallConvId::kHost)); auto src = c.newIntPtr("src"); auto dst = c.newIntPtr("dst"); auto count = c.newInt64("count");