aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llwindow/lldxhardware.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:45:50 -0500
committerJacek Antonelli2008-08-15 23:45:50 -0500
commit2a4dea528f670b9bb1f77ef27a8a1dd16603d114 (patch)
tree95c68e362703c9099d571ecbdc6142b1cda1e005 /linden/indra/llwindow/lldxhardware.cpp
parentSecond Life viewer sources 1.20.6 (diff)
downloadmeta-impy-2a4dea528f670b9bb1f77ef27a8a1dd16603d114.zip
meta-impy-2a4dea528f670b9bb1f77ef27a8a1dd16603d114.tar.gz
meta-impy-2a4dea528f670b9bb1f77ef27a8a1dd16603d114.tar.bz2
meta-impy-2a4dea528f670b9bb1f77ef27a8a1dd16603d114.tar.xz
Second Life viewer sources 1.20.7
Diffstat (limited to 'linden/indra/llwindow/lldxhardware.cpp')
-rw-r--r--linden/indra/llwindow/lldxhardware.cpp21
1 files changed, 10 insertions, 11 deletions
diff --git a/linden/indra/llwindow/lldxhardware.cpp b/linden/indra/llwindow/lldxhardware.cpp
index 4eb8cab..c2d94c3 100644
--- a/linden/indra/llwindow/lldxhardware.cpp
+++ b/linden/indra/llwindow/lldxhardware.cpp
@@ -304,7 +304,7 @@ BOOL LLDXHardware::getInfo(BOOL vram_only)
304 IDxDiagContainer *driver_containerp = NULL; 304 IDxDiagContainer *driver_containerp = NULL;
305 305
306 // CoCreate a IDxDiagProvider* 306 // CoCreate a IDxDiagProvider*
307 llinfos << "CoCreateInstance IID_IDxDiagProvider" << llendl; 307 LL_DEBUGS("AppInit") << "CoCreateInstance IID_IDxDiagProvider" << LL_ENDL;
308 hr = CoCreateInstance(CLSID_DxDiagProvider, 308 hr = CoCreateInstance(CLSID_DxDiagProvider,
309 NULL, 309 NULL,
310 CLSCTX_INPROC_SERVER, 310 CLSCTX_INPROC_SERVER,
@@ -313,7 +313,7 @@ BOOL LLDXHardware::getInfo(BOOL vram_only)
313 313
314 if (FAILED(hr)) 314 if (FAILED(hr))
315 { 315 {
316 llwarns << "No DXDiag provider found! DirectX 9 not installed!" << llendl; 316 LL_WARNS("AppInit") << "No DXDiag provider found! DirectX 9 not installed!" << LL_ENDL;
317 gWriteDebug("No DXDiag provider found! DirectX 9 not installed!\n"); 317 gWriteDebug("No DXDiag provider found! DirectX 9 not installed!\n");
318 goto LCleanup; 318 goto LCleanup;
319 } 319 }
@@ -331,14 +331,14 @@ BOOL LLDXHardware::getInfo(BOOL vram_only)
331 dx_diag_init_params.bAllowWHQLChecks = TRUE; 331 dx_diag_init_params.bAllowWHQLChecks = TRUE;
332 dx_diag_init_params.pReserved = NULL; 332 dx_diag_init_params.pReserved = NULL;
333 333
334 llinfos << "dx_diag_providerp->Initialize" << llendl; 334 LL_DEBUGS("AppInit") << "dx_diag_providerp->Initialize" << LL_ENDL;
335 hr = dx_diag_providerp->Initialize(&dx_diag_init_params); 335 hr = dx_diag_providerp->Initialize(&dx_diag_init_params);
336 if(FAILED(hr)) 336 if(FAILED(hr))
337 { 337 {
338 goto LCleanup; 338 goto LCleanup;
339 } 339 }
340 340
341 llinfos << "dx_diag_providerp->GetRootContainer" << llendl; 341 LL_DEBUGS("AppInit") << "dx_diag_providerp->GetRootContainer" << LL_ENDL;
342 hr = dx_diag_providerp->GetRootContainer( &dx_diag_rootp ); 342 hr = dx_diag_providerp->GetRootContainer( &dx_diag_rootp );
343 if(FAILED(hr) || !dx_diag_rootp) 343 if(FAILED(hr) || !dx_diag_rootp)
344 { 344 {
@@ -348,7 +348,7 @@ BOOL LLDXHardware::getInfo(BOOL vram_only)
348 HRESULT hr; 348 HRESULT hr;
349 349
350 // Get display driver information 350 // Get display driver information
351 llinfos << "dx_diag_rootp->GetChildContainer" << llendl; 351 LL_DEBUGS("AppInit") << "dx_diag_rootp->GetChildContainer" << LL_ENDL;
352 hr = dx_diag_rootp->GetChildContainer(L"DxDiag_DisplayDevices", &devices_containerp); 352 hr = dx_diag_rootp->GetChildContainer(L"DxDiag_DisplayDevices", &devices_containerp);
353 if(FAILED(hr) || !devices_containerp) 353 if(FAILED(hr) || !devices_containerp)
354 { 354 {
@@ -356,7 +356,7 @@ BOOL LLDXHardware::getInfo(BOOL vram_only)
356 } 356 }
357 357
358 // Get device 0 358 // Get device 0
359 llinfos << "devices_containerp->GetChildContainer" << llendl; 359 LL_DEBUGS("AppInit") << "devices_containerp->GetChildContainer" << LL_ENDL;
360 hr = devices_containerp->GetChildContainer(L"0", &device_containerp); 360 hr = devices_containerp->GetChildContainer(L"0", &device_containerp);
361 if(FAILED(hr) || !device_containerp) 361 if(FAILED(hr) || !device_containerp)
362 { 362 {
@@ -373,10 +373,9 @@ BOOL LLDXHardware::getInfo(BOOL vram_only)
373 // Dump the string as an int into the structure 373 // Dump the string as an int into the structure
374 char *stopstring; 374 char *stopstring;
375 mVRAM = strtol(ram_str.c_str(), &stopstring, 10); 375 mVRAM = strtol(ram_str.c_str(), &stopstring, 10);
376 llinfos << "VRAM Detected: " << mVRAM << " DX9 string: " << ram_str << llendl; 376 LL_INFOS("AppInit") << "VRAM Detected: " << mVRAM << " DX9 string: " << ram_str << LL_ENDL;
377 } 377 }
378 378
379
380 if (vram_only) 379 if (vram_only)
381 { 380 {
382 ok = TRUE; 381 ok = TRUE;
@@ -393,7 +392,7 @@ BOOL LLDXHardware::getInfo(BOOL vram_only)
393 // This call may take some time while dxdiag gathers the info. 392 // This call may take some time while dxdiag gathers the info.
394 DWORD num_devices = 0; 393 DWORD num_devices = 0;
395 WCHAR wszContainer[256]; 394 WCHAR wszContainer[256];
396 llinfos << "dx_diag_rootp->GetChildContainer DxDiag_SystemDevices" << llendl; 395 LL_DEBUGS("AppInit") << "dx_diag_rootp->GetChildContainer DxDiag_SystemDevices" << LL_ENDL;
397 hr = dx_diag_rootp->GetChildContainer(L"DxDiag_SystemDevices", &system_device_containerp); 396 hr = dx_diag_rootp->GetChildContainer(L"DxDiag_SystemDevices", &system_device_containerp);
398 if (FAILED(hr)) 397 if (FAILED(hr))
399 { 398 {
@@ -406,7 +405,7 @@ BOOL LLDXHardware::getInfo(BOOL vram_only)
406 goto LCleanup; 405 goto LCleanup;
407 } 406 }
408 407
409 llinfos << "DX9 iterating over devices" << llendl; 408 LL_DEBUGS("AppInit") << "DX9 iterating over devices" << LL_ENDL;
410 S32 device_num = 0; 409 S32 device_num = 0;
411 for (device_num = 0; device_num < (S32)num_devices; device_num++) 410 for (device_num = 0; device_num < (S32)num_devices; device_num++)
412 { 411 {
@@ -523,7 +522,7 @@ BOOL LLDXHardware::getInfo(BOOL vram_only)
523LCleanup: 522LCleanup:
524 if (!ok) 523 if (!ok)
525 { 524 {
526 llwarns << "DX9 probe failed" << llendl; 525 LL_WARNS("AppInit") << "DX9 probe failed" << LL_ENDL;
527 gWriteDebug("DX9 probe failed\n"); 526 gWriteDebug("DX9 probe failed\n");
528 } 527 }
529 528