Jump to content

  • Log In with Google      Sign In   
  • Create Account

Banner advertising on our site currently available from just $5!


1. Learn about the promo. 2. Sign up for GDNet+. 3. Set up your advert!


#ActualIrYoKu1

Posted 03 September 2013 - 01:25 PM

Hi,

 

I'm trying to use this code for getting the vendor ID:

    IDXGIDevice *dxgiDevice;
    V(device->QueryInterface(__uuidof(IDXGIDevice), (void **) &dxgiDevice));


    IDXGIAdapter *dxgiAdapter;
    V(dxgiDevice->GetAdapter(&dxgiAdapter));

    DXGI_ADAPTER_DESC adapterDesc;
    dxgiAdapter->GetDesc(&adapterDesc);

    SAFE_RELEASE(dxgiAdapter);
    SAFE_RELEASE(dxgiDevice);

    return adapterDesc.VendorId;
 
And is working well in most cases, but it's failing on my multi-GPU laptop. It always return the vendor ID of the integrated Intel GPU, even if the NVIDIA one is being currently used.
 
Someone knows where can be the problem?
 
Thanks!

#2IrYoKu1

Posted 03 September 2013 - 01:05 PM

Hi,

 

I'm trying to use this code for getting the vendor ID:

    IDXGIDevice *dxgiDevice;
    V(device->QueryInterface(__uuidof(IDXGIDevice), (void **) &dxgiDevice));


    IDXGIAdapter *dxgiAdapter;
    V(dxgiDevice->GetAdapter(&dxgiAdapter));

    DXGI_ADAPTER_DESC adapterDesc;
    dxgiAdapter->GetDesc(&adapterDesc);

    SAFE_RELEASE(dxgiAdapter);
    SAFE_RELEASE(dxgiDevice);

    return adapterDesc.VendorId;
 
And is working well in most cases, but it's failing on my multi-GPU laptop. It always return the vendor ID of the integrated Intel GPU, even if the NVIDIA one is being currently used.
 
Someone knows where can be the problem?
 
Thanks!

#1IrYoKu1

Posted 03 September 2013 - 12:36 PM

Hi,

 

I'm trying to use this code for getting the vendor ID:

    IDXGIDevice *dxgiDevice;
    V(device->QueryInterface(__uuidof(IDXGIDevice), (void **) &dxgiDevice));


    IDXGIAdapter *dxgiAdapter;
    V(dxgiDevice->GetAdapter(&dxgiAdapter));

    DXGI_ADAPTER_DESC adapterDesc;
    dxgiAdapter->GetDesc(&adapterDesc);

    SAFE_RELEASE(dxgiAdapter);
    SAFE_RELEASE(dxgiDevice);

    return adapterDesc.VendorId;
 
And is working well in most cases, but it's failing on my multi-GPU laptop. It always return the vendor ID of the integrated Intel GPU, even if the NVIDIA one is being currently used.
 
Someone knows where can be the problem?
 
Thanks!

PARTNERS