Re: [Spice-devel] [RFC v1 2/4] display-channel: Add the asyncs associated with dmabuf encode

2023-01-23 Thread Kasireddy, Vivek
Hi Frediano, > > Il giorno ven 13 gen 2023 alle ore 04:08 Kasireddy, Vivek > ha scritto: > > > > Hi Frediano, > > > > > > > > Il giorno gio 12 gen 2023 alle ore 07:03 Kasireddy, Vivek > > > ha scritto: > > > > > > > > Hi Frediano, > > > > > > > > > > > > > > Il giorno mer 11 gen 2023 alle ore 0

[Spice-devel] [RFC v2 3/5] display-channel: Share the drawable's copy of fd with the encoder

2023-01-23 Thread Vivek Kasireddy
Once the drawable gets a copy of the fd, the goal is to share it with the encoder. This patch accomplishes this task and also registers a callback to unblock the pipeline once the encoder is done using the fd. Additionally, this patch also does the following: - Adds helpers to manage the async cou

[Spice-devel] [RFC v2 2/5] display-channel: Extract the dmabuf fd from the scanout

2023-01-23 Thread Vivek Kasireddy
If the scanout has a valid dmabuf fd, then store a copy of it in the drawable. This is one of the first steps needed to share the dmabuf fd with the encoder. Cc: Gerd Hoffmann Cc: Marc-André Lureau Cc: Dongwon Kim Signed-off-by: Vivek Kasireddy --- server/display-channel.cpp | 9 + se

[Spice-devel] [RFC v2 5/5] red-qxl: Add a new parameter to gl_scanout and gl_draw_async

2023-01-23 Thread Vivek Kasireddy
This new parameter (named local_display) can be used by applications to indicate whether they are dealing with a local or remote client. This can be useful to ensure that gl_draw or other associated messages are only sent to local clients. Cc: Gerd Hoffmann Cc: Marc-André Lureau Cc: Dongwon Kim

[Spice-devel] [RFC v2 0/5] gstreamer-encoder: Use a dmabuf allocator if the drawable has a valid fd (v2)

2023-01-23 Thread Vivek Kasireddy
This patch series enables creation of Gst memory using a dmabuf fd as the source. This ability is useful given that dmabuf is the standard mechanism for sharing buffers between various drivers and userspace in many Graphics and Media usecases. Currently, this is only used/tested with Qemu and remot

[Spice-devel] [RFC v2 1/5] gstreamer-encoder: Use a dmabuf allocator for a valid fd

2023-01-23 Thread Vivek Kasireddy
If a valid dmabuf fd is shared with the encoder, then this patch enables the creation of Gst memory with the fd as the source by using a dmabuf allocator. This patch also adds code to invoke any registered callbacks after the Gst memory object is no longer in use by the pipeline. Cc: Gerd Hoffmann

[Spice-devel] [RFC v2 4/5] video-stream: Force stream creation for a valid dmabuf fd

2023-01-23 Thread Vivek Kasireddy
If a drawable contains a valid dmabuf fd, then it makes sense to create a stream for it right away. Cc: Gerd Hoffmann Cc: Marc-André Lureau Cc: Dongwon Kim Signed-off-by: Vivek Kasireddy --- server/video-stream.cpp | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/server

Re: [Spice-devel] [RFC v2 5/5] red-qxl: Add a new parameter to gl_scanout and gl_draw_async

2023-01-23 Thread Frediano Ziglio
Il giorno lun 23 gen 2023 alle ore 09:01 Vivek Kasireddy ha scritto: > > This new parameter (named local_display) can be used by applications > to indicate whether they are dealing with a local or remote client. > This can be useful to ensure that gl_draw or other associated > messages are only se

Re: [Spice-devel] [RFC v2 0/5] gstreamer-encoder: Use a dmabuf allocator if the drawable has a valid fd (v2)

2023-01-23 Thread Frediano Ziglio
Il giorno lun 23 gen 2023 alle ore 09:01 Vivek Kasireddy ha scritto: > > This patch series enables creation of Gst memory using a dmabuf fd > as the source. This ability is useful given that dmabuf is the > standard mechanism for sharing buffers between various drivers and > userspace in many Grap

Re: [Spice-devel] [RFC v2 5/5] red-qxl: Add a new parameter to gl_scanout and gl_draw_async

2023-01-23 Thread Kasireddy, Vivek
Hi Frediano, > > Il giorno lun 23 gen 2023 alle ore 09:01 Vivek Kasireddy > ha scritto: > > > > This new parameter (named local_display) can be used by applications > > to indicate whether they are dealing with a local or remote client. > > This can be useful to ensure that gl_draw or other asso

Re: [Spice-devel] [RFC v2 0/5] gstreamer-encoder: Use a dmabuf allocator if the drawable has a valid fd (v2)

2023-01-23 Thread Kasireddy, Vivek
Hi Frediano, > > Il giorno lun 23 gen 2023 alle ore 09:01 Vivek Kasireddy > ha scritto: > > > > This patch series enables creation of Gst memory using a dmabuf fd > > as the source. This ability is useful given that dmabuf is the > > standard mechanism for sharing buffers between various drivers