* update qt6-quick3dphysics to 6.8.1-1
This commit is contained in:
parent
8ed5dd9dc0
commit
8061a1896d
72
qt6/qt6-quick3dphysics/physx-rv64.patch
Normal file
72
qt6/qt6-quick3dphysics/physx-rv64.patch
Normal file
@ -0,0 +1,72 @@
|
||||
diff --git a/src/3rdparty/PhysX/pxshared/include/foundation/PxPreprocessor.h b/src/3rdparty/PhysX/pxshared/include/foundation/PxPreprocessor.h
|
||||
index 630c7c0..4454ff9 100644
|
||||
--- a/src/3rdparty/PhysX/pxshared/include/foundation/PxPreprocessor.h
|
||||
+++ b/src/3rdparty/PhysX/pxshared/include/foundation/PxPreprocessor.h
|
||||
@@ -127,6 +127,8 @@ Architecture defines, see http://sourceforge.net/p/predef/wiki/Architectures/
|
||||
#define PX_PPC 1
|
||||
#elif defined(__mips__)
|
||||
#define PX_X64 1
|
||||
+#elif defined(__riscv) && __riscv_xlen == 64
|
||||
+#define PX_RV64 1
|
||||
#elif defined(__EMSCRIPTEN__)
|
||||
#define PX_WASM
|
||||
#if defined(__LP64__)
|
||||
@@ -154,7 +156,7 @@ SIMD defines
|
||||
#endif
|
||||
|
||||
/** Disable SIMD for webassembly, mips and arm64 */
|
||||
-#if defined(__EMSCRIPTEN__) || defined(__mips__) || defined(_M_ARM64) || defined(_M_ARM)
|
||||
+#if defined(__EMSCRIPTEN__) || defined(__mips__) || defined(_M_ARM64) || defined(_M_ARM) || defined(__riscv)
|
||||
#define PX_SIMD_DISABLED 1
|
||||
#endif
|
||||
|
||||
@@ -278,7 +280,7 @@ family shortcuts
|
||||
// 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_WASM_64) // shortcut for 64-bit architectures
|
||||
+#define PX_P64_FAMILY (PX_X64 || PX_A64 || PX_WASM_64 || PX_RV64) // shortcut for 64-bit architectures
|
||||
|
||||
/**
|
||||
C++ standard library defines
|
||||
diff --git a/src/3rdparty/PhysX/source/physxextensions/src/serialization/SnSerialUtils.cpp b/src/3rdparty/PhysX/source/physxextensions/src/serialization/SnSerialUtils.cpp
|
||||
index aa53797..673cb33 100644
|
||||
--- a/src/3rdparty/PhysX/source/physxextensions/src/serialization/SnSerialUtils.cpp
|
||||
+++ b/src/3rdparty/PhysX/source/physxextensions/src/serialization/SnSerialUtils.cpp
|
||||
@@ -39,7 +39,7 @@ using namespace physx;
|
||||
namespace
|
||||
{
|
||||
|
||||
-#define SN_NUM_BINARY_PLATFORMS 19
|
||||
+#define SN_NUM_BINARY_PLATFORMS 20
|
||||
const PxU32 sBinaryPlatformTags[SN_NUM_BINARY_PLATFORMS] =
|
||||
{
|
||||
PX_MAKE_FOURCC('W','_','3','2'),
|
||||
@@ -59,6 +59,7 @@ const PxU32 sBinaryPlatformTags[SN_NUM_BINARY_PLATFORMS] =
|
||||
PX_MAKE_FOURCC('W','A','3','2'),
|
||||
PX_MAKE_FOURCC('W','A','6','4'),
|
||||
PX_MAKE_FOURCC('L','A','3','2'),
|
||||
+ PX_MAKE_FOURCC('L','V','6','4'),
|
||||
PX_MAKE_FOURCC('U','N','K','_'),
|
||||
};
|
||||
|
||||
@@ -82,6 +83,7 @@ const char* sBinaryPlatformNames[SN_NUM_BINARY_PLATFORMS] =
|
||||
"uwparm64",
|
||||
"macarm",
|
||||
"linuxarm",
|
||||
+ "linuxrv64",
|
||||
"unknown",
|
||||
};
|
||||
|
||||
@@ -127,8 +129,10 @@ PxU32 getBinaryPlatformTag()
|
||||
return sBinaryPlatformTags[16];
|
||||
#elif PX_LINUX && PX_ARM
|
||||
return sBinaryPlatformTags[17];
|
||||
-#else
|
||||
+#elif PX_LINUX && PX_RV64
|
||||
return sBinaryPlatformTags[18];
|
||||
+#else
|
||||
+ return sBinaryPlatformTags[19];
|
||||
#endif
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user