mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice-common
synced 2026-08-06 15:53:44 +00:00
Add gl_scanout2_unix for multi plane support
Signed-off-by: Qiang Yu <yuq825@gmail.com>
This commit is contained in:
parent
ebf052d051
commit
492c22f444
20
spice.proto
20
spice.proto
@ -711,6 +711,12 @@ flags32 gl_scanout_flags {
|
||||
Y0TOP
|
||||
};
|
||||
|
||||
struct GlPlaneUnix {
|
||||
unix_fd fd;
|
||||
uint32 offset;
|
||||
uint32 stride;
|
||||
} @declare;
|
||||
|
||||
channel DisplayChannel : BaseChannel {
|
||||
server:
|
||||
message {
|
||||
@ -973,6 +979,20 @@ channel DisplayChannel : BaseChannel {
|
||||
} @declare gl_draw;
|
||||
|
||||
Data quality_indicator;
|
||||
|
||||
message {
|
||||
uint32 width;
|
||||
uint32 height;
|
||||
/* pixel format, see drm_fourcc.h */
|
||||
uint32 fourcc;
|
||||
gl_scanout_flags flags;
|
||||
/* max 4 planes */
|
||||
uint8 num_planes;
|
||||
/* pixel layout in the buffer, see drm_fourcc.h */
|
||||
uint64 modifier;
|
||||
GlPlaneUnix planes[num_planes] @end;
|
||||
} @declare gl_scanout2_unix;
|
||||
|
||||
client:
|
||||
message {
|
||||
uint8 pixmap_cache_id;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user