Trying to use wglCreateAffinityDCNV to select graphics card
Posted: 15 Aug 2013 15:28
We have the case where we have one desktop with two nVidia cards and four monitors where we are trying to play 48 vlc video windows. It appears that when using vout=opengl, that only the first graphics card is used for acceleration. I have been trying to write a patch to allow a custom vlc command line argument to specify the graphics card to use, such as
I have been playing with the following code
Everything compiles but when I go to run, the wgl extension function pointers are all NULL.
Any thoughts on what I may be doing wrong? Any one interested in looking at this development? We might be willing to pay for this feature to be developed and contributed back to vlc.
Thanks, David
Code: Select all
--nvidia-affinity=1
Code: Select all
int nVidiaAffinity = var_InheritInteger(vd, "nvidia-affinity");
if (nVidiaAffinity >= 0) {
HGPUNV GpuMask[2];
HGPUNV hGPU;
GpuMask[0] = NULL;
GpuMask[1] = NULL;
if (wglEnumGpusNV(nVidiaAffinity , &hGPU)) {
GpuMask[0] = hGPU;
sys->hGLDC = wglCreateAffinityDCNV(GpuMask);
}
}
Any thoughts on what I may be doing wrong? Any one interested in looking at this development? We might be willing to pay for this feature to be developed and contributed back to vlc.
Thanks, David