-Screwed around with SSE2.
-Added ReleaseSSE2 as a build target. -LL_VECTORIZE is silly and breaks things... -Small little tweaks. I have not tested if the cmake alterations work under linux and darwin. Hollar if broken.
This commit is contained in:
@@ -59,7 +59,7 @@
|
||||
#include "v3math.h"
|
||||
|
||||
|
||||
#if LL_VECTORIZE
|
||||
#if LL_VECTORIZE && (_M_IX86_FP > 1 || defined(__SSE2__) ) //These intrinsics are only valid with sse2 or higher.
|
||||
|
||||
|
||||
inline void matrix_translate(LLV4Matrix4& m, const LLMatrix4* w, const LLVector3& j)
|
||||
@@ -116,6 +116,10 @@ void LLViewerJointMesh::updateGeometrySSE2(LLFace *face, LLPolyMesh *mesh)
|
||||
|
||||
//setBuffer(0) called in LLVOAvatar::renderSkinned
|
||||
}
|
||||
bool LLViewerJointMesh::supportsSSE2()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
@@ -123,5 +127,9 @@ void LLViewerJointMesh::updateGeometrySSE2(LLFace *face, LLPolyMesh *mesh)
|
||||
{
|
||||
LLViewerJointMesh::updateGeometryVectorized(face, mesh);
|
||||
}
|
||||
bool LLViewerJointMesh::supportsSSE2()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user