From 35222bafe22b5685710395cfb274293cf488a59d Mon Sep 17 00:00:00 2001 From: dec05eba Date: Thu, 15 May 2025 19:17:04 +0200 Subject: temp test for cosmic --- kms/kms_shared.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'kms/kms_shared.h') diff --git a/kms/kms_shared.h b/kms/kms_shared.h index 2dbb655..ca13e7e 100644 --- a/kms/kms_shared.h +++ b/kms/kms_shared.h @@ -5,7 +5,7 @@ #include #include -#define GSR_KMS_PROTOCOL_VERSION 4 +#define GSR_KMS_PROTOCOL_VERSION 5 #define GSR_KMS_MAX_ITEMS 8 #define GSR_KMS_MAX_DMA_BUFS 4 @@ -39,6 +39,12 @@ struct gsr_kms_response_dma_buf { uint32_t offset; }; +typedef enum { + KMS_PLANE_TYPE_PRIMARY, + KMS_PLANE_TYPE_CURSOR, + KMS_PLANE_TYPE_OVERLAY +} gsr_kms_plane_type; + struct gsr_kms_response_item { gsr_kms_response_dma_buf dma_buf[GSR_KMS_MAX_DMA_BUFS]; int num_dma_bufs; @@ -47,7 +53,7 @@ struct gsr_kms_response_item { uint32_t pixel_format; uint64_t modifier; uint32_t connector_id; /* 0 if unknown */ - bool is_cursor; + gsr_kms_plane_type plane_type; bool has_hdr_metadata; int x; int y; -- cgit v1.2.3-70-g09d2