Hello,
I am maintaining a display only driver (DOD) responsible for providing certain graphic services from the host into virtual machine(s). The driver is based on Microsoft’s KMDOD sample. My question is: is it possible to report “GPU RAM/VRAM” used by the adapter represented by the driver (so you can see the values in the display adapter settings windows)?
My (current) understanting of this problem is that Windows reports GPU RAM and VRAM based on the information provided by the driver through the DxgkDdiQueryAdapterInfo callback. The driver reports this information by specifying memory segments used by GPU through DXGKQAITYPE_QUERYSEGMENT
(or DXGKQAITYPE_QUERYSEGMENT3
) type. This seems to work fine for the Display Miniport drivers, however, not for DODs – I never get DxgkDdiQueryAdapterInfo called for these information types, thus, nothing can be reported. So, it seems that DODs are abstracted from this thing by WDDM/miniport driver.
Does anyone have more experience with this? Basically, I just need to report the GRU memory and VRAM sizes, that’s all.
Thank you!