qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
To: Anthony Liguori <anthony@codemonkey.ws>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH 1 of 6] [UPDATE] vnc dynamic resolution
Date: Thu, 11 Sep 2008 11:47:12 +0100	[thread overview]
Message-ID: <48C8F730.3000201@eu.citrix.com> (raw)
In-Reply-To: <48C7E341.7060604@codemonkey.ws>

Anthony Liguori wrote:

> 
> When testing this patch, gvncviewer hangs when attempting to connect. 
> It's waiting to receive the ServerPixelFormat and it doesn't appear to
> receive it.


I admit I didn't test the patch individually but only the full series at
once.
The reality is that the first patch doesn't make any sense without the
fourth.
Actually now that I split the shared buffer patch into two patches: the
shared buffer in vga.c and the vnc implementation, it would even make
sense to merge the first patch and the fourth.
I'll repost the full series that way, if you agree:

1) shared buffer (vga only and interfaces)
2) shared buffer vnc implementation
3) WMVi implementation in vnc
4) shared buffer sdl implementation
5) opengl rendering implementation

I could even merge 2) and 3) if you prefer.

>> @@ -1318,7 +1440,9 @@ static int protocol_client_init(VncState *vs,
>> uint8_t *data, size_t len)
>>      vnc_write_u16(vs, vs->ds->height);
>>  
>>      vnc_write_u8(vs, vs->depth * 8); /* bits-per-pixel */
>> -    vnc_write_u8(vs, vs->depth * 8); /* depth */
>> +    if (vs->depth == 4) vnc_write_u8(vs, 24); /* depth */
>> +    else vnc_write_u8(vs, vs->depth * 8); /* depth */
>>   
> 
> Why unconditionally change to a depth of 24 instead of 32?  There's no
> savings from a protocol perspective.
> 

I guess this change is not really needed, it is only to better specify
that the format is RGB, 1 byte per channel plus 1 byte for the unused
alpha channel.

  reply	other threads:[~2008-09-11 10:45 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-08 16:10 [Qemu-devel] [PATCH 1 of 6] [UPDATE] vnc dynamic resolution Stefano Stabellini
2008-09-10 15:09 ` Anthony Liguori
2008-09-11 10:47   ` Stefano Stabellini [this message]
2008-09-11 10:58   ` Stefano Stabellini
  -- strict thread matches above, loose matches on Subject: below --
2008-09-12 11:26 Stefano Stabellini
2008-09-15 16:04 ` Anthony Liguori

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=48C8F730.3000201@eu.citrix.com \
    --to=stefano.stabellini@eu.citrix.com \
    --cc=anthony@codemonkey.ws \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).