Bug 111400 - Prime offloading to iGPU leads to highly stretched window content
Summary: Prime offloading to iGPU leads to highly stretched window content
Status: RESOLVED MOVED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/Gallium/Iris (show other bugs)
Version: git
Hardware: Other All
: medium normal
Assignee: Intel 3D Bugs Mailing List
QA Contact: Intel 3D Bugs Mailing List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-08-14 14:10 UTC by tempel.julian
Modified: 2019-09-25 18:47 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
glxgears default window size with garbled content (10.77 KB, image/png)
2019-08-14 15:06 UTC, tempel.julian
Details
glxgears window content not garbled anymore by maximizing it (66.73 KB, image/png)
2019-08-14 15:07 UTC, tempel.julian
Details

Description tempel.julian 2019-08-14 14:10:53 UTC
When I run "MESA_LOADER_DRIVER_OVERRIDE=iris DRI_PRIME=1 glxgears", the window content is highly stretched and thus looks garbled. This doesn't happen with some window sizes or aspect ratios though, and neither happens in maximized window or fullscreen mode.
The display has typical 16:9 AR and 1440p resolution, it's connected to a RX 570 card using amdgpu driver (and xf86-video-amdgpu).

Tested with latest xorg-git and mesa-aco-git with commit32cd9487f45372e0677603218a586ea99296d1d3. Happens with both xf86-video-intel and modesetting.
Comment 1 tempel.julian 2019-08-14 14:22:22 UTC
Forgot to mention: This is with Skylake IGP of an i7 6700k.
Comment 2 Denis 2019-08-14 14:34:31 UTC
hi, to me your command looks a bit weird, because iris is only for intel GPU's, or maybe I don't know something.

Here is output from my PC when I am running same command:


[den@den-pc Documents]$ MESA_LOADER_DRIVER_OVERRIDE=iris DRI_PRIME=1 glxgears
i965_dri.so does not support the 0xffffffff PCI ID.
libGL error: failed to create dri screen
libGL error: failed to load driver: iris
i965_dri.so does not support the 0xffffffff PCI ID.
libGL error: failed to create dri screen
libGL error: failed to load driver: iris
2197 frames in 5.0 seconds = 439.353 FPS
2432 frames in 5.0 seconds = 486.370 FPS

Also, if everything is valid, screenshots would be helpful I think.
Comment 3 tempel.julian 2019-08-14 15:05:20 UTC
You either need to adjust your xorg config to set up GPUs for prime offloading or you have to use xorg-server git-master which recently received a feature to do this automatically.

Of course the iris driver is only for Intel GPUs, but unlike i965, it supports offloading also from the dGPU to the iGPU, and not just from the iGPU to the dGPU. A good reason for doing this e.g. would be saving power in some circumstances where maximum performance is not required.

I'm attaching two images of glxgears in default window size (garbled) and maximized (correct).
Comment 4 tempel.julian 2019-08-14 15:06:24 UTC
Created attachment 145060 [details]
glxgears default window size with garbled content
Comment 5 tempel.julian 2019-08-14 15:07:15 UTC
Created attachment 145061 [details]
glxgears window content not garbled anymore by maximizing it
Comment 6 GitLab Migration User 2019-09-25 18:47:27 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/mesa/mesa/issues/1359.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.