From: Samuel Thibault <samuel.thibault@eu.citrix.com>
To: Pat Campbell <plc@novell.com>
Cc: xen-devel <xen-devel@lists.xensource.com>,
"Daniel P. Berrange" <berrange@redhat.com>,
Markus Armbruster <armbru@redhat.com>
Subject: Re: [RFC] Dynamic modes support for PV xenfb (included)
Date: Mon, 10 Mar 2008 16:16:57 +0000 [thread overview]
Message-ID: <20080310161657.GF6158@implementation.uk.xensource.com> (raw)
In-Reply-To: <47D4547F.1060305@novell.com>
Pat Campbell, le Sun 09 Mar 2008 15:19:59 -0600, a écrit :
> diff -r 854b0704962b tools/ioemu/hw/xenfb.c
> --- a/tools/ioemu/hw/xenfb.c Wed Mar 05 09:43:03 2008 +0000
> +++ b/tools/ioemu/hw/xenfb.c Fri Mar 07 13:44:09 2008 -0600
> @@ -516,6 +516,15 @@ static void xenfb_on_fb_event(struct xen
> }
> xenfb_guest_copy(xenfb, x, y, w, h);
> break;
> + case XENFB_TYPE_RESIZE:
> + xenfb->width = event->resize.width;
> + xenfb->height = event->resize.height;
> + xenfb->row_stride = event->resize.stride;
> + /* Disable video buf sharing, not compatable with resizing */
> + dpy_colourdepth(xenfb->ds, 0);
> + dpy_resize(xenfb->ds, xenfb->width, xenfb->height);
Insert if (xenfb->ds->shared_buf) dpy_setdata(xenfb->ds, xenfb->pixels);
just after dpy_colourdepth() and dpy_resize(), and the video buf sharing
will work (so you can replace 0 with xenfb->depth in the colourdepth
call).
> + xenfb_invalidate(xenfb);
> + break;
Samuel
next prev parent reply other threads:[~2008-03-10 16:16 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-09 21:19 [RFC] Dynamic modes support for PV xenfb (included) Pat Campbell
2008-03-09 21:29 ` Samuel Thibault
2008-03-10 12:36 ` Samuel Thibault
2008-03-10 16:16 ` Samuel Thibault [this message]
2008-03-10 16:36 ` Samuel Thibault
2008-03-12 17:04 ` Markus Armbruster
2008-03-13 13:05 ` Pat Campbell
2008-03-13 19:53 ` Pat Campbell
2008-03-14 16:39 ` Markus Armbruster
-- strict thread matches above, loose matches on Subject: below --
2008-02-04 18:49 [RFC]Dynamic " Pat Campbell
2008-02-05 9:52 ` Markus Armbruster
2008-02-05 23:38 ` Pat Campbell
2008-02-06 15:49 ` Markus Armbruster
2008-01-28 0:48 [RFC] Dynamic " Pat Campbell
2008-01-28 8:07 ` Keir Fraser
2008-01-30 9:43 ` Markus Armbruster
2008-01-30 13:41 ` Pat Campbell
2008-01-30 17:45 ` Markus Armbruster
2008-01-30 20:27 ` Pat Campbell
2008-01-31 8:22 ` Gerd Hoffmann
2008-01-31 8:50 ` Markus Armbruster
2008-01-31 9:06 ` Markus Armbruster
2008-01-30 20:43 ` Daniel P. Berrange
2008-02-28 10:36 ` Keir Fraser
2008-02-28 11:36 ` Markus Armbruster
2007-12-31 12:27 Pat Campbell
2008-01-02 10:51 ` Gerd Hoffmann
[not found] <476133BC0200001800606E1D@sinclair.provo.novell.com>
[not found] ` <476999300200001800607A16@sinclair.provo.novell.com>
2007-12-20 5:20 ` Pat Campbell
2007-12-23 21:58 ` Mark Williamson
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=20080310161657.GF6158@implementation.uk.xensource.com \
--to=samuel.thibault@eu.citrix.com \
--cc=armbru@redhat.com \
--cc=berrange@redhat.com \
--cc=plc@novell.com \
--cc=xen-devel@lists.xensource.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.