* [PATCH 0/2] fbif: Add offset in resize event
@ 2008-03-26 11:09 Samuel Thibault
2008-03-26 11:10 ` Samuel Thibault
` (2 more replies)
0 siblings, 3 replies; 12+ messages in thread
From: Samuel Thibault @ 2008-03-26 11:09 UTC (permalink / raw)
To: xen-devel
Hello,
The following two patches add an additional offset part in the FB resize
event.
Samuel
^ permalink raw reply [flat|nested] 12+ messages in thread* Re: [PATCH 0/2] fbif: Add offset in resize event 2008-03-26 11:09 [PATCH 0/2] fbif: Add offset in resize event Samuel Thibault @ 2008-03-26 11:10 ` Samuel Thibault 2008-03-26 11:11 ` [PATCH 1/2] " Samuel Thibault 2008-03-26 13:21 ` Re: [PATCH 0/2] " Markus Armbruster 2008-03-26 11:10 ` [PATCH 2/2] " Samuel Thibault 2008-03-26 11:16 ` [PATCH 0/2] " Keir Fraser 2 siblings, 2 replies; 12+ messages in thread From: Samuel Thibault @ 2008-03-26 11:10 UTC (permalink / raw) To: xen-devel fbfront: Add offset in resize event Also support depth change. Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com> diff -r 966c04d42e94 tools/ioemu/hw/xenfb.c --- a/tools/ioemu/hw/xenfb.c Wed Mar 26 09:12:57 2008 +0000 +++ b/tools/ioemu/hw/xenfb.c Wed Mar 26 11:05:07 2008 +0000 @@ -56,6 +56,7 @@ int depth; /* colour depth of guest framebuffer */ int width; /* pixel width of guest framebuffer */ int height; /* pixel height of guest framebuffer */ + int offset; /* offset of the framebuffer */ int abs_pointer_wanted; /* Whether guest supports absolute pointer */ int button_state; /* Last seen pointer button state */ char protocol[64]; /* frontend protocol */ @@ -519,11 +520,13 @@ case XENFB_TYPE_RESIZE: xenfb->width = event->resize.width; xenfb->height = event->resize.height; + xenfb->depth = event->resize.depth; xenfb->row_stride = event->resize.stride; + xenfb->offset = event->resize.offset; dpy_colourdepth(xenfb->ds, xenfb->depth); dpy_resize(xenfb->ds, xenfb->width, xenfb->height, xenfb->row_stride); if (xenfb->ds->shared_buf) - dpy_setdata(xenfb->ds, xenfb->pixels); + dpy_setdata(xenfb->ds, xenfb->pixels + xenfb->offset); xenfb_invalidate(xenfb); break; } @@ -1105,6 +1108,7 @@ #define BLT(SRC_T,DST_T,RSB,GSB,BSB,RDB,GDB,BDB) \ for (line = y ; line < (y+h) ; line++) { \ SRC_T *src = (SRC_T *)(xenfb->pixels \ + + xenfb->offset \ + (line * xenfb->row_stride) \ + (x * xenfb->depth / 8)); \ DST_T *dst = (DST_T *)(xenfb->ds->data \ @@ -1147,7 +1151,7 @@ if (xenfb->depth == xenfb->ds->depth) { /* Perfect match can use fast path */ for (line = y ; line < (y+h) ; line++) { memcpy(xenfb->ds->data + (line * xenfb->ds->linesize) + (x * xenfb->ds->depth / 8), - xenfb->pixels + (line * xenfb->row_stride) + (x * xenfb->depth / 8), + xenfb->pixels + xenfb->offset + (line * xenfb->row_stride) + (x * xenfb->depth / 8), w * xenfb->depth / 8); } } else { /* Mismatch requires slow pixel munging */ --- a/xen/include/public/io/fbif.h Wed Mar 26 09:12:57 2008 +0000 +++ b/xen/include/public/io/fbif.h Wed Mar 26 11:05:08 2008 +0000 @@ -63,6 +63,7 @@ int32_t height; /* height in pixels */ int32_t stride; /* stride in bytes */ int32_t depth; /* depth in bits */ + int32_t offset; /* offset of the framebuffer in bytes */ }; #define XENFB_OUT_EVENT_SIZE 40 ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH 1/2] fbif: Add offset in resize event 2008-03-26 11:10 ` Samuel Thibault @ 2008-03-26 11:11 ` Samuel Thibault 2008-03-26 13:21 ` Re: [PATCH 0/2] " Markus Armbruster 1 sibling, 0 replies; 12+ messages in thread From: Samuel Thibault @ 2008-03-26 11:11 UTC (permalink / raw) To: xen-devel Samuel Thibault, le Wed 26 Mar 2008 11:10:23 +0000, a écrit : > fbfront: Add offset in resize event Oops, that is fbback of source Samuel ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Re: [PATCH 0/2] fbif: Add offset in resize event 2008-03-26 11:10 ` Samuel Thibault 2008-03-26 11:11 ` [PATCH 1/2] " Samuel Thibault @ 2008-03-26 13:21 ` Markus Armbruster 2008-03-26 13:29 ` Pat Campbell 1 sibling, 1 reply; 12+ messages in thread From: Markus Armbruster @ 2008-03-26 13:21 UTC (permalink / raw) To: Samuel Thibault; +Cc: xen-devel Samuel Thibault <samuel.thibault@eu.citrix.com> writes: > fbfront: Add offset in resize event fbback, as you already noted. However, we've used variations of pvfb: in changelogs so far, for front- and backend. Best to stick to that. > Also support depth change. This part arguably fixes a bug in Pat's patch. > Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com> Looks good. ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Re: [PATCH 0/2] fbif: Add offset in resize event 2008-03-26 13:21 ` Re: [PATCH 0/2] " Markus Armbruster @ 2008-03-26 13:29 ` Pat Campbell 0 siblings, 0 replies; 12+ messages in thread From: Pat Campbell @ 2008-03-26 13:29 UTC (permalink / raw) To: Markus Armbruster; +Cc: xen-devel, Samuel Thibault Markus Armbruster wrote: > Samuel Thibault <samuel.thibault@eu.citrix.com> writes: > > >> fbfront: Add offset in resize event >> > > fbback, as you already noted. However, we've used variations of pvfb: > in changelogs so far, for front- and backend. Best to stick to that. > > >> Also support depth change. >> > > This part arguably fixes a bug in Pat's patch. > > Oops >> Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com> >> > > Looks good. > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel > Looks good to me as well. ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH 2/2] fbif: Add offset in resize event 2008-03-26 11:09 [PATCH 0/2] fbif: Add offset in resize event Samuel Thibault 2008-03-26 11:10 ` Samuel Thibault @ 2008-03-26 11:10 ` Samuel Thibault 2008-03-26 11:12 ` Samuel Thibault 2008-03-26 11:16 ` [PATCH 0/2] " Keir Fraser 2 siblings, 1 reply; 12+ messages in thread From: Samuel Thibault @ 2008-03-26 11:10 UTC (permalink / raw) To: xen-devel fbfront: Add offset in resize event diff -r 1327b9dcc63a drivers/xen/fbfront/xenfb.c --- a/drivers/xen/fbfront/xenfb.c Wed Mar 26 09:07:52 2008 +0000 +++ b/drivers/xen/fbfront/xenfb.c Wed Mar 26 11:08:36 2008 +0000 @@ -504,6 +504,7 @@ static int xenfb_set_par(struct fb_info xenfb_info->resize.height = info->var.yres; xenfb_info->resize.stride = info->fix.line_length; xenfb_info->resize.depth = info->var.bits_per_pixel; + xenfb_info->resize.offset = 0; xenfb_info->resize_dpy = 1; spin_unlock_irqrestore(&xenfb_info->resize_lock, flags); return 0; diff -r 1327b9dcc63a include/xen/interface/io/fbif.h --- a/include/xen/interface/io/fbif.h Wed Mar 26 09:07:52 2008 +0000 +++ b/include/xen/interface/io/fbif.h Wed Mar 26 11:08:36 2008 +0000 @@ -63,6 +63,7 @@ struct xenfb_resize int32_t height; /* height in pixels */ int32_t stride; /* stride in bytes */ int32_t depth; /* depth in bits */ + int32_t offset; /* offset of the framebuffer in bytes */ }; #define XENFB_OUT_EVENT_SIZE 40 ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH 2/2] fbif: Add offset in resize event 2008-03-26 11:10 ` [PATCH 2/2] " Samuel Thibault @ 2008-03-26 11:12 ` Samuel Thibault 2008-03-26 13:22 ` Markus Armbruster 0 siblings, 1 reply; 12+ messages in thread From: Samuel Thibault @ 2008-03-26 11:12 UTC (permalink / raw) To: xen-devel Samuel Thibault, le Wed 26 Mar 2008 11:10:51 +0000, a écrit : > fbfront: Add offset in resize event Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com> ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Re: [PATCH 2/2] fbif: Add offset in resize event 2008-03-26 11:12 ` Samuel Thibault @ 2008-03-26 13:22 ` Markus Armbruster 0 siblings, 0 replies; 12+ messages in thread From: Markus Armbruster @ 2008-03-26 13:22 UTC (permalink / raw) To: Samuel Thibault; +Cc: xen-devel Samuel Thibault <samuel.thibault@eu.citrix.com> writes: > Samuel Thibault, le Wed 26 Mar 2008 11:10:51 +0000, a écrit : >> fbfront: Add offset in resize event > > Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com> Okay. ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH 0/2] fbif: Add offset in resize event 2008-03-26 11:09 [PATCH 0/2] fbif: Add offset in resize event Samuel Thibault 2008-03-26 11:10 ` Samuel Thibault 2008-03-26 11:10 ` [PATCH 2/2] " Samuel Thibault @ 2008-03-26 11:16 ` Keir Fraser 2008-03-26 11:24 ` Samuel Thibault 2008-03-26 13:25 ` Markus Armbruster 2 siblings, 2 replies; 12+ messages in thread From: Keir Fraser @ 2008-03-26 11:16 UTC (permalink / raw) To: Samuel Thibault, xen-devel; +Cc: Pat Campbell, Markus Armbruster Looks like we should slip these in quickly if they are acceptable, as the new field is not backward compatible with the original patchset from Pat Campbell? -- Keir On 26/3/08 11:09, "Samuel Thibault" <samuel.thibault@eu.citrix.com> wrote: > Hello, > > The following two patches add an additional offset part in the FB resize > event. > > Samuel > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH 0/2] fbif: Add offset in resize event 2008-03-26 11:16 ` [PATCH 0/2] " Keir Fraser @ 2008-03-26 11:24 ` Samuel Thibault 2008-03-26 11:26 ` Keir Fraser 2008-03-26 13:25 ` Markus Armbruster 1 sibling, 1 reply; 12+ messages in thread From: Samuel Thibault @ 2008-03-26 11:24 UTC (permalink / raw) To: Keir Fraser; +Cc: xen-devel, Pat Campbell, Markus Armbruster Keir Fraser, le Wed 26 Mar 2008 11:16:55 +0000, a écrit : > Looks like we should slip these in quickly if they are acceptable, as the > new field is not backward compatible with the original patchset from Pat > Campbell? Yes. Actually I thought Pat would have already integrated that his patch. Samuel ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH 0/2] fbif: Add offset in resize event 2008-03-26 11:24 ` Samuel Thibault @ 2008-03-26 11:26 ` Keir Fraser 0 siblings, 0 replies; 12+ messages in thread From: Keir Fraser @ 2008-03-26 11:26 UTC (permalink / raw) To: Samuel Thibault; +Cc: xen-devel, Pat Campbell, Markus Armbruster On 26/3/08 11:24, "Samuel Thibault" <samuel.thibault@eu.citrix.com> wrote: > Keir Fraser, le Wed 26 Mar 2008 11:16:55 +0000, a écrit : >> Looks like we should slip these in quickly if they are acceptable, as the >> new field is not backward compatible with the original patchset from Pat >> Campbell? > > Yes. > Actually I thought Pat would have already integrated that his patch. A couple of days delay won't matter. I'll wait for ack or comments from Pat and Markus. -- Keir ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH 0/2] fbif: Add offset in resize event 2008-03-26 11:16 ` [PATCH 0/2] " Keir Fraser 2008-03-26 11:24 ` Samuel Thibault @ 2008-03-26 13:25 ` Markus Armbruster 1 sibling, 0 replies; 12+ messages in thread From: Markus Armbruster @ 2008-03-26 13:25 UTC (permalink / raw) To: Keir Fraser; +Cc: xen-devel, Pat Campbell, Samuel Thibault Keir Fraser <keir.fraser@eu.citrix.com> writes: > Looks like we should slip these in quickly if they are acceptable, as the > new field is not backward compatible with the original patchset from Pat > Campbell? > > -- Keir Correct. I guess we should zero the complete union xenfb_out_event; it can make compatible extensions easier. I'll do that in the pvops frontend. I don't intend to touch the non-pvops kernel anymore. ^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2008-03-26 13:29 UTC | newest] Thread overview: 12+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2008-03-26 11:09 [PATCH 0/2] fbif: Add offset in resize event Samuel Thibault 2008-03-26 11:10 ` Samuel Thibault 2008-03-26 11:11 ` [PATCH 1/2] " Samuel Thibault 2008-03-26 13:21 ` Re: [PATCH 0/2] " Markus Armbruster 2008-03-26 13:29 ` Pat Campbell 2008-03-26 11:10 ` [PATCH 2/2] " Samuel Thibault 2008-03-26 11:12 ` Samuel Thibault 2008-03-26 13:22 ` Markus Armbruster 2008-03-26 11:16 ` [PATCH 0/2] " Keir Fraser 2008-03-26 11:24 ` Samuel Thibault 2008-03-26 11:26 ` Keir Fraser 2008-03-26 13:25 ` Markus Armbruster
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.