# DX12 [D3D12] DXGI, multi-GPU issues

This topic is 896 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

Hello everyone!

I'm trying out DX12 (did some work in DX11 and a lot in OGL), but I got some issues.

First of all, how to enable debug in DX12? In my code (copied from tutorial)

     ID3D12Debug* debugController;
if (SUCCEEDED(D3D12GetDebugInterface(IID_PPV_ARGS(&debugController))))
{
debugController->EnableDebugLayer();
std::cout << "DEBUG enabled...\n";
}
else
{
std::cerr << "DEBUG NOT WORKING!\n";
}


and it always fails. I tried it event in DX tutorials I got from GitHUB - the same. In DX11 there was this DX Control Panel app, in which I enabled debug, but I cant find it in Win10.

Secondly, I am planning to do some GPU coop, that probably means creating a context on a device with no monitor attached. I have a GTX 780 (monitor attached) and integrated Intel HD 4600. I see the Intel chip among the adapters, but I cannot create context on that card. I even tried to lower the feature level to 10, but it fails anyway. So how to create a multi-GPU context / context for off-screen rendering?

##### Share on other sites

Out of curiousity did you need to do anything to get the integrated to show up?  I haven't tried enumerating it in D3D12 yet but for me the integrated has no monitor hooked up and doesn't show up in device manager so I didn't try.

##### Share on other sites

I just enabled it in BIOS (i7 4770K, ASRock Z87E-ITX), I can see it in device manager and it is listed among adapters returned by DXGI factory.

Edited by stgFX

##### Share on other sites

I cant find it in Win10

Try running the github samples with warp on?

##### Share on other sites

Make sure your Intel drivers are up to date. It's of little use to have an Intel card whose drivers don't actually support DX12.

##### Share on other sites

And if what Matias doesn't work, try hooking a monitor up to integrated.  If you look at your screenshot it says the integrated has no videoram associated with it, maybe it has to do with that. (and maybe plugging in a monitor will solve it)

##### Share on other sites

Dingleberry and Alessio1989 - you were right! I enabled debug for the app in the panel, then it prompted me to install Graphics Tools. So now the debug output works.

Intel drivers are up to date, I installed them yesterday. And I guess the video ram amount is also OK - because I am querying DXGI_ADAPTER_DESC1.DedicatedVideoMemory, which as of integrated card, has none. Or maybe its because of the monitor, will try...

##### Share on other sites

BTW if you resolve this could you please post how you did it.  I'm gonna try multi-GPU at some point in the future and will likely encounter the same problem.

##### Share on other sites

I guess it is sorted, but weird way.

I plugged the monitor into the integrated card, rebooted and indeed I was now able to create context on the Intel chip, even on GeForce which had no output. I plugged it back to the GeForce and now device context can be created on both cards simultaneously.

Edited by stgFX

1. 1
2. 2
Rutin
24
3. 3
4. 4
JoeJ
18
5. 5

• 14
• 17
• 11
• 11
• 9
• ### Forum Statistics

• Total Topics
631758
• Total Posts
3002155
×