Graphics
Intel® graphics drivers and software, compatibility, troubleshooting, performance, and optimization
22209 Discussions

Driver bug when desktop is in portrait mode

DennisT
Beginner
689 Views

I have submitted an issue for a driver bug here: Support Request (intel.com)

"When the display is in portrait orientation, DirectX 11 does not render correctly in the native resolution. For example, when using a 1920x1080 screen in portrait mode, DirectX correctly initializes a swap chain with 1080x1920 resolution backbuffers. When presenting, the screen is not just rotated, but an extra scaling step seems to be applied. It looks like the width and height are swapped at some point, leading to a loss of resolution. The same code works correctly on other devices, including Intel-based ones. But not on the internal GPU of a Celeron N6210 machine. The problem also does not appear in DirectX 9 mode. An example program written in VS2022 with .NET 8 to reproduce the problem can be found here, including source code: https://tssbv-my.sharepoint.com/:u:/g/personal/d_de_bruijn_tss_nl1/EdTn-mIIRkVOvT-GHT34C84BYtvblQvX8VNW6Fesev58HQ?e=fpyfWb Using the DXGI_SWAP_CHAIN_FLAG_NONPREROTATED flag to skip automatic rotation and performing the rotation in the application does not work either, as can be seen in the code and the various modes in which the example program can initialize the screen. Press ESC to exit the program when in fullscreen."

 

I have since also tested on another 10th gen device, namely a Core i7-10750H, inside a Dell Inspiron 7501.

I will also attach the application and source code to reproduce the bug here.

0 Kudos
2 Replies
TimRex
Beginner
562 Views

@DennisT I don't know that this is an Intel specific issue... did you manage to find a resolution since posting?

 

I'm encountering what I believe to be much the same problem. I have a dual GPU desktop with nVidia and AMD (no Intel GPU in sight).

Any time I try to create a DX11 fullscreen swapchain against a portrait display (reglardless of GPU), I end up with what appears to be a swapchain that is unaligned to the display dimensions (as if width/height are swapped, as in your case), and a resulting image that is not as sharp as it should be (unreadable text, vertically compressed)

In my case, I am able to obtain what I believe to be a properly sized/oriented swapchain image with `DXGI_SWAP_CHAIN_FLAG_NONPREROTATED`, though I've not yet attempted to rotate in-application and confirm no further issues.. though this should be unnecessary other than for performance reasons.

 

Suffice to say.. this might be better reported to Microsoft...   I'm going to play with some of the DX sample code to see if I can repro the issue outside of my own case, as I'm quite surprised not to have found more people complaining about it.. 

0 Kudos
TimRex
Beginner
488 Views

FWIW, if this looks like the same issue you're having @DennisT , I've reported it here in the below link..

I couldn't think of where else to report it (perhaps the DirectX discord?).. however I'm not sure this Visual Studio feedback ticket will get to where it needs to (if this is indeed a DXGI issue)

https://developercommunity.microsoft.com/t/DXGI-fullscreen-swapchain-rendering-inco/10667183?scope=follow

 

0 Kudos
Reply