utmapp / virtio-gpu-wddm-dod

A Windows Display-Only-Driver for virtio-gpu
BSD 2-Clause "Simplified" License
30 stars 13 forks source link

High resolutions (4K and beyond) result in a black screen #4

Open kFYatek opened 2 years ago

kFYatek commented 2 years ago

Environment:

When I resize the Windows guest's display to any resolution up to 3840x2048 (which is exactly 7.5*1024*1024 pixels - not sure if that's relevant), I have a clear display, but if I try to go any bigger (which unfortunately includes standard 4K, i.e. 3840x2160), the whole VM window goes black and only the mouse cursor is rendered properly.

Note that a Linux (Ubuntu 22.04 to be precise) guest with identical VM config works fine at 4K and beyond (I tried 6720x3780 and it's fine), so I'm pretty sure this is indeed an issue with the Windows driver.

This is still better than the upstream virtio driver which seems to be limited to 16MiB framebuffer, which would cap it around ~1500p, but not being able to run Windows full screen on a 4K display at a native resolution feels somewhat limiting. Even worse, this bug is also triggered when trying to maximize the Windows VM on the MBP's internal display in Retina mode, when the display is set to "More space" - the framebuffer is then, excluding the notch area, 3600x2250, which is still above that apparent 7.5 mebipixel limit.

maddoglee commented 1 year ago

I've got this issue as well. Were you ever able to resolve it?

mlukaszek commented 2 weeks ago

Here's what I see happens when you try 4K: image

So the cmd type is not handled here and the return value is STATUS_INVALID_TOKEN: image

I'm not familiar with the code but next step would be to add more logging, recompile, and use a patched driver to get more information.