aboutsummaryrefslogtreecommitdiff
path: root/include/backend/drm
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2022-12-06 17:34:05 +0100
committerSimon Ser <contact@emersion.fr>2022-12-07 17:44:51 +0100
commitae61cd6bfb97a2ab5d03b30d90dd81ee6c82d352 (patch)
treed334ebe919a2bafc5d72d61693c1f964bf0693c8 /include/backend/drm
parent602f0d3be5789db723870f92d3492f2ff8dbac71 (diff)
backend/drm: use separate field to store pending cursor FB
We'll move the pending primary FB into the connector state in the next commit, dropping wlr_drm_plane.pending_fb in the process. Introduce a dedicated field for the cursor, which has to be managed in a special way due to our set_cursor API.
Diffstat (limited to 'include/backend/drm')
-rw-r--r--include/backend/drm/drm.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/backend/drm/drm.h b/include/backend/drm/drm.h
index 1540aea4..365f1ad2 100644
--- a/include/backend/drm/drm.h
+++ b/include/backend/drm/drm.h
@@ -120,6 +120,8 @@ struct wlr_drm_connector {
int cursor_x, cursor_y;
int cursor_width, cursor_height;
int cursor_hotspot_x, cursor_hotspot_y;
+ /* Buffer to be submitted to the kernel on the next page-flip */
+ struct wlr_drm_fb *cursor_pending_fb;
struct wl_list link;
@@ -152,6 +154,7 @@ size_t drm_crtc_get_gamma_lut_size(struct wlr_drm_backend *drm,
void drm_lease_destroy(struct wlr_drm_lease *lease);
struct wlr_drm_fb *plane_get_next_fb(struct wlr_drm_plane *plane);
+struct wlr_drm_fb *get_next_cursor_fb(struct wlr_drm_connector *conn);
#define wlr_drm_conn_log(conn, verb, fmt, ...) \
wlr_log(verb, "connector %s: " fmt, conn->name, ##__VA_ARGS__)