mirror of
https://github.com/X11Libre/xf86-video-amdgpu.git
synced 2026-03-24 01:24:31 +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.
This commit is contained in:
committed by
Michel Dänzer
parent
7d3fef72e0
commit
87f41ace49
@@ -1537,7 +1537,6 @@ Bool AMDGPUPreInit_KMS(ScrnInfoPtr pScrn, int flags)
|
||||
int cpp;
|
||||
uint64_t heap_size = 0;
|
||||
uint64_t max_allocation = 0;
|
||||
Bool sw_cursor;
|
||||
|
||||
if (flags & PROBE_DETECT)
|
||||
return TRUE;
|
||||
@@ -1645,19 +1644,15 @@ Bool AMDGPUPreInit_KMS(ScrnInfoPtr pScrn, int flags)
|
||||
}
|
||||
|
||||
if (!pScrn->is_gpu) {
|
||||
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