aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/wlr/interfaces/wlr_output.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/wlr/interfaces/wlr_output.h b/include/wlr/interfaces/wlr_output.h
index aef41367..c74ea156 100644
--- a/include/wlr/interfaces/wlr_output.h
+++ b/include/wlr/interfaces/wlr_output.h
@@ -94,6 +94,15 @@ struct wlr_output_impl {
* size for the cursor may fail.
*/
void (*get_cursor_size)(struct wlr_output *output, int *width, int *height);
+ /**
+ * Get the list of DMA-BUF formats suitable for the primary buffer,
+ * assuming a buffer with the specified capabilities.
+ *
+ * If unimplemented, the primary buffer has no format constraint. If NULL
+ * is returned, no format is suitable.
+ */
+ const struct wlr_drm_format_set *(*get_primary_formats)(
+ struct wlr_output *output, uint32_t buffer_caps);
};
/**