PRIME with DRI3 + stalls rendering
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
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Quoted 5 lines · Shawn Starr
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.
Signature · 6 lines
Earthling Michel Dänzer | http://www.amd.com Libre software enthusiast | Mesa and X developer _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): 472120da-9ec1-3963-484f-24add93f8eb6-otUistvHUpPR7s880joybQ@public.gmane.org
Quoted 8 lines · EST Michel Dänzer
Quoted 5 lines · Shawn Starr
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
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Quoted 11 lines · EST Shawn Starr
Quoted 9 lines · EST Michel Dänzer
Quoted 6 lines · Shawn Starr
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.
Quoted 7 lines
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
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Quoted 20 lines · Shawn Starr
Quoted 11 lines · EST Shawn Starr
Quoted 9 lines · EST Michel Dänzer
Quoted 6 lines · Shawn Starr
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.
Quoted 7 lines
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
Quoted 10 lines
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
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): 3eff28a2-e53c-74b9-4e34-6e7e206f0fc5-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
Alternatively you can switch to the modesetting driver - it works well here
Quoted 51 lines · On Wed, 16 Nov 2016 at 01:33 Mario Kleiner…
Quoted 4 lines · Shawn Starr
Quoted 3 lines · EST Shawn Starr
Quoted 2 lines · EST Michel Dänzer
Quoted 1 line · Shawn Starr
I'm currently trying the new fence patches that prevent tearing in
PRIME
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
on
Bonaire CIK, it works with no tearing with latest patches from Mario, but
there is significant frame stalls, even though the performance ishigher
Quoted 7 lines
Quoted 7 lines
Quoted 3 lines
Quoted 1 line
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.
Quoted 6 lines
Quoted 4 lines
I'll have to make a video to show the results and post link here.
Thanks,
ShawnSo, It turns out to be KDE (Kwin) fault, if I start a GNOME session, and
run
Quoted 1 line
Valley, no such stalls. Even though I told KWIN to disable Vsync
completely
Quoted 1 line
and disable composite on full screen windows. Seems it doesn't work
right.
Quoted 7 lines
Consider the PRIME patches working for me.
Thanks,
ShawnGlad 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.
Quoted 6 lines
-mario
_______________________________________________
amd-gfx mailing list [email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx