From dcb2432d7d7283b93f79f457637469f52a87268f Mon Sep 17 00:00:00 2001 From: Nicky Perian Date: Thu, 23 Jun 2011 21:44:21 -0500 Subject: Code from Singularity Viewer. Original author Shyotl. Place machine SSE status and viewer compiled status in Help->About Imprudence Floater. Signed-off-by: Nicky Perian --- linden/indra/newview/llfloaterabout.cpp | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) (limited to 'linden') diff --git a/linden/indra/newview/llfloaterabout.cpp b/linden/indra/newview/llfloaterabout.cpp index 8878de5..13795e5 100644 --- a/linden/indra/newview/llfloaterabout.cpp +++ b/linden/indra/newview/llfloaterabout.cpp @@ -190,7 +190,14 @@ LLFloaterAbout::LLFloaterAbout() support.append("CPU: "); support.append( gSysCPU.getCPUString() ); support.append("\n"); - + + support.append("SSE Support:"); + if(gSysCPU.hasSSE()) + support.append(" SSE2\n"); + else if(gSysCPU.hasSSE()) + support.append(" SSE\n"); + else + support.append(" None\n"); U32 memory = gSysMemory.getPhysicalMemoryKB() / 1024; // Moved hack adjustment to Windows memory size into llsys.cpp @@ -225,9 +232,19 @@ LLFloaterAbout::LLFloaterAbout() support.append("OpenGL Version: "); support.append( (const char*) glGetString(GL_VERSION) ); - support.append("\n"); + support.append("\n\n"); + + support.append("Viewer SSE Version: "); +#if _M_IX86_FP > 0 //Windows + support.append(llformat("SSE%i\n", _M_IX86_FP )); +#elif defined(__SSE2__) //GCC + support.append("SSE2\n"); +#elif defined(__SSE__) //GCC + support.append("SSE\n"); +#else + support.append("None\n"); +#endif - support.append("\n"); support.append("libcurl Version: "); support.append( LLCurl::getVersionString() ); -- cgit v1.1