Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
XDG Integration
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Silent mode is enabled
All outbound communications are blocked.
Learn more
.
Show more breadcrumbs
JennaHuntsman
XDG Integration
Commits
88eca952
Commit
88eca952
authored
4 years ago
by
Ptolemy
Browse files
Options
Downloads
Patches
Plain Diff
SL-12971: Add logging of Display Devices -- useful on dual GPU machines
parent
1062efd0
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
indra/llwindow/llwindowwin32.cpp
+31
-0
31 additions, 0 deletions
indra/llwindow/llwindowwin32.cpp
with
31 additions
and
0 deletions
indra/llwindow/llwindowwin32.cpp
+
31
−
0
View file @
88eca952
...
@@ -676,6 +676,37 @@ LLWindowWin32::LLWindowWin32(LLWindowCallbacks* callbacks,
...
@@ -676,6 +676,37 @@ LLWindowWin32::LLWindowWin32(LLWindowCallbacks* callbacks,
// TrackMouseEvent( &track_mouse_event );
// TrackMouseEvent( &track_mouse_event );
// }
// }
// SL-12971 dual GPU display
DISPLAY_DEVICEA
display_device
;
int
display_index
=
-
1
;
DWORD
display_flags
=
0
;
// EDD_GET_DEVICE_INTERFACE_NAME ?
const
size_t
display_bytes
=
sizeof
(
display_device
);
do
{
if
(
display_index
>=
0
)
{
// CHAR DeviceName [ 32] Adapter name
// CHAR DeviceString[128]
CHAR
text
[
256
];
size_t
name_len
=
strlen
(
display_device
.
DeviceName
);
size_t
desc_len
=
strlen
(
display_device
.
DeviceString
);
CHAR
*
name
=
name_len
?
display_device
.
DeviceName
:
"???"
;
CHAR
*
desc
=
desc_len
?
display_device
.
DeviceString
:
"???"
;
sprintf
(
text
,
"Display Device %d: %s, %s"
,
display_index
,
name
,
desc
);
LL_INFOS
(
"Window"
)
<<
text
<<
LL_ENDL
;
}
::
ZeroMemory
(
&
display_device
,
display_bytes
);
display_device
.
cb
=
display_bytes
;
display_index
++
;
}
while
(
EnumDisplayDevicesA
(
NULL
,
display_index
,
&
display_device
,
display_flags
));
LL_INFOS
(
"Window"
)
<<
"Total Display Devices: "
<<
display_index
<<
LL_ENDL
;
//-----------------------------------------------------------------------
//-----------------------------------------------------------------------
// Create GL drawing context
// Create GL drawing context
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment