mirror of
https://github.com/X11Libre/xserver.git
synced 2026-11-17 05:42:54 +00:00
modesetting: properly use fb_id of front_bo for reverse PRIME CRTC
Some checks are pending
Build X servers / xserver-build-ubuntu (push) Waiting to run
Build X servers / drivers-build-ubuntu (push) Waiting to run
Build X servers / xserver-build-mingw32-ubuntu (push) Waiting to run
Build X servers / xserver-build-macos (push) Waiting to run
Build X servers / xserver-build-freebsd (push) Waiting to run
Build X servers / xserver-build-dragonflybsd (push) Waiting to run
Build X servers / xserver-build-netbsd (push) Waiting to run
Build X servers / xserver-build-cygwin (push) Waiting to run
Build X servers / Release pushed tag (push) Blocked by required conditions
Some checks are pending
Build X servers / xserver-build-ubuntu (push) Waiting to run
Build X servers / drivers-build-ubuntu (push) Waiting to run
Build X servers / xserver-build-mingw32-ubuntu (push) Waiting to run
Build X servers / xserver-build-macos (push) Waiting to run
Build X servers / xserver-build-freebsd (push) Waiting to run
Build X servers / xserver-build-dragonflybsd (push) Waiting to run
Build X servers / xserver-build-netbsd (push) Waiting to run
Build X servers / xserver-build-cygwin (push) Waiting to run
Build X servers / Release pushed tag (push) Blocked by required conditions
When doing reverse PRIME, the buffer being scaned out is still the front BO. Properly reuse its fb_id, to prevent adding a FB for the front_bo each time the fb_id is requested. Signed-off-by: Icenowy Zheng <uwu@icenowy.me> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/2064>
This commit is contained in:
parent
d76194cbab
commit
ae10630340
1 changed files with 3 additions and 1 deletions
|
|
@ -668,8 +668,10 @@ drmmode_crtc_get_fb_id(xf86CrtcPtr crtc, uint32_t *fb_id, int *x, int *y)
|
|||
msGetPixmapPriv(drmmode, drmmode_crtc->prime_pixmap);
|
||||
*fb_id = ppriv->fb_id;
|
||||
*x = 0;
|
||||
} else
|
||||
} else {
|
||||
*fb_id = drmmode->fb_id;
|
||||
*x = drmmode_crtc->prime_pixmap_x;
|
||||
}
|
||||
*y = 0;
|
||||
}
|
||||
else if (trf->buf[trf->back_idx ^ 1].px) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue