forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dev-games/ogre: Bump to 2.1 - First major 2.1 release
Changes from the pre-release: * gles2 USE flag is gone, the GLES2 render system is not ported, yet * Added "fine-granularity" USE flag to enable XXXX which has a noticable performance impact. * double-precision USE flag is back in. But if activated, both OGRE_SIMD_NEON and OGRE_SIMD_SSE2 must be disabled, so the performance impact is quite big. * mobile USE flag is gone, this needs further testing. Also I think that building for mobile devices is not really interesting on Gentoo, is it? * Fixed a few warnings and issues, and spoke with upstream about them. ( See: OGRECave/ogre-next#90 ) * Fixed a missing include compilation issue and reported it to upstream. ( See: OGRECave/ogre-next#132 ) Package-Manager: Portage-2.3.101, Repoman-2.3.22 Signed-off-by: Sven Eden <[email protected]> Signed-off-by: James Le Cuirot <[email protected]>
- Loading branch information
Showing
7 changed files
with
214 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
DIST imgui-1.76.tar.gz 1256126 BLAKE2B 801e94e1007e41c5b7281bb30fc7da76ddf0e755bf3ec2c4eb90d730dd9c68685f3e4819f32acc2154fbcd4e32da9d1de6dac36b0cd8885a93457475576b4336 SHA512 7f7d7220c6c2805902665747f32ed094e0558d42cafb25a25bd16fed88da3bf8822c55ed92a552f0599f5563909d471aa5763e53c8dd5bf39367c61e39d015aa | ||
DIST ogre-1.12.8.tar.gz 125932831 BLAKE2B ffd4a443e374ad3f209b4f8a5e18a41b3dbfbb528d20581f48a4d31447e1e20a3b1cdde588b6345bd07d864c9b72ce1e51374de52523e7c4477408c01778af69 SHA512 c446c58b57874d3e2522f7e0315771b7a9f5ac8888449493a1dad6fc4d30454c57f4f145c2554de110607f3e5d586d6ec91859b8024e7d8bdb821fa6c6c3f2e2 | ||
DIST ogre-1.9.0.tar.bz2 128098305 BLAKE2B 6e67a5b60a6606a910e099f1c7ba736eb525f079f3aba5cfb362329b9130059d303fc9df6f7b8611c0ba75e1e207fa018e543e93c9f5ce39a6621e4c72ed4a83 SHA512 b1ea93d80ac0978a7c228460a6714f8d17797450efd5af6765c9fa4402e9060a8ef3a700d2757593a3016fdc32276722c8f4a5d9889a3e2eb424f16162a52bde | ||
DIST ogre-2.1.tar.gz 157457252 BLAKE2B 97e83cb93a07de5bd5f4fd778604e6146105e70045a6019f0fcdd7f96fe20f6ad495e19988dcd5e4c4073a0bcdeb5ce2afb06fae6945363c397a882672c80520 SHA512 9802e3bf20ddb09453524d1ddafa7a2083dfd0e609563f478fe31b087dd06d463f69800b9c6485cb3db92d98f282ef67ace3e272c1ef531e982ea9f719617fb5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
From d1c1116924ca537c1f061ed5422dd9a5207d989a Mon Sep 17 00:00:00 2001 | ||
From: "Matias N. Goldberg" <[email protected]> | ||
Date: Mon, 24 Feb 2020 17:23:25 -0300 | ||
Subject: [PATCH] Bugfix: Bone::_getDerivedTransform using uninitialized values | ||
causing asserts to trigger Also prefer using Mathlib::LAST_AFFINE_COLUMN in | ||
ArrayMatrixAf4x3::store | ||
|
||
--- | ||
.../include/Math/Array/NEON/Single/OgreArrayMatrixAf4x3.h | 6 +----- | ||
.../include/Math/Array/SSE2/Single/OgreArrayMatrixAf4x3.h | 6 +----- | ||
OgreMain/src/Animation/OgreBone.cpp | 4 ++-- | ||
3 files changed, 4 insertions(+), 12 deletions(-) | ||
|
||
diff --git a/OgreMain/include/Math/Array/NEON/Single/OgreArrayMatrixAf4x3.h b/OgreMain/include/Math/Array/NEON/Single/OgreArrayMatrixAf4x3.h | ||
index 137b7cb5b2..2e2468149d 100644 | ||
--- a/OgreMain/include/Math/Array/NEON/Single/OgreArrayMatrixAf4x3.h | ||
+++ b/OgreMain/include/Math/Array/NEON/Single/OgreArrayMatrixAf4x3.h | ||
@@ -217,11 +217,7 @@ namespace Ogre | ||
vst1q_f32( dstPtr, mChunkBase[0] ); | ||
vst1q_f32( dstPtr + 4, mChunkBase[1] ); | ||
vst1q_f32( dstPtr + 8, mChunkBase[2] ); | ||
- dstPtr += 12; | ||
- *dstPtr++ = 0; | ||
- *dstPtr++ = 0; | ||
- *dstPtr++ = 0; | ||
- *dstPtr++ = 1; | ||
+ vst1q_f32( dstPtr + 12, MathlibNEON::LAST_AFFINE_COLUMN ); | ||
} | ||
|
||
/// Assumes dst is aligned | ||
diff --git a/OgreMain/include/Math/Array/SSE2/Single/OgreArrayMatrixAf4x3.h b/OgreMain/include/Math/Array/SSE2/Single/OgreArrayMatrixAf4x3.h | ||
index 01b75b2730..a96d9a11e0 100644 | ||
--- a/OgreMain/include/Math/Array/SSE2/Single/OgreArrayMatrixAf4x3.h | ||
+++ b/OgreMain/include/Math/Array/SSE2/Single/OgreArrayMatrixAf4x3.h | ||
@@ -217,11 +217,7 @@ namespace Ogre | ||
_mm_store_ps( dstPtr, mChunkBase[0] ); | ||
_mm_store_ps( dstPtr + 4, mChunkBase[1] ); | ||
_mm_store_ps( dstPtr + 8, mChunkBase[2] ); | ||
- dstPtr += 12; | ||
- *dstPtr++ = 0; | ||
- *dstPtr++ = 0; | ||
- *dstPtr++ = 0; | ||
- *dstPtr++ = 1; | ||
+ _mm_store_ps( dstPtr + 12, MathlibSSE2::LAST_AFFINE_COLUMN ); | ||
} | ||
|
||
/// Assumes dst is aligned | ||
diff --git a/OgreMain/src/Animation/OgreBone.cpp b/OgreMain/src/Animation/OgreBone.cpp | ||
index 588c6cb442..8735ed2a2f 100644 | ||
--- a/OgreMain/src/Animation/OgreBone.cpp | ||
+++ b/OgreMain/src/Animation/OgreBone.cpp | ||
@@ -257,8 +257,8 @@ namespace Ogre { | ||
OGRE_ALIGNED_DECL( Matrix4, localSpaceBone, OGRE_SIMD_ALIGNMENT ); | ||
OGRE_ALIGNED_DECL( Matrix4, parentNodeTransform, OGRE_SIMD_ALIGNMENT ); | ||
|
||
- mTransform.mDerivedTransform[mTransform.mIndex].store4x3( &localSpaceBone ); | ||
- mTransform.mParentNodeTransform[mTransform.mIndex]->store4x3( &parentNodeTransform ); | ||
+ mTransform.mDerivedTransform[mTransform.mIndex].store( &localSpaceBone ); | ||
+ mTransform.mParentNodeTransform[mTransform.mIndex]->store( &parentNodeTransform ); | ||
|
||
parentNodeTransform.concatenateAffine( localSpaceBone ); | ||
|
67 changes: 67 additions & 0 deletions
67
dev-games/ogre/files/ogre-2.1-fix_compilation_issues.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
--- a/Components/Paging/src/OgreGrid3DPageStrategy.cpp 2020-04-28 09:31:06.301940556 +0200 | ||
+++ b/Components/Paging/src/OgreGrid3DPageStrategy.cpp 2020-04-28 09:40:51.777904025 +0200 | ||
@@ -367,9 +367,9 @@ | ||
{ | ||
mat = MaterialManager::getSingleton().create(matName, ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME); | ||
Pass* pass = mat->getTechnique(0)->getPass(0); | ||
- pass->setLightingEnabled(false); | ||
+ //pass->setLightingEnabled(false); | ||
pass->setVertexColourTracking(TVC_AMBIENT); | ||
- pass->setDepthWriteEnabled(false); | ||
+ //pass->setDepthWriteEnabled(false); | ||
mat->load(); | ||
} | ||
|
||
@@ -383,7 +383,7 @@ | ||
else | ||
{ | ||
mo = p->getParentSection()->getSceneManager()->createManualObject(); | ||
- mo->begin(matName, RenderOperation::OT_LINE_STRIP); | ||
+ mo->begin(matName, OperationType::OT_LINE_STRIP); | ||
} | ||
|
||
ColourValue vcol = ColourValue::Green; | ||
--- a/Components/Paging/src/OgreGrid2DPageStrategy.cpp 2020-04-28 09:43:23.119894582 +0200 | ||
+++ b/Components/Paging/src/OgreGrid2DPageStrategy.cpp 2020-04-28 09:44:00.844892228 +0200 | ||
@@ -405,9 +405,9 @@ | ||
{ | ||
mat = MaterialManager::getSingleton().create(matName, ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME); | ||
Pass* pass = mat->getTechnique(0)->getPass(0); | ||
- pass->setLightingEnabled(false); | ||
+ //pass->setLightingEnabled(false); | ||
pass->setVertexColourTracking(TVC_AMBIENT); | ||
- pass->setDepthWriteEnabled(false); | ||
+ //pass->setDepthWriteEnabled(false); | ||
mat->load(); | ||
} | ||
|
||
@@ -416,7 +416,7 @@ | ||
if (sn->numAttachedObjects() == 0) | ||
{ | ||
mo = p->getParentSection()->getSceneManager()->createManualObject(); | ||
- mo->begin(matName, RenderOperation::OT_LINE_STRIP); | ||
+ mo->begin(matName, OperationType::OT_LINE_STRIP); | ||
} | ||
else | ||
{ | ||
--- a/OgreMain/src/OgrePVRTCCodec.cpp 2020-04-27 20:00:44.816974345 +0200 | ||
+++ b/OgreMain/src/OgrePVRTCCodec.cpp 2020-04-27 20:03:49.186962841 +0200 | ||
@@ -33,6 +33,7 @@ | ||
#include "OgreException.h" | ||
#include "OgreLogManager.h" | ||
#include "OgreBitwise.h" | ||
+#include "OgreDataStream.h" | ||
|
||
#define FOURCC(c0, c1, c2, c3) (c0 | (c1 << 8) | (c2 << 16) | (c3 << 24)) | ||
#define PVR_TEXTURE_FLAG_TYPE_MASK 0xff | ||
--- a/OgreMain/src/OgrePlatformInformation.cpp 2020-08-23 17:39:09.971041355 +0200 | ||
+++ b/OgreMain/src/OgrePlatformInformation.cpp 2020-08-23 17:40:11.594044907 +0200 | ||
@@ -42,7 +42,7 @@ | ||
#if OGRE_PLATFORM != OGRE_PLATFORM_WIN32 | ||
#if OGRE_PLATFORM == OGRE_PLATFORM_ANDROID | ||
#include <linux/sysctl.h> | ||
- #else | ||
+ #elif OGRE_PLATFORM == OGRE_PLATFORM_APPLE || OGRE_PLATFORM == OGRE_PLATFORM_APPLE_IOS | ||
#include <sys/sysctl.h> | ||
#endif | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- a/CMake/Dependencies.cmake 2020-04-27 15:59:25.005877828 +0200 | ||
+++ b/CMake/Dependencies.cmake 2020-04-27 15:59:42.572876732 +0200 | ||
@@ -111,6 +111,9 @@ | ||
####################################################################### | ||
|
||
# Find OpenGL | ||
+if(POLICY CMP0072) | ||
+ cmake_policy(SET CMP0072 NEW) | ||
+endif() | ||
if(NOT ANDROID AND NOT EMSCRIPTEN) | ||
find_package(OpenGL) | ||
macro_log_feature(OPENGL_FOUND "OpenGL" "Support for the OpenGL render system" "http://www.opengl.org/" FALSE "" "") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- a/Samples/2.0/Tutorials/Tutorial_Terrain/src/Terra/TerrainCell.cpp 2020-04-28 18:10:40.416995414 +0200 | ||
+++ b/Samples/2.0/Tutorials/Tutorial_Terrain/src/Terra/TerrainCell.cpp 2020-04-28 18:30:46.074920186 +0200 | ||
@@ -133,7 +133,11 @@ | ||
gpuPtr[0] = m_verticesPerLine; | ||
gpuPtr[1] = m_lodLevel; | ||
gpuPtr[2] = vao->getPrimitiveCount() / m_verticesPerLine - 2u; | ||
- gpuPtr[3] = *reinterpret_cast<uint32*>( &m_parentTerra->m_skirtSize ); | ||
+ /* Triggers: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] | ||
+ * gpuPtr[3] = *reinterpret_cast<uint32*>( &m_parentTerra->m_skirtSize ); | ||
+ * See: http://zaynar.co.uk/docs/float-aliasing.html | ||
+ */ | ||
+ memcpy(&gpuPtr[3], &m_parentTerra->m_skirtSize, sizeof(gpuPtr[3])); | ||
|
||
//ivec4 xzTexPosBounds | ||
((int32*RESTRICT_ALIAS)gpuPtr)[4] = m_gridX; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters