summaryrefslogtreecommitdiff
path: root/hw/xwayland/xwayland-present.h
diff options
context:
space:
mode:
authorMichel Dänzer <mdaenzer@redhat.com>2021-04-21 12:50:02 +0200
committerMichel Dänzer <michel@daenzer.net>2021-07-09 16:11:22 +0200
commitb6419359b6b11ec659f59cc74075fcf049591425 (patch)
tree0cf6c308a345be543567b2c8b72e26e26dc0f8d2 /hw/xwayland/xwayland-present.h
parentc35a716b02921e2fcae5fe89295a99c6dd5dec8c (diff)
downloadxserver-b6419359b6b11ec659f59cc74075fcf049591425.tar.gz
present: Move present_wnmd.c contents to hw/xwayland/xwayland-present.c
This will allow eliminating indirections and making the Xwayland Present code more efficient and easier to follow. While this technically changes the Xorg video driver ABI, I don't know of any drivers using the dropped present_wnmd_* symbols, and I doubt a Xorg driver could make use of them as is anyway. (As a bonus, Xorg no longer links any Xwayland specific Present code) v2: * Wrap DestroyWindow before initializing Present, so that present_destroy_window runs before xwl_present_cleanup. Avoids crash due to present_destroy_window calling xwl_present_* functions when xwl_present_window was already freed. (Olivier Fourdan) Acked-by: Olivier Fourdan <ofourdan@redhat.com>
Diffstat (limited to 'hw/xwayland/xwayland-present.h')
-rw-r--r--hw/xwayland/xwayland-present.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/hw/xwayland/xwayland-present.h b/hw/xwayland/xwayland-present.h
index 35b579469..e595f4de2 100644
--- a/hw/xwayland/xwayland-present.h
+++ b/hw/xwayland/xwayland-present.h
@@ -29,6 +29,7 @@
#include <xwayland-config.h>
#include <dix.h>
+#include <present_priv.h>
#include "xwayland-types.h"
@@ -47,6 +48,12 @@ struct xwl_present_window {
struct xorg_list wait_list;
struct xorg_list release_list;
+ struct xorg_list exec_queue;
+ struct xorg_list flip_queue;
+ struct xorg_list idle_queue;
+
+ present_vblank_ptr flip_pending;
+ present_vblank_ptr flip_active;
};
struct xwl_present_event {