6 Star 0 Fork 5

src-openEuler/qt6-qtquick3dphysics

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
physx-loongarch64.patch 2.69 KB
一键复制 编辑 原始数据 按行查看 历史
diff -Naur qtquick3dphysics-everywhere-src-6.5.2/src/3rdparty/PhysX/pxshared/include/foundation/PxPreprocessor.h qtquick3dphysics-everywhere-src-6.5.2-change/src/3rdparty/PhysX/pxshared/include/foundation/PxPreprocessor.h
--- qtquick3dphysics-everywhere-src-6.5.2/src/3rdparty/PhysX/pxshared/include/foundation/PxPreprocessor.h 2024-06-27 16:11:54.523604123 +0800
+++ qtquick3dphysics-everywhere-src-6.5.2-change/src/3rdparty/PhysX/pxshared/include/foundation/PxPreprocessor.h 2024-06-27 16:07:34.811096872 +0800
@@ -129,6 +129,8 @@
#define PX_X64 1
#elif defined(__riscv) && __riscv_xlen == 64
#define PX_RV64 1
+#elif defined(__loongarch__) && __loongarch_grlen == 64
+#define PX_LN64 1
#else
#error "Unknown architecture"
#endif
@@ -149,7 +151,7 @@
#endif
/** Disable SIMD for webassembly, mips and arm64 */
-#if defined(__EMSCRIPTEN__) || defined(__mips__) || defined(_M_ARM64) || defined(_M_ARM) || defined(__riscv)
+#if defined(__EMSCRIPTEN__) || defined(__mips__) || defined(_M_ARM64) || defined(_M_ARM) || defined(__riscv) || defined(__loongarch__)
#define PX_SIMD_DISABLED 1
#endif
@@ -264,7 +266,7 @@
// architecture
#define PX_INTEL_FAMILY (PX_X64 || PX_X86)
#define PX_ARM_FAMILY (PX_ARM || PX_A64)
-#define PX_P64_FAMILY (PX_X64 || PX_A64 || PX_RV64) // shortcut for 64-bit architectures
+#define PX_P64_FAMILY (PX_X64 || PX_A64 || PX_RV64 || PX_LN64) // shortcut for 64-bit architectures
/**
C++ standard library defines
diff -Naur qtquick3dphysics-everywhere-src-6.5.2/src/3rdparty/PhysX/source/physxextensions/src/serialization/SnSerialUtils.cpp qtquick3dphysics-everywhere-src-6.5.2-change/src/3rdparty/PhysX/source/physxextensions/src/serialization/SnSerialUtils.cpp
--- qtquick3dphysics-everywhere-src-6.5.2/src/3rdparty/PhysX/source/physxextensions/src/serialization/SnSerialUtils.cpp 2024-06-27 16:11:54.523604123 +0800
+++ qtquick3dphysics-everywhere-src-6.5.2-change/src/3rdparty/PhysX/source/physxextensions/src/serialization/SnSerialUtils.cpp 2024-06-27 16:11:09.539516263 +0800
@@ -39,7 +39,7 @@
namespace
{
-#define SN_NUM_BINARY_PLATFORMS 20
+#define SN_NUM_BINARY_PLATFORMS 21
const PxU32 sBinaryPlatformTags[SN_NUM_BINARY_PLATFORMS] =
{
PX_MAKE_FOURCC('W','_','3','2'),
@@ -60,6 +60,7 @@
PX_MAKE_FOURCC('W','A','6','4'),
PX_MAKE_FOURCC('L','A','3','2'),
PX_MAKE_FOURCC('L','V','6','4'),
+ PX_MAKE_FOURCC('L','N','6','4'),
PX_MAKE_FOURCC('U','N','K','_'),
};
@@ -84,6 +85,7 @@
"macarm",
"linuxarm",
"linuxrv64",
+ "linuxln64",
"unknown",
};
@@ -131,8 +133,10 @@
return sBinaryPlatformTags[17];
#elif PX_LINUX && PX_RV64
return sBinaryPlatformTags[18];
-#else
+#elif PX_LINUX && PX_LN64
return sBinaryPlatformTags[19];
+#else
+ return sBinaryPlatformTags[20];
#endif
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/qt6-qtquick3dphysics.git
[email protected]:src-openeuler/qt6-qtquick3dphysics.git
src-openeuler
qt6-qtquick3dphysics
qt6-qtquick3dphysics
master

搜索帮助