mirror of
https://github.com/brl/mutter.git
synced 2024-12-23 19:42:05 +00:00
renderer/native: Prepare for real page flips without primary plane changes
This is something that the atomic backend will need, as cursor updates go through page flips too. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1488>
This commit is contained in:
parent
c985753442
commit
dd03ffa89d
@ -1010,6 +1010,9 @@ meta_onscreen_native_swap_drm_fb (CoglOnscreen *onscreen)
|
|||||||
CoglOnscreenEGL *onscreen_egl = onscreen->winsys;
|
CoglOnscreenEGL *onscreen_egl = onscreen->winsys;
|
||||||
MetaOnscreenNative *onscreen_native = onscreen_egl->platform;
|
MetaOnscreenNative *onscreen_native = onscreen_egl->platform;
|
||||||
|
|
||||||
|
if (!onscreen_native->gbm.next_fb)
|
||||||
|
return;
|
||||||
|
|
||||||
free_current_bo (onscreen);
|
free_current_bo (onscreen);
|
||||||
|
|
||||||
g_set_object (&onscreen_native->gbm.current_fb, onscreen_native->gbm.next_fb);
|
g_set_object (&onscreen_native->gbm.current_fb, onscreen_native->gbm.next_fb);
|
||||||
|
Loading…
Reference in New Issue
Block a user