Getting display device HW info

Hi

I have a machine with 2 adpaters and 2 monitors (SLI machine).
Each monitor is connected to a different adapter.

I open an OpenGL window on each of the monitors:

Display * d0 = XOpenDisplay(":0.0");
Display * d1 = XOpenDisplay(":0.1");

// initalize displays

GLXContext glc0 = glXCreateContext(d0, …)
GLXContext glc1 = glXCreateContext(d1, …)

// render something to each of the windows

My question is:
Is there anyway to get the name of the display adapter used by each display? I want to know the device name (HW name of linux device name) of the adapter that I’m using.

Thanks.

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.