From: bugzilla-daemon@freedesktop.org Subject: [Bug 92220] GL_NV_vdpau_interop partially available Date: Mon, 05 Oct 2015 13:31:21 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0893027714==" Return-path: Received: from culpepper.freedesktop.org (unknown [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 0110889C49 for ; Mon, 5 Oct 2015 06:31:21 -0700 (PDT) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============0893027714== Content-Type: multipart/alternative; boundary="1444051880.2ef3b61.13706"; charset="UTF-8" --1444051880.2ef3b61.13706 Date: Mon, 5 Oct 2015 13:31:20 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable https://bugs.freedesktop.org/show_bug.cgi?id=3D92220 --- Comment #14 from Christian K=C3=B6nig --- (In reply to Peter Fr=C3=BChberger from comment #13) > So @Christian happy for pointers on how to get it going. Yeah, completely agree with you. Software workarounds are very common in Op= enGL and nothing unusual. Here are a few pointers into the code: 1. vlVdpVideoSurfaceGallium() in src/gallium/state_trackers/vdpau/surface.c. That one is called to "export" video surfaces to OpenGL and the right place= to convert from frame to field. 2. vlVdpDecoderRender() in src/gallium/state_trackers/vdpau/decode.c. Here = we reallocate the buffer backing the surface before the decoding if the frame/field flag doesn't match what the decoder expects. 3. vlVdpVideoMixerRender() in src/gallium/state_trackers/vdpau/mixer.c. Her= e we use a vl_compositor_render() to compose the mixed output picture. Essentially you only need to test if the surface is field based and if not reallocate it and either use vl_compositor_render() or pipe->blit() to copy= the frame into fields. --=20 You are receiving this mail because: You are the assignee for the bug. --1444051880.2ef3b61.13706 Date: Mon, 5 Oct 2015 13:31:20 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Commen= t # 14 on bug 92220<= /a> from Christian K=C3=B6nig
(In reply to Peter Fr=C3=BChberger from comment #13)
> So @Christian happy for pointers on how to g=
et it going.

Yeah, completely agree with you. Software workarounds are very common in Op=
enGL
and nothing unusual.

Here are a few pointers into the code:
1. vlVdpVideoSurfaceGallium() in src/gallium/state_trackers/vdpau/surface.c.
That one is called to "export" video surfaces to OpenGL and the r=
ight place to
convert from frame to field.

2. vlVdpDecoderRender() in src/gallium/state_trackers/vdpau/decode.c. Here =
we
reallocate the buffer backing the surface before the decoding if the
frame/field flag doesn't match what the decoder expects.

3. vlVdpVideoMixerRender() in src/gallium/state_trackers/vdpau/mixer.c. Her=
e we
use a vl_compositor_render() to compose the mixed output picture.

Essentially you only need to test if the surface is field based and if not
reallocate it and either use vl_compositor_render() or pipe->blit() to c=
opy the
frame into fields.


You are receiving this mail because: =20=20=20=20=20=20
  • You are the assignee for the bug.
--1444051880.2ef3b61.13706-- --===============0893027714== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHA6Ly9saXN0 cy5mcmVlZGVza3RvcC5vcmcvbWFpbG1hbi9saXN0aW5mby9kcmktZGV2ZWwK --===============0893027714==--