diff options
author | dec05eba <dec05eba@protonmail.com> | 2024-08-16 23:20:04 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2024-08-16 23:20:04 +0200 |
commit | 1e39dc6286f3659733da9a81453991fd5a95a4f5 (patch) | |
tree | 5e5f645485c9310e72a2cd2871c32c3093726afc /kms | |
parent | 81e0b1c54b5db254352348ca8e35854e5d87a017 (diff) |
Refactor kms capture
Diffstat (limited to 'kms')
-rw-r--r-- | kms/kms_shared.h | 4 | ||||
-rw-r--r-- | kms/server/kms_server.c | 1 |
2 files changed, 2 insertions, 3 deletions
diff --git a/kms/kms_shared.h b/kms/kms_shared.h index 9af87e2..2dbb655 100644 --- a/kms/kms_shared.h +++ b/kms/kms_shared.h @@ -5,7 +5,8 @@ #include <stdbool.h> #include <drm_mode.h> -#define GSR_KMS_PROTOCOL_VERSION 3 +#define GSR_KMS_PROTOCOL_VERSION 4 + #define GSR_KMS_MAX_ITEMS 8 #define GSR_KMS_MAX_DMA_BUFS 4 @@ -46,7 +47,6 @@ struct gsr_kms_response_item { uint32_t pixel_format; uint64_t modifier; uint32_t connector_id; /* 0 if unknown */ - bool is_combined_plane; bool is_cursor; bool has_hdr_metadata; int x; diff --git a/kms/server/kms_server.c b/kms/server/kms_server.c index 09c1f03..0c1085e 100644 --- a/kms/server/kms_server.c +++ b/kms/server/kms_server.c @@ -360,7 +360,6 @@ static int kms_get_fb(gsr_drm *drm, gsr_kms_response *response, connector_to_crt response->items[item_index].modifier = drmfb->modifier; response->items[item_index].connector_id = crtc_pair ? crtc_pair->connector_id : 0; response->items[item_index].is_cursor = property_mask & PLANE_PROPERTY_IS_CURSOR; - response->items[item_index].is_combined_plane = false; if(property_mask & PLANE_PROPERTY_IS_CURSOR) { response->items[item_index].x = x; response->items[item_index].y = y; |