* [AMDGPU][CIK] PRIME with DRI3 + stalls rendering @ 2016-11-12 21:59 Shawn Starr 2016-11-14 1:40 ` Michel Dänzer 0 siblings, 1 reply; 6+ messages in thread From: Shawn Starr @ 2016-11-12 21:59 UTC (permalink / raw) To: Mario Kleiner; +Cc: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW Hello folks, I'm currently trying the new fence patches that prevent tearing in PRIME on Bonaire CIK, it works with no tearing with latest patches from Mario, but there is significant frame stalls, even though the performance is higher than running the AMDGPU as dedicated. Anything I can do to debug this? Thanks, Shawn _______________________________________________ amd-gfx mailing list amd-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/amd-gfx ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [AMDGPU][CIK] PRIME with DRI3 + stalls rendering 2016-11-12 21:59 [AMDGPU][CIK] PRIME with DRI3 + stalls rendering Shawn Starr @ 2016-11-14 1:40 ` Michel Dänzer [not found] ` <472120da-9ec1-3963-484f-24add93f8eb6-otUistvHUpPR7s880joybQ@public.gmane.org> 0 siblings, 1 reply; 6+ messages in thread From: Michel Dänzer @ 2016-11-14 1:40 UTC (permalink / raw) To: Shawn Starr, Mario Kleiner Cc: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org On 13/11/16 06:59 AM, Shawn Starr wrote: > > I'm currently trying the new fence patches that prevent tearing in PRIME on > Bonaire CIK, it works with no tearing with latest patches from Mario, but > there is significant frame stalls, even though the performance is higher than > running the AMDGPU as dedicated. Please elaborate on what "frame stalls" means exactly. -- Earthling Michel Dänzer | http://www.amd.com Libre software enthusiast | Mesa and X developer _______________________________________________ amd-gfx mailing list amd-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/amd-gfx ^ permalink raw reply [flat|nested] 6+ messages in thread
[parent not found: <472120da-9ec1-3963-484f-24add93f8eb6-otUistvHUpPR7s880joybQ@public.gmane.org>]
* Re: [AMDGPU][CIK] PRIME with DRI3 + stalls rendering [not found] ` <472120da-9ec1-3963-484f-24add93f8eb6-otUistvHUpPR7s880joybQ@public.gmane.org> @ 2016-11-14 20:40 ` Shawn Starr 2016-11-15 8:25 ` Shawn Starr 0 siblings, 1 reply; 6+ messages in thread From: Shawn Starr @ 2016-11-14 20:40 UTC (permalink / raw) To: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW Cc: Michel Dänzer, Mario Kleiner On Monday, November 14, 2016 10:40:17 AM EST Michel Dänzer wrote: > On 13/11/16 06:59 AM, Shawn Starr wrote: > > I'm currently trying the new fence patches that prevent tearing in PRIME > > on > > Bonaire CIK, it works with no tearing with latest patches from Mario, but > > there is significant frame stalls, even though the performance is higher > > than running the AMDGPU as dedicated. > > Please elaborate on what "frame stalls" means exactly. It looks like vsync issues, even though if I try vblank_mode=# it still shows stalling. I'll have to make a video to show the results and post link here. Thanks, Shawn _______________________________________________ amd-gfx mailing list amd-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/amd-gfx ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [AMDGPU][CIK] PRIME with DRI3 + stalls rendering 2016-11-14 20:40 ` Shawn Starr @ 2016-11-15 8:25 ` Shawn Starr 2016-11-16 0:42 ` Mario Kleiner 0 siblings, 1 reply; 6+ messages in thread From: Shawn Starr @ 2016-11-15 8:25 UTC (permalink / raw) To: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW Cc: Michel Dänzer, Mario Kleiner On Monday, November 14, 2016 3:40:17 PM EST Shawn Starr wrote: > On Monday, November 14, 2016 10:40:17 AM EST Michel Dänzer wrote: > > On 13/11/16 06:59 AM, Shawn Starr wrote: > > > I'm currently trying the new fence patches that prevent tearing in PRIME > > > on > > > Bonaire CIK, it works with no tearing with latest patches from Mario, > > > but > > > there is significant frame stalls, even though the performance is higher > > > than running the AMDGPU as dedicated. > > > > Please elaborate on what "frame stalls" means exactly. > > It looks like vsync issues, even though if I try vblank_mode=# it still > shows stalling. > > I'll have to make a video to show the results and post link here. > > Thanks, > Shawn So, It turns out to be KDE (Kwin) fault, if I start a GNOME session, and run Valley, no such stalls. Even though I told KWIN to disable Vsync completely and disable composite on full screen windows. Seems it doesn't work right. Consider the PRIME patches working for me. Thanks, Shawn _______________________________________________ amd-gfx mailing list amd-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/amd-gfx ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [AMDGPU][CIK] PRIME with DRI3 + stalls rendering 2016-11-15 8:25 ` Shawn Starr @ 2016-11-16 0:42 ` Mario Kleiner [not found] ` <3eff28a2-e53c-74b9-4e34-6e7e206f0fc5-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 0 siblings, 1 reply; 6+ messages in thread From: Mario Kleiner @ 2016-11-16 0:42 UTC (permalink / raw) To: Shawn Starr, amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW; +Cc: Michel Dänzer On 11/15/2016 09:25 AM, Shawn Starr wrote: > On Monday, November 14, 2016 3:40:17 PM EST Shawn Starr wrote: >> On Monday, November 14, 2016 10:40:17 AM EST Michel Dänzer wrote: >>> On 13/11/16 06:59 AM, Shawn Starr wrote: >>>> I'm currently trying the new fence patches that prevent tearing in PRIME >>>> on >>>> Bonaire CIK, it works with no tearing with latest patches from Mario, >>>> but >>>> there is significant frame stalls, even though the performance is higher >>>> than running the AMDGPU as dedicated. >>> >>> Please elaborate on what "frame stalls" means exactly. >> >> It looks like vsync issues, even though if I try vblank_mode=# it still >> shows stalling. >> >> I'll have to make a video to show the results and post link here. >> >> Thanks, >> Shawn > > So, It turns out to be KDE (Kwin) fault, if I start a GNOME session, and run > Valley, no such stalls. Even though I told KWIN to disable Vsync completely > and disable composite on full screen windows. Seems it doesn't work right. > > Consider the PRIME patches working for me. > > Thanks, > Shawn > > Glad it works for you with GNOME. Wrt. Kwin, KWin doesn't unredirect fullscreen windows if the display iGPU is Intel, apparently because sometime in the past there were bugs in the intel ddx related to switching between redirected and unredirected mode. That might explain the problem under KDE. You'd need to disable the compositor manually (SHIFT + ALT + F12 to toggle at runtime) while running a fullscreen app/game that way, or the application needs to set some NetWM hints on its window to ask for no composition, or some KWin rule needs to be set for the app. I tested the patches under KDE Plasma 5 (KUbuntu 16.04 LTS) with composition disabled this way and at least my tests worked fine then. -mario _______________________________________________ amd-gfx mailing list amd-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/amd-gfx ^ permalink raw reply [flat|nested] 6+ messages in thread
[parent not found: <3eff28a2-e53c-74b9-4e34-6e7e206f0fc5-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>]
* Re: [AMDGPU][CIK] PRIME with DRI3 + stalls rendering [not found] ` <3eff28a2-e53c-74b9-4e34-6e7e206f0fc5-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> @ 2016-11-16 11:45 ` Mike Lothian 0 siblings, 0 replies; 6+ messages in thread From: Mike Lothian @ 2016-11-16 11:45 UTC (permalink / raw) To: Mario Kleiner, Shawn Starr, amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW Cc: Michel Dänzer [-- Attachment #1.1: Type: text/plain, Size: 2329 bytes --] Alternatively you can switch to the modesetting driver - it works well here On Wed, 16 Nov 2016 at 01:33 Mario Kleiner <mario.kleiner.de-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > On 11/15/2016 09:25 AM, Shawn Starr wrote: > > On Monday, November 14, 2016 3:40:17 PM EST Shawn Starr wrote: > >> On Monday, November 14, 2016 10:40:17 AM EST Michel Dänzer wrote: > >>> On 13/11/16 06:59 AM, Shawn Starr wrote: > >>>> I'm currently trying the new fence patches that prevent tearing in > PRIME > >>>> on > >>>> Bonaire CIK, it works with no tearing with latest patches from Mario, > >>>> but > >>>> there is significant frame stalls, even though the performance is > higher > >>>> than running the AMDGPU as dedicated. > >>> > >>> Please elaborate on what "frame stalls" means exactly. > >> > >> It looks like vsync issues, even though if I try vblank_mode=# it still > >> shows stalling. > >> > >> I'll have to make a video to show the results and post link here. > >> > >> Thanks, > >> Shawn > > > > So, It turns out to be KDE (Kwin) fault, if I start a GNOME session, and > run > > Valley, no such stalls. Even though I told KWIN to disable Vsync > completely > > and disable composite on full screen windows. Seems it doesn't work > right. > > > > Consider the PRIME patches working for me. > > > > Thanks, > > Shawn > > > > > > Glad it works for you with GNOME. > > Wrt. Kwin, KWin doesn't unredirect fullscreen windows if the display > iGPU is Intel, apparently because sometime in the past there were bugs > in the intel ddx related to switching between redirected and > unredirected mode. That might explain the problem under KDE. > > You'd need to disable the compositor manually (SHIFT + ALT + F12 to > toggle at runtime) while running a fullscreen app/game that way, or the > application needs to set some NetWM hints on its window to ask for no > composition, or some KWin rule needs to be set for the app. I tested the > patches under KDE Plasma 5 (KUbuntu 16.04 LTS) with composition disabled > this way and at least my tests worked fine then. > > -mario > _______________________________________________ > amd-gfx mailing list > amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org > https://lists.freedesktop.org/mailman/listinfo/amd-gfx > [-- Attachment #1.2: Type: text/html, Size: 4060 bytes --] [-- Attachment #2: Type: text/plain, Size: 154 bytes --] _______________________________________________ amd-gfx mailing list amd-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/amd-gfx ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2016-11-16 11:45 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-12 21:59 [AMDGPU][CIK] PRIME with DRI3 + stalls rendering Shawn Starr
2016-11-14 1:40 ` Michel Dänzer
[not found] ` <472120da-9ec1-3963-484f-24add93f8eb6-otUistvHUpPR7s880joybQ@public.gmane.org>
2016-11-14 20:40 ` Shawn Starr
2016-11-15 8:25 ` Shawn Starr
2016-11-16 0:42 ` Mario Kleiner
[not found] ` <3eff28a2-e53c-74b9-4e34-6e7e206f0fc5-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2016-11-16 11:45 ` Mike Lothian
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.