From: Eric Anholt <eric-WhKQ6XTQaPysTnJN9+BGXg@public.gmane.org>
To: "Keith Packard" <keithp-aN4HjG94KOLQT0dZR+AlfA@public.gmane.org>,
"Kertesz Laszlo"
<laszlo.kertesz-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
"Michel Dänzer" <michel-otUistvHUpPR7s880joybQ@public.gmane.org>
Cc: "List,
X.Org"
<xorg-devel-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org>,
Maling list - DRI developers
<dri-devel-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org>
Subject: Re: Skype bi-directional video call crashes X server (xserver, mesa, drm, kernel from git, r600g+glamor)
Date: Sat, 27 Dec 2014 08:19:24 -1000 [thread overview]
Message-ID: <873881arbn.fsf@eliezer.anholt.net> (raw)
In-Reply-To: <86a929ypsa.fsf-6d7jPg3SX/+z9DMzp4kqnw@public.gmane.org>
[-- Attachment #1.1: Type: text/plain, Size: 1770 bytes --]
Keith Packard <keithp-aN4HjG94KOLQT0dZR+AlfA@public.gmane.org> writes:
> Kertesz Laszlo <laszlo.kertesz-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:
>
>> Ok, rebuilt the xserver package with debugging symbols (seems that
>> checkinstall strips stuff by default). I got a bigger gdb.txt. See if it
>> helps.
>
> I found a bug -- glamor_xv_put_image was mis-computing the number of
> lines of changed video when the client drew only a subset of the
> image. I think the client is drawing at src_y=1, src_h=239 for some
> weird reason (I suspect a bug in the client).
>
> Try this patch:
>
> From eaa4225413b31314070f9a52d9290649e79a3b0f Mon Sep 17 00:00:00 2001
> From: Keith Packard <keithp-aN4HjG94KOLQT0dZR+AlfA@public.gmane.org>
> Date: Sat, 27 Dec 2014 09:11:33 -0800
> Subject: [PATCH] glamor: Fix nlines in glamor_xv_put_image when src_y is odd
>
> The number of lines of video to update in the texture needs to be
> computed from the height of the updated source, not the full height of
> the source.
>
> Signed-off-by: Keith Packard <keithp-aN4HjG94KOLQT0dZR+AlfA@public.gmane.org>
> ---
> glamor/glamor_xv.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/glamor/glamor_xv.c b/glamor/glamor_xv.c
> index 1c877da..83e24ad 100644
> --- a/glamor/glamor_xv.c
> +++ b/glamor/glamor_xv.c
> @@ -435,7 +435,7 @@ glamor_xv_put_image(glamor_port_private *port_priv,
> }
>
> top = (src_y) & ~1;
> - nlines = (src_y + height) - top;
> + nlines = (src_y + src_h) - top;
>
> switch (id) {
> case FOURCC_YV12:
If the point is to upload only from the src_[xywh] recctangle, shouldn't
the glamor_upload_sub_pixmap_to_texture() calls be using src_w instead
of width, too?
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 818 bytes --]
[-- Attachment #2: Type: text/plain, Size: 191 bytes --]
_______________________________________________
xorg-devel@lists.x.org: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel
next prev parent reply other threads:[~2014-12-27 18:19 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-28 12:13 Skype bi-directional video call crashes X server (xserver, mesa, drm, kernel from git, r600g+glamor) Laszlo Kertesz
2014-10-28 13:41 ` Alex Deucher
2014-12-18 22:03 ` Kertesz Laszlo
2014-12-18 22:09 ` Alex Deucher
2014-12-26 0:01 ` Kertesz Laszlo
2014-12-26 1:26 ` Michel Dänzer
2014-12-26 3:10 ` Kertesz Laszlo
2014-12-26 3:17 ` Michel Dänzer
2014-12-26 11:43 ` Kertesz Laszlo
[not found] ` <1419594203.1679.1.camel-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2014-12-27 17:18 ` Keith Packard
[not found] ` <86a929ypsa.fsf-6d7jPg3SX/+z9DMzp4kqnw@public.gmane.org>
2014-12-27 18:19 ` Eric Anholt [this message]
2014-12-27 21:00 ` Keith Packard
2014-12-28 18:01 ` Eric Anholt
[not found] ` <86lhlsq040.fsf-6d7jPg3SX/+z9DMzp4kqnw@public.gmane.org>
2014-12-28 18:02 ` Eric Anholt
[not found] ` <87vbkvac0o.fsf-omZaPlIz5HhaEpDpdNBo/KxOck334EZe@public.gmane.org>
2014-12-28 23:13 ` Keith Packard
2014-12-27 20:21 ` Kertesz Laszlo
2014-12-27 21:01 ` Keith Packard
2014-12-19 2:28 ` Michel Dänzer
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=873881arbn.fsf@eliezer.anholt.net \
--to=eric-whkq6xtqapystnjn9+bgxg@public.gmane.org \
--cc=dri-devel-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org \
--cc=keithp-aN4HjG94KOLQT0dZR+AlfA@public.gmane.org \
--cc=laszlo.kertesz-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=michel-otUistvHUpPR7s880joybQ@public.gmane.org \
--cc=xorg-devel-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.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