Michel Dänzer e72a02ba1d Only update drmmode_crtc->flip_pending after actually submitting a flip
And only clear it if it matches the framebuffer of the completed flip
being processed.

Fixes

 (WW) AMDGPU(0): flip queue failed: Device or resource busy
 (WW) AMDGPU(0): Page flip failed: Device or resource busy
 (EE) AMDGPU(0): present flip failed

due to clobbering drmmode_crtc->flip_pending.

Reproducer: Enable TearFree, run warzone2100 fullscreen, toggle
Vertical sync on/off under Video Options. Discovered while investigating
https://bugs.freedesktop.org/109364 .

Acked-by: Alex Deucher <alexander.deucher@amd.com>
2019-01-17 11:34:04 +01:00
2018-08-24 17:17:43 +02:00
2016-07-12 16:03:51 +09:00
2018-08-24 17:17:43 +02:00
2017-07-27 15:13:36 +09:00
2018-09-20 18:50:01 +02:00
2018-11-14 09:58:46 +01:00
2018-09-20 18:53:05 +02:00

xf86-video-amdgpu - Xorg driver for AMD Radeon GPUs using the amdgpu kernel driver

Questions regarding this software should be directed at the amd-gfx mailing list.

Please submit bug reports to the Xorg bugzilla.

The master development code repository can be found at FreeDesktop Gitlab.

Please use merge requests for patch submission.

See the X.org wiki for further patch submission instructions and more information on the git code manager.

Description
No description provided
Readme 2.9 MiB
Languages
C 94.7%
M4 2.8%
Makefile 1.6%
Perl 0.8%