mirror of
https://github.com/X11Libre/xf86-video-ati.git
synced 2026-03-24 01:24:43 +00:00
Don't disable page flipping completely with SW cursor
Even with SW cursor, page flipping can be used while no X cursor is visible. Occurred to me in the context of xorg/xserver#828. (Ported from amdgpu commit 87f41ace4920fd2069794211683659eb25b025a6)
This commit is contained in:
@@ -1917,19 +1917,15 @@ Bool RADEONPreInit_KMS(ScrnInfoPtr pScrn, int flags)
|
||||
|
||||
if (!pScrn->is_gpu) {
|
||||
if (info->dri2.pKernelDRMVersion->version_minor >= 8) {
|
||||
Bool sw_cursor = xf86ReturnOptValBool(info->Options,
|
||||
OPTION_SW_CURSOR, FALSE);
|
||||
|
||||
info->allowPageFlip = xf86ReturnOptValBool(info->Options,
|
||||
OPTION_PAGE_FLIP, TRUE);
|
||||
|
||||
if (sw_cursor || info->shadow_primary) {
|
||||
if (info->shadow_primary) {
|
||||
xf86DrvMsg(pScrn->scrnIndex,
|
||||
info->allowPageFlip ? X_WARNING : X_DEFAULT,
|
||||
"KMS Pageflipping: disabled%s\n",
|
||||
info->allowPageFlip ?
|
||||
(sw_cursor ? " because of SWcursor" :
|
||||
" because of ShadowPrimary") : "");
|
||||
" because of ShadowPrimary" : "");
|
||||
info->allowPageFlip = FALSE;
|
||||
} else {
|
||||
xf86DrvMsg(pScrn->scrnIndex, X_INFO,
|
||||
|
||||
Reference in New Issue
Block a user