Re: [Spice-devel] [spice-gtk] RFC Sync only on focus change

2016-05-23 Thread Pavel Grunt
Hi Frediano, On Fri, 2016-05-20 at 15:03 +0100, Frediano Ziglio wrote: > Limit the virtual keystrokes sent to the remote machine. > The modifiers are synced only when the application receive or lose > the focus. This reduce a lot the possible virtual keystrokes sent > to the guest to synchronize t

Re: [Spice-devel] [PATCH spice-gtk 2/7] channel: check if channel has a session

2016-05-23 Thread Pavel Grunt
Acked-by: Pavel Grunt On Fri, 2016-05-20 at 17:16 +0200, Marc-André Lureau wrote: > Since 8943d2329, the channel may be disconnected from the session > before it's destroyed. In this case, session is NULL. > > Fixes some critical with virt-manager when closing a display: > > (virt-manager:20451

Re: [Spice-devel] [PATCH spice-gtk 3/7] egl: don't destroy wayland egl context

2016-05-23 Thread Pavel Grunt
Hi Marc-André, On Fri, 2016-05-20 at 17:16 +0200, Marc-André Lureau wrote: > The egl context is from Gtk on Wayland. Destroy it only on X11. > It deserves a comment in the code (like reference to spice_egl_init where the context is initialized). Pavel > Signed-off-by: Marc-André Lureau > --- >

Re: [Spice-devel] [PATCH spice-gtk 6/7] egl: don't terminate display

2016-05-23 Thread Victor Toso
Hi, On Fri, May 20, 2016 at 05:16:42PM +0200, Marc-André Lureau wrote: > This is global to the display connection: all egl resources will be > released, including those from other widgets or from the application. This reverts 181ec2511902483df5c02ecf12db437d9975a53b > Fix spice/virgl display bei

Re: [Spice-devel] [spice-gtk v1 1/9] file-xfer: make handle_status agnostic of channel-main

2016-05-23 Thread Pavel Grunt
On Thu, 2016-05-19 at 13:21 +0200, Victor Toso wrote: > This make possible to rename the function to > spice_file_transfer_task_handle_status as a handler for > VDAgentFileXferStatusMessage for a specific task. > > This change is related to split SpiceFileTransferTask from > channel-main. Acked-b

Re: [Spice-devel] [PATCH 07/11] make red_pipe_item_unref more typesafe

2016-05-23 Thread Christophe Fergeau
On Fri, May 20, 2016 at 03:35:50PM -0500, Jonathon Jongsma wrote: > ok, I'll take some added typesafety over a having to pass the ->parent > occasionally Explicitly passing ->parent does not scale well though if you start adding intermediate classes in the inheritance tree. Christophe signature

Re: [Spice-devel] [PATCH 05/11] make red_pipe_item_init_full more typesafe

2016-05-23 Thread Christophe Fergeau
On Fri, May 20, 2016 at 02:01:43PM +0100, Frediano Ziglio wrote: > Use a proper type for free callback > > Signed-off-by: Frediano Ziglio > --- > server/cursor-channel.c | 10 ++ > server/dcc.c| 8 +--- > server/main-channel.c | 10 ++ > server/red-channel.c

Re: [Spice-devel] [spice-gtk] RFC Sync only on focus change

2016-05-23 Thread Frediano Ziglio
> > Hi Frediano, > > On Fri, 2016-05-20 at 15:03 +0100, Frediano Ziglio wrote: > > Limit the virtual keystrokes sent to the remote machine. > > The modifiers are synced only when the application receive or lose > > the focus. This reduce a lot the possible virtual keystrokes sent > > to the guest

Re: [Spice-devel] [PATCH spice-gtk 6/7] egl: don't terminate display

2016-05-23 Thread Marc-André Lureau
Hi On Mon, May 23, 2016 at 10:21 AM, Victor Toso wrote: > Could you also include a fix that calls eglTerminate ? Since this is global resources, spice-gtk (a library) can't do that by itself without risking to break somebody else code. -- Marc-André Lureau

Re: [Spice-devel] [PATCH 07/11] make red_pipe_item_unref more typesafe

2016-05-23 Thread Frediano Ziglio
> > On Fri, May 20, 2016 at 03:35:50PM -0500, Jonathon Jongsma wrote: > > ok, I'll take some added typesafety over a having to pass the ->parent > > occasionally > > Explicitly passing ->parent does not scale well though if you start > adding intermediate classes in the inheritance tree. > > Chr

Re: [Spice-devel] [PATCH spice-gtk 3/7] egl: don't destroy wayland egl context

2016-05-23 Thread Marc-André Lureau
Hi On Mon, May 23, 2016 at 10:13 AM, Pavel Grunt wrote: > Hi Marc-André, > > On Fri, 2016-05-20 at 17:16 +0200, Marc-André Lureau wrote: >> The egl context is from Gtk on Wayland. Destroy it only on X11. >> > It deserves a comment in the code (like reference to spice_egl_init where the > context

Re: [Spice-devel] [PATCH 05/11] make red_pipe_item_init_full more typesafe

2016-05-23 Thread Frediano Ziglio
> > On Fri, May 20, 2016 at 02:01:43PM +0100, Frediano Ziglio wrote: > > Use a proper type for free callback > > > > Signed-off-by: Frediano Ziglio > > --- > > server/cursor-channel.c | 10 ++ > > server/dcc.c| 8 +--- > > server/main-channel.c | 10 ++ > > se

Re: [Spice-devel] [PATCH spice-gtk 3/7] egl: don't destroy wayland egl context

2016-05-23 Thread Pavel Grunt
On Mon, 2016-05-23 at 11:36 +0200, Marc-André Lureau wrote: > Hi > > On Mon, May 23, 2016 at 10:13 AM, Pavel Grunt wrote: > > Hi Marc-André, > > > > On Fri, 2016-05-20 at 17:16 +0200, Marc-André Lureau wrote: > > > The egl context is from Gtk on Wayland. Destroy it only on X11. > > > > > It des

Re: [Spice-devel] [PATCH spice-gtk 6/7] egl: don't terminate display

2016-05-23 Thread Victor Toso
Hi, On Mon, May 23, 2016 at 11:31:52AM +0200, Marc-André Lureau wrote: > Hi > > On Mon, May 23, 2016 at 10:21 AM, Victor Toso wrote: > > Could you also include a fix that calls eglTerminate ? > > Since this is global resources, spice-gtk (a library) can't do that by > itself without risking to br

Re: [Spice-devel] [PATCH 05/11] make red_pipe_item_init_full more typesafe

2016-05-23 Thread Christophe Fergeau
> > I don't find this very readable, and imo there is not a huge gain in > > doing this over a cast... I'd just go with a cast + a static > > compile-time assert that RedCursorPipeItem has a 'base' RedPipeItem > > field at offset 0. > > > > static void cursor_pipe_item_free(RedPipeItem *base) > {

Re: [Spice-devel] [PATCH spice-gtk 6/7] egl: don't terminate display

2016-05-23 Thread Marc-André Lureau
Hi - Original Message - > Hi, > > On Mon, May 23, 2016 at 11:31:52AM +0200, Marc-André Lureau wrote: > > Hi > > > > On Mon, May 23, 2016 at 10:21 AM, Victor Toso wrote: > > > Could you also include a fix that calls eglTerminate ? > > > > Since this is global resources, spice-gtk (a libra

Re: [Spice-devel] [PATCH 05/11] make red_pipe_item_init_full more typesafe

2016-05-23 Thread Frediano Ziglio
> > > > I don't find this very readable, and imo there is not a huge gain in > > > doing this over a cast... I'd just go with a cast + a static > > > compile-time assert that RedCursorPipeItem has a 'base' RedPipeItem > > > field at offset 0. > > > > > > > static void cursor_pipe_item_free(RedPi

Re: [Spice-devel] [PATCH 10/11] Make sure link in RedPipeItem can be not the first field

2016-05-23 Thread Frediano Ziglio
> > In general, this is a good idea, but I question why you're doing it now. > There > are patches already in the refactory branch which change the PipeItem ring > into > a GList (although perhaps GQueue might be more appropriate). That patch would > also fix the underlying issue you're solving he

Re: [Spice-devel] [PATCH spice-gtk 4/7] egl: only swap buffers on x11

2016-05-23 Thread Pavel Grunt
On Fri, 2016-05-20 at 17:16 +0200, Marc-André Lureau wrote: > Gtk does it for us already with GtkGlArea. > Can be commented in the code as well Acked-by: Pavel Grunt > Signed-off-by: Marc-André Lureau > --- >  src/spice-widget-egl.c | 4 +++- >  1 file changed, 3 insertions(+), 1 deletion(-) >

Re: [Spice-devel] [PATCH 05/11] make red_pipe_item_init_full more typesafe

2016-05-23 Thread Christophe Fergeau
On Mon, May 23, 2016 at 05:57:52AM -0400, Frediano Ziglio wrote: > You didn't understand the problem, this is not enough > as a refactory of this would require a complete code scan > as currently is (was?) needed, you have to check for every > cast. You did not explicitly state the problem either

Re: [Spice-devel] [PATCH spice-gtk 6/7] egl: don't terminate display

2016-05-23 Thread Victor Toso
Hi, On Mon, May 23, 2016 at 05:53:35AM -0400, Marc-André Lureau wrote: > Hi > > - Original Message - > > Hi, > > > > On Mon, May 23, 2016 at 11:31:52AM +0200, Marc-André Lureau wrote: > > > Hi > > > > > > On Mon, May 23, 2016 at 10:21 AM, Victor Toso > > > wrote: > > > > Could you also i

Re: [Spice-devel] [PATCH spice-gtk 7/7] egl: set current context, fix multiple display

2016-05-23 Thread Pavel Grunt
Hi, On Fri, 2016-05-20 at 17:16 +0200, Marc-André Lureau wrote: > On X11, each widget has its own context. Make sure we are using the > widget associated context when using gl. > > Fixes: > https://bugzilla.redhat.com/show_bug.cgi?id=1337721 > > Signed-off-by: Marc-André Lureau > --- >  src/spi

Re: [Spice-devel] [PATCH 07/11] make red_pipe_item_unref more typesafe

2016-05-23 Thread Christophe Fergeau
On Mon, May 23, 2016 at 05:35:29AM -0400, Frediano Ziglio wrote: > > > > On Fri, May 20, 2016 at 03:35:50PM -0500, Jonathon Jongsma wrote: > > > ok, I'll take some added typesafety over a having to pass the ->parent > > > occasionally > > > > Explicitly passing ->parent does not scale well though

Re: [Spice-devel] [PATCH spice-gtk 6/7] egl: don't terminate display

2016-05-23 Thread Marc-André Lureau
- Original Message - > Hi, > > On Mon, May 23, 2016 at 05:53:35AM -0400, Marc-André Lureau wrote: > > Hi > > > > - Original Message - > > > Hi, > > > > > > On Mon, May 23, 2016 at 11:31:52AM +0200, Marc-André Lureau wrote: > > > > Hi > > > > > > > > On Mon, May 23, 2016 at 10:21

Re: [Spice-devel] [PATCH spice-gtk 7/7] egl: set current context, fix multiple display

2016-05-23 Thread Marc-André Lureau
- Original Message - > Hi, > > On Fri, 2016-05-20 at 17:16 +0200, Marc-André Lureau wrote: > > On X11, each widget has its own context. Make sure we are using the > > widget associated context when using gl. > > > > Fixes: > > https://bugzilla.redhat.com/show_bug.cgi?id=1337721 > > > >

[Spice-devel] [PATCH] Move InputsChannelClient to a separate file

2016-05-23 Thread Frediano Ziglio
From: Jonathon Jongsma Preparation for converting to GObject Acked-by: Frediano Ziglio --- server/Makefile.am | 2 + server/inputs-channel-client.c | 87 ++ server/inputs-channel-client.h | 48 +++ server/inputs-channel.c

[Spice-devel] [PATCH] Replace RedChannel::clients with GList

2016-05-23 Thread Frediano Ziglio
From: Jonathon Jongsma Instead of using a Ring, use a GList to store the list of channel clients. This allows us to iterate the clients without poking inside of the client struct to get the channel_link. This is required in order to make the RedChannelClient struct private. --- server/display-ch

[Spice-devel] Unable to configure Spice with LZ4

2016-05-23 Thread Prakash A S
Dear all, I am trying to install Spice-0.13.1 with LZ4 enabled on my Ubuntu 14.04LTS. However, I am getting the blow error during ./configure, checking for LZ4... no configure: error: lz4 support requested but liblz4 could not be found But I confirmed that I installed liblz4, liblz4-dev & liblz4-

[Spice-devel] [PATCH] Limit direct access to DisplayChannelClient

2016-05-23 Thread Frediano Ziglio
From: Jonathon Jongsma Add a few more methods and accessors so that other files don't need to manipulate the struct members directly. Move the struct definition to a private header which only the dcc-* files will include. --- server/Makefile.am | 1 + server/dcc-encoders.c| 5 +-- se

[Spice-devel] [PATCHv2 1/3] egl: don't destroy wayland egl context

2016-05-23 Thread Marc-André Lureau
The egl context is from Gtk on Wayland. Destroy it only on X11. Signed-off-by: Marc-André Lureau --- src/spice-widget-egl.c | 28 +--- 1 file changed, 17 insertions(+), 11 deletions(-) diff --git a/src/spice-widget-egl.c b/src/spice-widget-egl.c index 961dcfa..a3db856 10

[Spice-devel] [PATCHv2 2/3] egl: don't terminate display

2016-05-23 Thread Marc-André Lureau
This is global to the display connection: all egl resources will be released, including those from other widgets or from the application. Fix spice/virgl display being rendered black after another widget display is destroyed. Signed-off-by: Marc-André Lureau --- src/spice-widget-egl.c | 4 +++-

[Spice-devel] [PATCHv2 3/3] egl: set current context, fix multiple display

2016-05-23 Thread Marc-André Lureau
On X11, each widget has its own context. Make sure we are using the widget associated context when using gl. With gtk 3.16, glEGLImageTargetTexture2DOES() can be called during update scanout, since we can call gtk_gl_area_make_current(). On < 3.16, do it before drawing. Fixes: https://bugzilla.re

Re: [Spice-devel] [PATCH spice-gtk 6/7] egl: don't terminate display

2016-05-23 Thread Victor Toso
Hi, On Mon, May 23, 2016 at 06:39:25AM -0400, Marc-André Lureau wrote: > > > - Original Message - > > Hi, > > > > On Mon, May 23, 2016 at 05:53:35AM -0400, Marc-André Lureau wrote: > > > Hi > > > > > > - Original Message - > > > > Hi, > > > > > > > > On Mon, May 23, 2016 at 11:3

Re: [Spice-devel] [PATCH spice-gtk 7/7] egl: set current context, fix multiple display

2016-05-23 Thread Christophe Fergeau
On Mon, May 23, 2016 at 06:40:40AM -0400, Marc-André Lureau wrote: > > > - Original Message - > > Hi, > > > > On Fri, 2016-05-20 at 17:16 +0200, Marc-André Lureau wrote: > > > On X11, each widget has its own context. Make sure we are using the > > > widget associated context when using g

[Spice-devel] [PATCH 0/2] Replace RedClient::channels with GList changes

2016-05-23 Thread Frediano Ziglio
First patch just replaces a g_list_append with g_list_prepend to avoid order change. Second introduced some macros I proposed. If agreed could be merged to first one. Frediano Ziglio (1): RedChannel: Add FOREACH_CHANNELL and use it to iterate Jonathon Jongsma (1): Replace RedClient::channels

[Spice-devel] [PATCH 1/2] Replace RedClient::channels with GList

2016-05-23 Thread Frediano Ziglio
From: Jonathon Jongsma Allows us to not expose the client_link in RedChannelClient. Acked-by: Pavel Grunt --- server/red-channel.c | 51 --- server/red-channel.h | 5 + 2 files changed, 29 insertions(+), 27 deletions(-) diff --git a/server/

[Spice-devel] [PATCH 2/2] RedChannel: Add FOREACH_CHANNELL and use it to iterate

2016-05-23 Thread Frediano Ziglio
Signed-off-by: Frediano Ziglio --- server/red-channel.c | 44 1 file changed, 24 insertions(+), 20 deletions(-) diff --git a/server/red-channel.c b/server/red-channel.c index 2b37fed..9ec9a26 100644 --- a/server/red-channel.c +++ b/server/red-channel.

[Spice-devel] [spice-gtk v2 00/16] separate SpiceFileTransferTask logic from channel-main

2016-05-23 Thread Victor Toso
The idea is mainly to have a design improvement over the current file-transfer logic by trying to detach it from channel-main and the agent logic plus a few simple tests. One interesting change is about creating a FileTransfereOperation per drag-and-drop operation in channel-main, which removes th

[Spice-devel] [spice-gtk v2 13/16] channel: avoid crash on spice_channel_wakupe due NULL channel

2016-05-23 Thread Victor Toso
--- src/spice-channel.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/spice-channel.c b/src/spice-channel.c index c555f75..8b159f4 100644 --- a/src/spice-channel.c +++ b/src/spice-channel.c @@ -1891,7 +1891,10 @@ error: G_GNUC_INTERNAL void spice_channel_wakeup(Spic

[Spice-devel] [spice-gtk v2 10/16] tests: fix build with smartcard enabled

2016-05-23 Thread Victor Toso
In file included from ../spice-common/common/client_marshallers.h:29:0, from ../src/spice-channel-priv.h:35, from ../src/spice-file-transfer-task-priv.h:28, from file-transfer.c:3: ../spice-common/common/messages.h:45:23: fatal error: libcacard.h: No such file or directory compilation terminated.

[Spice-devel] [spice-gtk v2 06/16] file-xfer: a FileTransferOperation per transfer call

2016-05-23 Thread Victor Toso
Each call to spice_main_file_copy_async will now create a FileTransferOperation which groups all SpiceFileTransferTasks of the copy operation and also the progress_callback passed from Application. As pointed in the fix 113093dd00a1cf10f6d3c3589b7589a184cec081, the progress_callback should provide

[Spice-devel] [spice-gtk v2 02/16] file-xfer: introduce flush_callback and flush_done

2016-05-23 Thread Victor Toso
By introducing a flush_callback such as SpiceFileTransferTaskFlushCb SpiceFileTransferTask becomes agnostic on how channel-main flushes the data. The spice_file_transfer_task_flush_done() function is now introduced to tell SpiceFileTransferTask that flushing is over and we can read more data if no

[Spice-devel] [spice-gtk v2 03/16] file-xfer: introduce create_tasks and start_task

2016-05-23 Thread Victor Toso
By splitting file_xfer_send_start_msg_async we can separate in three different steps the spice_main_file_copy_async function: 1-) Creating tasks with spice_file_transfer_task_create_tasks which now returns a GList of SpiceFileTransferTask; 2-) Setting handlers before the SpiceFileTransferTask

[Spice-devel] [spice-gtk v2 04/16] file-xfer: introduce file-info signal

2016-05-23 Thread Victor Toso
In order to avoid sending the agent message on file_xfer_info_async_cb, we can provide the "file-info" signal to SpiceFileTransferTask. In order to this signal be significant to applications, we request all standard attributes to g_file_query_info_async. This change is related to split SpiceFileT

[Spice-devel] [spice-gtk v2 12/16] tests: file-transfer cancel on task start

2016-05-23 Thread Victor Toso
--- tests/file-transfer.c | 34 ++ 1 file changed, 34 insertions(+) diff --git a/tests/file-transfer.c b/tests/file-transfer.c index 5ef11a7..1421f1e 100644 --- a/tests/file-transfer.c +++ b/tests/file-transfer.c @@ -144,6 +144,32 @@ test_simple_transfer(Fixture *f

[Spice-devel] [spice-gtk v2 09/16] tests: file-transfer include simple tests

2016-05-23 Thread Victor Toso
This only includes a simple test for file-transfer with a small summary of the possible situations of the test. As the test is specifically for SpiceFileTransferTask, we don't create a SpiceMainChannel. That could cause a simple crash on CHANNEL_DEBUG which this patch addresses. --- tests/Makefil

[Spice-devel] [spice-gtk v2 07/16] file-xfer: call user callback once per operation

2016-05-23 Thread Victor Toso
SpiceFileTransferTask has a callback to be called when operation ended. Til this patch, we were setting the user callback which means that in multiple file-transfers, we were calling the user callback several times. Following the same logic pointed from 113093dd00a1cf10f6d3c3589b7 this is a SpiceM

[Spice-devel] [spice-gtk v2 01/16] file-xfer: make handle_status agnostic of channel-main

2016-05-23 Thread Victor Toso
This make possible to rename the function to spice_file_transfer_task_handle_status as a handler for VDAgentFileXferStatusMessage for a specific task. This change is related to split SpiceFileTransferTask from channel-main. Acked-by: Pavel Grunt --- src/channel-main.c | 25 ++---

[Spice-devel] [spice-gtk v2 05/16] file-xfer: inform agent of errors only when task finished

2016-05-23 Thread Victor Toso
No need to inform of a problem under spice_file_transfer_task_completed() as the task will be finalized and we can send the error to the agent there. This change is related to split SpiceFileTransferTask from channel-main. --- src/channel-main.c | 19 +-- 1 file changed, 9 inserti

[Spice-devel] [spice-gtk v2 15/16] tests: file-transfer cancel on read file

2016-05-23 Thread Victor Toso
--- tests/file-transfer.c | 49 + 1 file changed, 49 insertions(+) diff --git a/tests/file-transfer.c b/tests/file-transfer.c index d8dcf6c..be4d585 100644 --- a/tests/file-transfer.c +++ b/tests/file-transfer.c @@ -211,6 +211,47 @@ test_cancel_on_f

[Spice-devel] [spice-gtk v2 11/16] channel: avoid crash on CHANNEL_DEBUG due NULL channel

2016-05-23 Thread Victor Toso
--- src/spice-channel-priv.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/spice-channel-priv.h b/src/spice-channel-priv.h index 50aca5c..dcb5377 100644 --- a/src/spice-channel-priv.h +++ b/src/spice-channel-priv.h @@ -41,7 +41,9 @@ G_BEGIN_DECLS #define MAX_SPICE_DAT

[Spice-devel] [spice-gtk v2 08/16] file-xfer: move to spice-file-transfer-task.c

2016-05-23 Thread Victor Toso
Previous six patches are related to this change. This patch moves: * GObject boilerplate * External API related to SpiceFileTransferTask * Internal API needed by channel-main * Helpers that belong to this object --- src/Makefile.am | 2 + src/channel-main.c |

[Spice-devel] [spice-gtk v2 16/16] tests: file-transfer agent send error/cancel

2016-05-23 Thread Victor Toso
Agent only can only send error or cancel from a transfer operation after it was initialized. In the context of SpiceFileTransferTask, it means that we need to test only after file-info was emitted. --- tests/file-transfer.c | 90 +++ 1 file changed,

[Spice-devel] [spice-gtk v2 14/16] tests: file-transfer cancel on file-info

2016-05-23 Thread Victor Toso
--- tests/file-transfer.c | 49 + 1 file changed, 49 insertions(+) diff --git a/tests/file-transfer.c b/tests/file-transfer.c index 1421f1e..d8dcf6c 100644 --- a/tests/file-transfer.c +++ b/tests/file-transfer.c @@ -170,6 +170,47 @@ test_cancel_on_s

Re: [Spice-devel] [PATCH 05/11] make red_pipe_item_init_full more typesafe

2016-05-23 Thread Frediano Ziglio
> > On Mon, May 23, 2016 at 05:57:52AM -0400, Frediano Ziglio wrote: > > You didn't understand the problem, this is not enough > > as a refactory of this would require a complete code scan > > as currently is (was?) needed, you have to check for every > > cast. > > You did not explicitly state th

Re: [Spice-devel] [PATCH spice-gtk 7/7] egl: set current context, fix multiple display

2016-05-23 Thread Marc-André Lureau
Hi - Original Message - > On Mon, May 23, 2016 at 06:40:40AM -0400, Marc-André Lureau wrote: > > > > > > - Original Message - > > > Hi, > > > > > > On Fri, 2016-05-20 at 17:16 +0200, Marc-André Lureau wrote: > > > > On X11, each widget has its own context. Make sure we are using

Re: [Spice-devel] [PATCH spice-gtk 4/4] Change uint32_t to int32_t

2016-05-23 Thread Frediano Ziglio
> > --- > src/channel-usbredir.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/src/channel-usbredir.c b/src/channel-usbredir.c > index ddd0d1b..a6cbfe0 100644 > --- a/src/channel-usbredir.c > +++ b/src/channel-usbredir.c > @@ -796,7 +796,7 @@ static void spice_usbredir

Re: [Spice-devel] [Qemu-devel] [PATCH v2 10/12] spice/gl: create dummy primary surface (RfC)

2016-05-23 Thread Gerd Hoffmann
Hi, Resuming to work on this after 2.6 freeze break ... > I have done some more testing and sent a series for spice-gtk fixing > display with gl scanout-only case. And a minor patch to spice server > to solve a cursor initialization when there is no canvas. Your series > works ok with that, onl

Re: [Spice-devel] [Qemu-devel] [PATCH v2 10/12] spice/gl: create dummy primary surface (RfC)

2016-05-23 Thread Marc-André Lureau
Hi On Mon, May 23, 2016 at 3:52 PM, Gerd Hoffmann wrote: > Hi, > > Resuming to work on this after 2.6 freeze break ... > >> I have done some more testing and sent a series for spice-gtk fixing >> display with gl scanout-only case. And a minor patch to spice server >> to solve a cursor initializ

Re: [Spice-devel] [PATCHv2 1/3] egl: don't destroy wayland egl context

2016-05-23 Thread Pavel Grunt
On Mon, 2016-05-23 at 13:01 +0200, Marc-André Lureau wrote: > The egl context is from Gtk on Wayland. Destroy it only on X11. > > Signed-off-by: Marc-André Lureau Acked-by: Pavel Grunt > --- >  src/spice-widget-egl.c | 28 +--- >  1 file changed, 17 insertions(+), 11 delet

Re: [Spice-devel] [PATCHv2 3/3] egl: set current context, fix multiple display

2016-05-23 Thread Pavel Grunt
On Mon, 2016-05-23 at 13:01 +0200, Marc-André Lureau wrote: > On X11, each widget has its own context. Make sure we are using the > widget associated context when using gl. > > With gtk 3.16, glEGLImageTargetTexture2DOES() can be called during > update scanout, since we can call gtk_gl_area_make_c

Re: [Spice-devel] [PATCHv2 2/3] egl: don't terminate display

2016-05-23 Thread Pavel Grunt
Thanks for adding all the comments, ack from me Pavel On Mon, 2016-05-23 at 13:01 +0200, Marc-André Lureau wrote: > This is global to the display connection: all egl resources will be > released, including those from other widgets or from the application. > > Fix spice/virgl display being rende

Re: [Spice-devel] [PATCH 05/11] make red_pipe_item_init_full more typesafe

2016-05-23 Thread Christophe Fergeau
On Mon, May 23, 2016 at 07:54:03AM -0400, Frediano Ziglio wrote: > Other part. You can find code where the parent is NOT the first > field (for different reasons), I did some improvements on this. > You can also find places were a class is "inherited" just to > reuse some feature, so it's really li

Re: [Spice-devel] [PATCHv2 2/3] egl: don't terminate display

2016-05-23 Thread Victor Toso
On Mon, May 23, 2016 at 05:28:21PM +0200, Pavel Grunt wrote: > Thanks for adding all the comments, > > ack from me Acked-by: Victor Toso and series. Thanks! > > Pavel > > On Mon, 2016-05-23 at 13:01 +0200, Marc-André Lureau wrote: > > This is global to the display connection: all egl resourc

[Spice-devel] [PATCH spice-gtk] RFC: update NEWS for 0.32 release

2016-05-23 Thread Marc-André Lureau
Signed-off-by: Marc-André Lureau --- Hi, It would be nice to release spice-gtk 0.32 with all the fixes for virgl. Is there any known regression left or something good enough to include before a release? thanks NEWS | 26 ++ 1 file changed, 26 insertions(+) diff --git a

Re: [Spice-devel] [PATCH] style: Add an abbreviation

2016-05-23 Thread Jonathon Jongsma
Acked-by: Jonathon Jongsma On Thu, 2016-05-19 at 11:20 +0100, Frediano Ziglio wrote: > Signed-off-by: Frediano Ziglio > --- > docs/spice_style.txt | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/docs/spice_style.txt b/docs/spice_style.txt > index 957e017..b024b6b 100644 > --- a/do

Re: [Spice-devel] [PATCH] Fix typo in comment

2016-05-23 Thread Jonathon Jongsma
Acked-by: Jonathon Jongsma On Thu, 2016-05-19 at 11:21 +0100, Frediano Ziglio wrote: > Signed-off-by: Frediano Ziglio > --- > server/red-replay-qxl.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/server/red-replay-qxl.c b/server/red-replay-qxl.c > index 281bc7a..60e4

Re: [Spice-devel] [PATCH] Move InputsChannelClient to a separate file

2016-05-23 Thread Jonathon Jongsma
I guess this is just my patch with the erroneous const changes removed? I guess it can be considered ACKed then. On Mon, 2016-05-23 at 11:46 +0100, Frediano Ziglio wrote: > From: Jonathon Jongsma > > Preparation for converting to GObject > > Acked-by: Frediano Ziglio > --- > server/Makefile.

Re: [Spice-devel] [PATCH 2/2] RedChannel: Add FOREACH_CHANNELL and use it to iterate

2016-05-23 Thread Jonathon Jongsma
Typo in commit summary (CHANNELL -> CHANNEL) Also: do we really need an unsafe version of the loop? why not just have a single version that's always safe? On Mon, 2016-05-23 at 12:42 +0100, Frediano Ziglio wrote: > Signed-off-by: Frediano Ziglio > --- > server/red-channel.c | 44 ++

Re: [Spice-devel] [PATCH] Move InputsChannelClient to a separate file

2016-05-23 Thread Frediano Ziglio
> > I guess this is just my patch with the erroneous const changes removed? I > guess > it can be considered ACKed then. > Both yes! > > On Mon, 2016-05-23 at 11:46 +0100, Frediano Ziglio wrote: > > From: Jonathon Jongsma > > > > Preparation for converting to GObject > > > > Acked-by: Fredi

Re: [Spice-devel] [PATCH 7/7] Limit direct access to DisplayChannelClient

2016-05-23 Thread Jonathon Jongsma
On Sun, 2016-05-22 at 04:19 -0400, Frediano Ziglio wrote: > > /* FIXME: move back to display-channel.h (once structs are private) */ > > typedef struct Drawable Drawable; > > -typedef struct DisplayChannelClient DisplayChannelClient; > > > > We definitively should consider using struct Xxxx i

Re: [Spice-devel] [PATCH 2/2] RedChannel: Add FOREACH_CHANNELL and use it to iterate

2016-05-23 Thread Frediano Ziglio
> > Typo in commit summary (CHANNELL -> CHANNEL) > > Also: do we really need an unsafe version of the loop? why not just have a > single version that's always safe? > That's fine for me, just in the code you respected the safe/unsafe behavior. Actually I think can be rewritten to #define FORE

Re: [Spice-devel] [PATCH 2/2] RedChannel: Add FOREACH_CHANNELL and use it to iterate

2016-05-23 Thread Frediano Ziglio
> > > > > Typo in commit summary (CHANNELL -> CHANNEL) > > > > Also: do we really need an unsafe version of the loop? why not just have a > > single version that's always safe? > > > > That's fine for me, just in the code you respected the safe/unsafe > behavior. > > Actually I think can be r

[Spice-devel] typedefs and header dependencies

2016-05-23 Thread Jonathon Jongsma
On Mon, 2016-05-23 at 15:17 -0500, Jonathon Jongsma wrote: > On Sun, 2016-05-22 at 04:19 -0400, Frediano Ziglio wrote: > > > > /* FIXME: move back to display-channel.h (once structs are private) */ > > > typedef struct Drawable Drawable; > > > -typedef struct DisplayChannelClient DisplayChannelC

Re: [Spice-devel] typedefs and header dependencies

2016-05-23 Thread Pavel Grunt
Hi, On Mon, 2016-05-23 at 16:19 -0500, Jonathon Jongsma wrote: > On Mon, 2016-05-23 at 15:17 -0500, Jonathon Jongsma wrote: > > On Sun, 2016-05-22 at 04:19 -0400, Frediano Ziglio wrote: > > > > > >  /* FIXME: move back to display-channel.h (once structs are private) */ > > > >  typedef struct Dra