qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH 3 of 7] [UPDATE] DisplayState interface change
Date: Thu, 11 Dec 2008 11:28:26 +0000	[thread overview]
Message-ID: <4940F95A.6060003@eu.citrix.com> (raw)
In-Reply-To: <49358D02.3090703@codemonkey.ws>

Anthony Liguori wrote:

> Stefano Stabellini wrote:
>> in particular the following functions are very helpful to manage a
>> DisplaySurface:
>>
>> qemu_createDisplaySurface
>> qemu_resizeDisplaySurface
>> qemu_createDisplaySurfaceFrom
>> qemu_freeDisplaySurface
>>   
> 
> These names suck.  Please change them to something more in line with the
> rest of the code.


Are the capital letters that sucks, or the names?

qemu_create_displaysurface
qemu_resize_displaysurface
qemu_create_displaysurface_from
qemu_free_displaysurface

Are these any better?

>> diff -r f1fd23dcd333 hw/cirrus_vga.c
>> --- a/hw/cirrus_vga.c    Tue Nov 25 12:28:31 2008 +0000
>> +++ b/hw/cirrus_vga.c    Wed Nov 26 11:43:17 2008 +0000
>> @@ -789,22 +789,16 @@
>>      if (BLTUNSAFE(s))
>>          return 0;
>>  
>> -    if (s->ds->dpy_copy) {
>> -    cirrus_do_copy(s, s->cirrus_blt_dstaddr - s->start_addr,
>> -               s->cirrus_blt_srcaddr - s->start_addr,
>> -               s->cirrus_blt_width, s->cirrus_blt_height);
>> -    } else {
>> -    (*s->cirrus_rop) (s, s->vram_ptr +
>> -                (s->cirrus_blt_dstaddr & s->cirrus_addr_mask),
>> -              s->vram_ptr +
>> -                (s->cirrus_blt_srcaddr & s->cirrus_addr_mask),
>> -              s->cirrus_blt_dstpitch, s->cirrus_blt_srcpitch,
>> -              s->cirrus_blt_width, s->cirrus_blt_height);
>> +    (*s->cirrus_rop) (s, s->vram_ptr +
>> +            (s->cirrus_blt_dstaddr & s->cirrus_addr_mask),
>> +            s->vram_ptr +
>> +            (s->cirrus_blt_srcaddr & s->cirrus_addr_mask),
>> +            s->cirrus_blt_dstpitch, s->cirrus_blt_srcpitch,
>> +            s->cirrus_blt_width, s->cirrus_blt_height);
>>   
> 
> You've eliminated the dpy_copy optimization?  This is extremely
> important for VNC.
> 


My approach has been too radical.
I need to remove the memmove from vnc.c, but I should be able to keep
the dpy_copy optimization.

      reply	other threads:[~2008-12-11 11:28 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-26 17:47 [Qemu-devel] [PATCH 3 of 7] [UPDATE] DisplayState interface change Stefano Stabellini
2008-12-02 19:31 ` Anthony Liguori
2008-12-11 11:28   ` Stefano Stabellini [this message]

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=4940F95A.6060003@eu.citrix.com \
    --to=stefano.stabellini@eu.citrix.com \
    --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).