Re: [Mesa-dev] [PATCH 0/3] Destroy Present event contexts

2016-08-02 Thread Leo Liu
oying Any comments on the v2 patches? Unless there are any objections, I'm going to push v2 of patches 1 & 2 later this week. I'm not going to push patch 3 myself without getting at least a Tested-by: from somebody. Patch 2 is: Tested and Reviewed by

[Mesa-dev] [PATCH] vl/dri3: fix a memory leak from front buffer

2016-07-14 Thread Leo Liu
happens when without count down the reference. Checked and found with mpv vo=opengl case, there only one static TFP, the leak happens once, but for totem player using gstreamer VA-API glx, the dynamic TFP for each frame, so leak quite a bit. This fixes mem leak for mpv and totem. Signed-off-by: Leo

Re: [Mesa-dev] [PATCH] st/mesa: fix reference counting bug in st_vdpau

2016-07-13 Thread Leo Liu
I have tested the leak is fixed by this patch. And have a look again, the leak actually happens in the case of st_vdpau_output_surface_dma_buf. Sorry for the noise. The patch is Tested-and-Reviewed by: Leo Liu Regards, Leo On 07/13/2016 10:08 AM, Leo Liu wrote: On 07/13/2016 08:56 AM

Re: [Mesa-dev] [PATCH] radeon/uvd: add session context buffer for polaris 10/11

2016-07-13 Thread Leo Liu
Patch is Reviewed-by: Leo Liu Regards, Leo On 07/13/2016 10:00 AM, Christian König wrote: From: Christian König This way we have unlimited UVD sessions. Signed-off-by: Christian König --- src/gallium/drivers/radeon/radeon_uvd.c | 20 src/gallium/drivers/radeon

Re: [Mesa-dev] [PATCH] st/mesa: fix reference counting bug in st_vdpau

2016-07-13 Thread Leo Liu
On 07/13/2016 08:56 AM, Christian König wrote: From: Christian König Otherwise we leak the resources created for the DMA-buf descriptors. Signed-off-by: Christian König Cc: 12.0 --- src/mesa/state_tracker/st_vdpau.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff

[Mesa-dev] [PATCH] st/omx/enc: check uninitialized list from task release

2016-07-13 Thread Leo Liu
The uninitialized list should be checked and returned. Thank Julien for the notification and suggested fix. Signed-off-by: Leo Liu Cc: "12.0" --- src/gallium/state_trackers/omx/vid_enc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gallium/state_tr

Re: [Mesa-dev] [PATCH 4/4] st/omx/dec: make decoder video buffer progressive

2016-07-07 Thread Leo Liu
Hi Emil, Have a look again, I think the logic is nothing wrong. reason In lines On 07/07/2016 11:39 AM, Emil Velikov wrote: On 6 July 2016 at 19:03, Leo Liu wrote: The idea of encode tunneling is to use video buffer directly for encoder, but currently the encoder doesn’t support interlaced

Re: [Mesa-dev] [PATCH 4/4] st/omx/dec: make decoder video buffer progressive

2016-07-07 Thread Leo Liu
On 07/07/2016 11:39 AM, Emil Velikov wrote: On 6 July 2016 at 19:03, Leo Liu wrote: The idea of encode tunneling is to use video buffer directly for encoder, but currently the encoder doesn’t support interlaced surface, the OMX decoder set progressive surface before on that purpose. Since

Re: [Mesa-dev] [PATCH 4/4] st/omx/dec: make decoder video buffer progressive

2016-07-07 Thread Leo Liu
at 19:03, Leo Liu <mailto:leo@amd.com>> wrote: The idea of encode tunneling is to use video buffer directly for encoder, but currently the encoder doesn’t support interlaced surface, the OMX decoder set progressive surface before on that purpose. Since now we are

Re: [Mesa-dev] [PATCH] st/omx: fix crash when vid_enc_Constructor fails

2016-07-07 Thread Leo Liu
On 07/07/2016 11:17 AM, Julien Isorce wrote: It happens when trying to use omxh264enc with nouveau driver because it does not provide any encoder at the moment. It crashes on enc_ReleaseTasks(&priv->free_tasks) because at this time the list is not initialized. So this patch make sure the lists

Re: [Mesa-dev] [PATCH 2/4] radeon/uvd: move polaris fw check into radeon_video.c

2016-07-07 Thread Leo Liu
@@ -43,6 +43,8 @@ #include "radeon_video.h" #include "radeon_vce.h" +#define FW_1_66_16 ((1 << 24) | (66 << 16) | (16 << 8)) + Please add "UVD_" in front of Macro, 'cause at radeon/video, we are dealing VCE as well. With th

[Mesa-dev] [PATCH 3/4] vl/compositor: set layer of y or uv to render

2016-07-06 Thread Leo Liu
Signed-off-by: Leo Liu --- src/gallium/auxiliary/vl/vl_compositor.c | 30 ++ src/gallium/auxiliary/vl/vl_compositor.h | 12 2 files changed, 42 insertions(+) diff --git a/src/gallium/auxiliary/vl/vl_compositor.c b/src/gallium/auxiliary/vl

[Mesa-dev] [PATCH 2/4] vl/compositor: add weave to yuv shader

2016-07-06 Thread Leo Liu
This shader will make interlaced yuv to progressive yuv. Signed-off-by: Leo Liu --- src/gallium/auxiliary/vl/vl_compositor.c | 38 src/gallium/auxiliary/vl/vl_compositor.h | 5 + 2 files changed, 43 insertions(+) diff --git a/src/gallium/auxiliary/vl

[Mesa-dev] [PATCH 1/4] vl/compositor: move weave shader out from rgb weaving

2016-07-06 Thread Leo Liu
We'll use weave shader in the later patch. Signed-off-by: Leo Liu --- src/gallium/auxiliary/vl/vl_compositor.c | 157 --- src/gallium/auxiliary/vl/vl_compositor.h | 2 +- 2 files changed, 83 insertions(+), 76 deletions(-) diff --git a/src/gallium/auxilia

[Mesa-dev] [PATCH 4/4] st/omx/dec: make decoder video buffer progressive

2016-07-06 Thread Leo Liu
as before with surface from progressive to progressive. Signed-off-by: Leo Liu --- src/gallium/state_trackers/omx/vid_dec.c | 65 +++- src/gallium/state_trackers/omx/vid_dec.h | 6 ++- 2 files changed, 68 insertions(+), 3 deletions(-) diff --git a/src/gallium

[Mesa-dev] [PATCH 1/2] radeon/vce: increase cpb height alignment

2016-07-04 Thread Leo Liu
Height should be aligned with 2 macroblocks, thus making safer for tiled mode Signed-off-by: Leo Liu --- src/gallium/drivers/radeon/radeon_vce.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/radeon/radeon_vce.c b/src/gallium/drivers/radeon/radeon_vce.c

[Mesa-dev] [PATCH 2/2] radeon/vce: update encRefPic addr and array mode to tiled

2016-07-04 Thread Leo Liu
Signed-off-by: Leo Liu --- src/gallium/drivers/radeon/radeon_vce_52.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/drivers/radeon/radeon_vce_52.c b/src/gallium/drivers/radeon/radeon_vce_52.c index 7d33313..869b29b 100644 --- a/src/gallium/drivers/radeon/radeon_vce_52.c +++ b

Re: [Mesa-dev] [PATCH 1/2] radeon/vce: check alignment for dpb buffer

2016-06-30 Thread Leo Liu
On 06/30/2016 03:19 AM, Christian König wrote: Am 29.06.2016 um 21:53 schrieb Leo Liu: This will make safer for not acrossing the boundary Signed-off-by: Leo Liu --- src/gallium/drivers/radeon/radeon_vce.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src

[Mesa-dev] [PATCH 1/2] radeon/vce: check alignment for dpb buffer

2016-06-29 Thread Leo Liu
This will make safer for not acrossing the boundary Signed-off-by: Leo Liu --- src/gallium/drivers/radeon/radeon_vce.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/radeon/radeon_vce.c b/src/gallium/drivers/radeon/radeon_vce.c index e8aac8e

[Mesa-dev] [PATCH 2/2] radeon/vce: update encRefPic addr and array mode

2016-06-29 Thread Leo Liu
Signed-off-by: Leo Liu --- src/gallium/drivers/radeon/radeon_vce_52.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/drivers/radeon/radeon_vce_52.c b/src/gallium/drivers/radeon/radeon_vce_52.c index 7d33313..869b29b 100644 --- a/src/gallium/drivers/radeon/radeon_vce_52.c +++ b

Re: [Mesa-dev] [PATCH 2/3] st/omx: add support for nouveau / interlaced

2016-06-29 Thread Leo Liu
On 06/29/2016 09:08 AM, Christian König wrote: Am 29.06.2016 um 14:46 schrieb Leo Liu: On 06/28/2016 05:07 AM, Christian König wrote: Hi Leo, nice catch patch is Reviewed-by: Christian König . But we still need to fix transcoding issue with interlaced as true. Our transcode support

[Mesa-dev] [PATCH 3/3] radeon/uvd: fix a h265 context size bug

2016-06-29 Thread Leo Liu
From: sonjiang Signed-off-by: sonjiang Cc: "12.0" --- src/gallium/drivers/radeon/radeon_uvd.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gallium/drivers/radeon/radeon_uvd.c b/src/gallium/drivers/radeon/radeon_uvd.c index 1f28b01..7d0d2fd 100644 --- a/src/gallium/drivers/radeon

[Mesa-dev] [PATCH 2/3] radeon/uvd: seperate uvd context buffer from DPB

2016-06-29 Thread Leo Liu
From: sonjiang Signed-off-by: sonjiang Cc: "12.0" --- src/gallium/drivers/radeon/radeon_uvd.c | 106 +--- 1 file changed, 97 insertions(+), 9 deletions(-) diff --git a/src/gallium/drivers/radeon/radeon_uvd.c b/src/gallium/drivers/radeon/radeon_uvd.c index a2d1d2d.

[Mesa-dev] [PATCH] radeon uvd add uvd fw version for amdgpu

2016-06-29 Thread Leo Liu
From: sonjiang Signed-off-by: sonjiang Cc: "12.0" --- src/gallium/drivers/radeon/radeon_winsys.h| 1 + src/gallium/winsys/amdgpu/drm/amdgpu_winsys.c | 11 ++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/radeon/radeon_winsys.h b/src/gallium/d

Re: [Mesa-dev] [PATCH 2/3] st/omx: add support for nouveau / interlaced

2016-06-29 Thread Leo Liu
for the inconvenience, could you let me know how to reproduce the problem ? I have been playing with some gst pipelines and they all work but I can only test with nouveau driver. Cheers Julien On 27 June 2016 at 21:35, Leo Liu wrote: This patch break omx decode

Re: [Mesa-dev] [PATCH 2/3] st/omx: add support for nouveau / interlaced

2016-06-27 Thread Leo Liu
This patch break omx decode to file, it got seg fault. Will take look further. Regards, Leo On 06/27/2016 04:16 AM, Julien Isorce wrote: Signed-off-by: Julien Isorce --- src/gallium/state_trackers/omx/vid_dec.c | 51 1 file changed, 26 insertions(+), 25 de

Re: [Mesa-dev] [PATCH 1/3] st/omx: retrieve preferred interlaced and buffer_formats

2016-06-27 Thread Leo Liu
On 06/27/2016 04:16 AM, Julien Isorce wrote: Interlaced can be true for nouveau driver. Signed-off-by: Julien Isorce --- src/gallium/state_trackers/omx/vid_dec.c | 26 -- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/src/gallium/state_trackers/omx/v

Re: [Mesa-dev] [PATCH 2/4] radeon/vce: use vce structure for vce 52 firmware

2016-06-24 Thread Leo Liu
c->enc_pic.vui.cpb_removal_delay_length_minus1); //hrdParam.cpbRemovalDelayLengthMinus1 + RVCE_CS(enc->enc_pic.vui.dpb_output_delay_length_minus1); //hrdParam.dpbOutputDelayLengthMinus1 + RVCE_CS(enc->enc_pic.vui.time_offset_length); //hrdParam.timeOffsetLength + RVCE

Re: [Mesa-dev] [PATCH 1/2] vl/dri3: get Makefile properly

2016-06-09 Thread Leo Liu
On 06/09/2016 07:13 PM, Emil Velikov wrote: Hi Leo, On 9 June 2016 at 20:11, Leo Liu wrote: in order to accommodate scons build IIRC Jose fixed the SCons build (Makefile.sources actually) a while back. One do does not build any of VL with scons so I'm not sure what you with

[Mesa-dev] [PATCH 1/2] vl/dri3: get Makefile properly

2016-06-09 Thread Leo Liu
in order to accommodate scons build Signed-off-by: Leo Liu Cc: "12.0" --- src/gallium/auxiliary/Makefile.am | 7 +++ src/gallium/auxiliary/Makefile.sources| 4 +++- src/gallium/auxiliary/vl/vl_winsys_dri3.c | 4 3 files changed, 10 insertions(+), 5 deletions(-)

[Mesa-dev] [PATCH 2/2] vl/dri3: support receiving new pixmap for front buffer

2016-06-09 Thread Leo Liu
With gstreamer-vaapi, the temporay pixmap for front buffer got realloc each time, so when we receive a new pixmap for each frame, get a new front buffer for it. This also fix Totem player playback corruption. Signed-off-by: Leo Liu Cc: "12.0" --- src/gallium/auxiliary/vl/vl_winsys_

[Mesa-dev] [PATCH] st/va: use drm render node for wayland display type

2016-05-17 Thread Leo Liu
With xwayland, vainfo use VA_DISPLAY_WAYLAND as default and it fails and fails when specify display with `vainfo --display wayland`. In fact wayland support for libva uses drm path to connect device, and should use drm pipe loader to create screen. Signed-off-by: Leo Liu --- src/gallium

Re: [Mesa-dev] [PATCH v2 01/13] vl/dri3: add DRI3 support and implement create and destroy

2016-05-16 Thread Leo Liu
On 05/16/2016 05:02 PM, Jose Fonseca wrote: On 16/05/16 21:59, Leo Liu wrote: Thanks Jose. How to trigger SCons build? From Mesa top of dir, just do scons on a Linux machine. You can also easily build MinGW target doing 'scons platform=windows' but for that you need mingw

Re: [Mesa-dev] [PATCH v2 01/13] vl/dri3: add DRI3 support and implement create and destroy

2016-05-16 Thread Leo Liu
Thanks Jose. How to trigger SCons build? Thanks, Leo On 05/16/2016 04:52 PM, Jose Fonseca wrote: On 16/05/16 21:43, Jose Fonseca wrote: On 12/05/16 18:13, Leo Liu wrote: required functions into place for implementation, create screen with device fd returned from X server, also bail out to

Re: [Mesa-dev] [PATCH 1/3] st/dri: don't call close(-1) in dri{2, kms_}_init_screen error path

2016-05-14 Thread Leo Liu
Series is: Reviewed-by: Leo Liu On 05/14/2016 11:33 AM, Emil Velikov wrote: Add separate labels and jump to the correct one as needed. Signed-off-by: Emil Velikov --- src/gallium/state_trackers/dri/dri2.c | 30 -- 1 file changed, 20 insertions(+), 10 deletions

[Mesa-dev] [PATCH v2 01/13] vl/dri3: add DRI3 support and implement create and destroy

2016-05-12 Thread Leo Liu
required functions into place for implementation, create screen with device fd returned from X server, also bail out to DRI2 with certain conditions. v2: -organize the error out path (Axel) -squash previous patch 1 and 2 into one (Emil) Signed-off-by: Leo Liu Reviewed-by: Alex Deucher

Re: [Mesa-dev] [PATCH 02/14] vl/dri3: implement dri3 screen create and destroy

2016-05-12 Thread Leo Liu
On 05/12/2016 11:08 AM, Emil Velikov wrote: On 12 May 2016 at 15:01, Leo Liu wrote: On 05/12/2016 09:47 AM, Emil Velikov wrote: Hi Leo, On 11 May 2016 at 22:14, Leo Liu wrote: On 05/11/2016 04:20 PM, Axel Davy wrote: On 11/05/2016 17:06, Leo Liu wrote: Screen created with device fd

Re: [Mesa-dev] [PATCH] vl/dri: fix close fd error out

2016-05-12 Thread Leo Liu
On 05/12/2016 11:10 AM, Emil Velikov wrote: On 12 May 2016 at 15:10, Leo Liu wrote: fd should be set to -1 only if it got closed by pipe_loader_release. Signed-off-by: Leo Liu --- src/gallium/auxiliary/vl/vl_winsys_dri.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff

[Mesa-dev] [PATCH] vl/dri: fix close fd error out

2016-05-12 Thread Leo Liu
fd should be set to -1 only if it got closed by pipe_loader_release. Signed-off-by: Leo Liu --- src/gallium/auxiliary/vl/vl_winsys_dri.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/gallium/auxiliary/vl/vl_winsys_dri.c b/src/gallium/auxiliary/vl/vl_winsys_dri.c

Re: [Mesa-dev] [PATCH 02/14] vl/dri3: implement dri3 screen create and destroy

2016-05-12 Thread Leo Liu
On 05/12/2016 09:47 AM, Emil Velikov wrote: Hi Leo, On 11 May 2016 at 22:14, Leo Liu wrote: On 05/11/2016 04:20 PM, Axel Davy wrote: On 11/05/2016 17:06, Leo Liu wrote: Screen created with device fd returned from X server, also will bail out to DRI2 with certain conditions. Signed-off-by

Re: [Mesa-dev] [PATCH 13/14] vl/dri3: implement functions for get and set timestamp

2016-05-11 Thread Leo Liu
spec will get implemented. Thanks a lot for your commenting, that has been very helpful! Leo On 05/11/2016 05:43 PM, Leo Liu wrote: On 05/11/2016 05:37 PM, Axel Davy wrote: On 11/05/2016 23:31, Leo Liu wrote: On 05/11/2016 05:18 PM, Axel Davy wrote: On 11/05/2016 23:08, Leo Liu wrot

Re: [Mesa-dev] [PATCH 13/14] vl/dri3: implement functions for get and set timestamp

2016-05-11 Thread Leo Liu
On 05/11/2016 05:37 PM, Axel Davy wrote: On 11/05/2016 23:31, Leo Liu wrote: On 05/11/2016 05:18 PM, Axel Davy wrote: On 11/05/2016 23:08, Leo Liu wrote: scrn->next_msc = ((int64_t)stamp - scrn->last_ust + scrn->ns_frame/2) / + scrn->ns_frame + sc

Re: [Mesa-dev] [PATCH 13/14] vl/dri3: implement functions for get and set timestamp

2016-05-11 Thread Leo Liu
On 05/11/2016 05:18 PM, Axel Davy wrote: On 11/05/2016 23:08, Leo Liu wrote: scrn->next_msc = ((int64_t)stamp - scrn->last_ust + scrn->ns_frame/2) / + scrn->ns_frame + scrn->last_msc; Could you explain this calculation ? ns_frame is the time for vsync

Re: [Mesa-dev] [PATCH 02/14] vl/dri3: implement dri3 screen create and destroy

2016-05-11 Thread Leo Liu
On 05/11/2016 04:20 PM, Axel Davy wrote: On 11/05/2016 17:06, Leo Liu wrote: Screen created with device fd returned from X server, also will bail out to DRI2 with certain conditions. Signed-off-by: Leo Liu --- configure.ac | 7 ++- src/gallium/auxiliary/vl

Re: [Mesa-dev] [PATCH 13/14] vl/dri3: implement functions for get and set timestamp

2016-05-11 Thread Leo Liu
ust(msc for the first frame) are the exact same idea based on existing vl/dri, which is working well for different players. Thanks, Leo Axel On 11/05/2016 17:06, Leo Liu wrote: Signed-off-by: Leo Liu --- src/gallium/auxiliary/vl/vl_winsys_dri3.c | 59 +++ 1 f

Re: [Mesa-dev] [PATCH 06/14] vl/dri3: add back buffers support

2016-05-11 Thread Leo Liu
bit complicated because of thread safety, but likely you don't need the thread safety part for you. Basically the idea is that when only one pixmap hasn't been released, you send it again with the copy flag, which garantees it will get released. Axel On 11/05/2016 20:29, Axel Davy w

Re: [Mesa-dev] [PATCH 00/14] vl dri3 support for vaapi and vdpau

2016-05-11 Thread Leo Liu
eep this in mind. File attached. Thanks, Leo Axel On 11/05/2016 17:06, Leo Liu wrote : This series implement DRI3 supports for VA-API and VDPAU. It implements supports for DRI3 Open, PixmapFromBuffer, BufferFromPixmap, and for PRESENT including PresentPixmap, PresentNotifyMSC, Prese

[Mesa-dev] [PATCH 08/14] vl/dri3: implement funciton for get dirty area

2016-05-11 Thread Leo Liu
This will clear presentation area not covered by video content Signed-off-by: Leo Liu --- src/gallium/auxiliary/vl/vl_winsys_dri3.c | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/gallium/auxiliary/vl/vl_winsys_dri3.c b/src/gallium/auxiliary/vl

[Mesa-dev] [PATCH 06/14] vl/dri3: add back buffers support

2016-05-11 Thread Leo Liu
This implements DRI3 PixmapFromBuffer. Create buffer objects, and associate it to a dma-buf fd, and then pass this fd with a pixmap ID to X server for creating pixmap object; also add a function for wait events. Signed-off-by: Leo Liu --- src/gallium/auxiliary/vl/vl_winsys_dri3.c | 187

[Mesa-dev] [PATCH 02/14] vl/dri3: implement dri3 screen create and destroy

2016-05-11 Thread Leo Liu
Screen created with device fd returned from X server, also will bail out to DRI2 with certain conditions. Signed-off-by: Leo Liu --- configure.ac | 7 ++- src/gallium/auxiliary/vl/vl_winsys_dri3.c | 88 ++- 2 files changed, 93 insertions

[Mesa-dev] [PATCH 12/14] vl/dri3: handle PresentCompleteNotify event

2016-05-11 Thread Leo Liu
and get timestamp calculated based on the event's reply Signed-off-by: Leo Liu --- src/gallium/auxiliary/vl/vl_winsys_dri3.c | 28 +++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/src/gallium/auxiliary/vl/vl_winsys_dri3.c b/src/gallium/auxilia

[Mesa-dev] [PATCH 10/14] vl/dri3: implement DRI3 BufferFromPixmap

2016-05-11 Thread Leo Liu
We also need render to the front buffer of temporary X pixmap, this is the case of when we using opengl as video out for vaapi. the basic implementation is to pass pixmap ID to X server, and then X will return dma-buf fd, we will get the buffer object through this dma-buf fd. Signed-off-by: Leo

[Mesa-dev] [PATCH 03/14] vl/dri3: set drawable geometry

2016-05-11 Thread Leo Liu
Signed-off-by: Leo Liu --- src/gallium/auxiliary/vl/vl_winsys_dri3.c | 35 +++ 1 file changed, 35 insertions(+) diff --git a/src/gallium/auxiliary/vl/vl_winsys_dri3.c b/src/gallium/auxiliary/vl/vl_winsys_dri3.c index c018379..40e98d4 100644 --- a/src/gallium

[Mesa-dev] [PATCH 13/14] vl/dri3: implement functions for get and set timestamp

2016-05-11 Thread Leo Liu
Signed-off-by: Leo Liu --- src/gallium/auxiliary/vl/vl_winsys_dri3.c | 59 +++ 1 file changed, 53 insertions(+), 6 deletions(-) diff --git a/src/gallium/auxiliary/vl/vl_winsys_dri3.c b/src/gallium/auxiliary/vl/vl_winsys_dri3.c index f917e4b..d8e8319 100644 --- a/src

[Mesa-dev] [PATCH 04/14] vl/dri3: register present events

2016-05-11 Thread Leo Liu
Signed-off-by: Leo Liu --- src/gallium/auxiliary/vl/vl_winsys_dri3.c | 27 +++ 1 file changed, 27 insertions(+) diff --git a/src/gallium/auxiliary/vl/vl_winsys_dri3.c b/src/gallium/auxiliary/vl/vl_winsys_dri3.c index 40e98d4..6014537 100644 --- a/src/gallium/auxiliary

[Mesa-dev] [PATCH 07/14] vl/dri3: implement function for flush frontbuffer

2016-05-11 Thread Leo Liu
Request drawable content in pixmap by calling DRI3 PresentPixmap, and handle PresentIdleNotify event. Signed-off-by: Leo Liu --- src/gallium/auxiliary/vl/vl_winsys_dri3.c | 32 +-- 1 file changed, 30 insertions(+), 2 deletions(-) diff --git a/src/gallium/auxiliary

[Mesa-dev] [PATCH 01/14] vl: add DRI3 support infrastructure

2016-05-11 Thread Leo Liu
Required functions into place for implementation later Signed-off-by: Leo Liu --- src/gallium/auxiliary/Makefile.sources| 5 ++ src/gallium/auxiliary/vl/vl_winsys.h | 5 ++ src/gallium/auxiliary/vl/vl_winsys_dri3.c | 109 ++ 3 files changed, 119

[Mesa-dev] [PATCH 14/14] st/vdpau: add dri3 support

2016-05-11 Thread Leo Liu
Signed-off-by: Leo Liu --- src/gallium/state_trackers/vdpau/device.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/gallium/state_trackers/vdpau/device.c b/src/gallium/state_trackers/vdpau/device.c index de7e951..81b7582 100644 --- a/src/gallium/state_trackers

[Mesa-dev] [PATCH 11/14] st/va: add dri3 support

2016-05-11 Thread Leo Liu
Signed-off-by: Leo Liu --- src/gallium/state_trackers/va/context.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/gallium/state_trackers/va/context.c b/src/gallium/state_trackers/va/context.c index 25d587a..93ab3d9 100644 --- a/src/gallium/state_trackers/va

[Mesa-dev] [PATCH 09/14] vl/dri3: add support for resizing

2016-05-11 Thread Leo Liu
When drawable size changed, PresentConfigureNotify event will be emitted, by handling the event to re-allocate resized buffer. Signed-off-by: Leo Liu --- src/gallium/auxiliary/vl/vl_winsys_dri3.c | 17 + 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/src/gallium

[Mesa-dev] [PATCH 00/14] vl dri3 support for vaapi and vdpau

2016-05-11 Thread Leo Liu
and vlc with various clips from 480p to 4K with framerate from 24 to 60. Also includes window mode and fullscreen w/wo compositing manager. The test also includes VA-API glx extension. There's still some future work like DRI_PRIME different GPU support to be added. Leo Liu (14): vl: add

[Mesa-dev] [PATCH 05/14] vl/dri3: implement flushing for queued events

2016-05-11 Thread Leo Liu
also place holder for present events handling Signed-off-by: Leo Liu --- src/gallium/auxiliary/vl/vl_winsys_dri3.c | 36 +++ 1 file changed, 36 insertions(+) diff --git a/src/gallium/auxiliary/vl/vl_winsys_dri3.c b/src/gallium/auxiliary/vl/vl_winsys_dri3.c index

[Mesa-dev] [PATCH] st/omx/enc: fix incorrect reference picture order for B frames

2016-05-03 Thread Leo Liu
Stacking frames is for driver that's capable to do dual instances encoding. Such feature is not enabled for B frames currently. Signed-off-by: Leo Liu Cc: "11.1 11.2" --- src/gallium/state_trackers/omx/vid_enc.c | 19 --- 1 file changed, 12 insertions(+), 7 del

[Mesa-dev] [PATCH] radeon/uvd: fix tonga feedback buffer size

2016-04-12 Thread Leo Liu
This only applies to tonga Signed-off-by: Leo Liu Reviewed-by: Christian König Cc: "11.1 11.2" --- src/gallium/drivers/radeon/radeon_uvd.c | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/gallium/drivers/radeon/radeon_uvd.c b/src/gallium/driv

Re: [Mesa-dev] [PATCH] radeon/uvd: alignment fix for decode message buffer

2016-04-08 Thread Leo Liu
Cc: On 04/08/2016 11:34 AM, Boyuan Zhang wrote: Signed-off-by: Boyuan Zhang Reviewed-by: Christian König --- src/gallium/drivers/radeon/radeon_uvd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/radeon/radeon_uvd.c b/src/gallium/drivers/radeon/rad

Re: [Mesa-dev] [PATCH 06/10] st/vdpau: use linear layout for output surfaces

2016-03-19 Thread Leo Liu
Patch 6-10 are: Reviewed-by: Leo Liu On 03/08/2016 07:21 AM, Christian König wrote: From: Christian König Works around a bug in radeonsi and tiling is actually not very beneficial in this use case. Signed-off-by: Christian König --- src/gallium/state_trackers/vdpau/output.c | 3 ++- 1

[Mesa-dev] [PATCH 1/2] st/omx: Remove trailing spaces

2016-03-19 Thread Leo Liu
From: Nishanth Peethambaran Reviewed-by: Christian König Signed-off-by: Nishanth Peethambaran Cc: "11.1 11.2" --- src/gallium/state_trackers/omx/vid_dec.c | 10 +++--- src/gallium/state_trackers/omx/vid_dec_h264.c | 8 ++--- src/gallium/state_trackers/omx/vid_enc.c | 44 +++

[Mesa-dev] [PATCH 2/2] st/omx/dec: Correct the timestamping

2016-03-19 Thread Leo Liu
From: Nishanth Peethambaran Attach the timestamp to the dpb buffer and use that timestamp while pushing buffer from dpb list to the omx client. Reviewed-by: Christian König Signed-off-by: Nishanth Peethambaran Cc: "11.1 11.2" --- src/gallium/state_trackers/omx/vid_dec.c| 11 +

[Mesa-dev] [PATCH] radeon/uvd: increase max height to 4096 for VI and newer

2016-03-07 Thread Leo Liu
From: Tamil velan With this issue 'mpv --hwdec=vdpau --vo=vdpau ' fails for vdpau decode if the stream height is 4096. Vdpau decode of height upto 4096 is necessary usecase on amdgpu driver for VI and newer platforms. The fix is in driver specific implementation of "Decoder Query Capabilities" A

[Mesa-dev] [PATCH v3 2/2] st/omx/dec/h264: fix corruption when scaling matrix present flag is set

2016-02-01 Thread Leo Liu
The scaling list should be filled out with zig zag scan v2: integrate zig zag scan for list 4x4 to vl(Christian) v3: move list determination out from the loop(Ilia) Cc: "11.0 11.1" Signed-off-by: Leo Liu --- src/gallium/state_trackers/omx/vid_dec_h264.c | 7 +-- 1 file

[Mesa-dev] [PATCH 1/2] vl: add zig zag scan for list 4x4

2016-02-01 Thread Leo Liu
Cc: "11.0 11.1" Signed-off-by: Leo Liu --- src/gallium/auxiliary/vl/vl_zscan.c | 7 +++ src/gallium/auxiliary/vl/vl_zscan.h | 1 + 2 files changed, 8 insertions(+) diff --git a/src/gallium/auxiliary/vl/vl_zscan.c b/src/gallium/auxiliary/vl/vl_zscan.c index 1c6cdd4..5241471 10

Re: [Mesa-dev] [PATCH v2 2/2] st/omx/h264: fix corruption when scaling matrix present flag is set

2016-02-01 Thread Leo Liu
On 02/01/2016 12:59 PM, Ilia Mirkin wrote: On Mon, Feb 1, 2016 at 12:35 PM, Leo Liu wrote: The scaling list should be filled out with zig zag scan v2: integrate zig zag scan for list 4x4 to vl(Christian) Cc: "11.0 11.1" Signed-off-by: Leo Liu --- src/gallium/state_tr

[Mesa-dev] [PATCH v2 2/2] st/omx/h264: fix corruption when scaling matrix present flag is set

2016-02-01 Thread Leo Liu
The scaling list should be filled out with zig zag scan v2: integrate zig zag scan for list 4x4 to vl(Christian) Cc: "11.0 11.1" Signed-off-by: Leo Liu --- src/gallium/state_trackers/omx/vid_dec_h264.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/s

[Mesa-dev] [PATCH] st/omx/h264: fix corruption when scaling matrix present flag is set

2016-02-01 Thread Leo Liu
The scaling lsit should be filling out with zig zag scan Cc: "11.0 11.1" Signed-off-by: Leo Liu --- src/gallium/state_trackers/omx/vid_dec_h264.c | 21 +++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/src/gallium/state_trackers/omx/vid_dec_h26

Re: [Mesa-dev] [PATCH 8/8] st/va: fix indentation

2015-11-23 Thread Leo Liu
the patch series Reviewed-by: Leo Liu On 11/23/2015 09:37 AM, Christian König wrote: From: Christian König Signed-off-by: Christian König --- src/gallium/state_trackers/va/picture.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/gallium

[Mesa-dev] [PATCH] radeon/vce: disable Stoney VCE for 11.0

2015-11-20 Thread Leo Liu
Signed-off-by: Leo Liu Cc: "11.0" --- src/gallium/drivers/radeon/radeon_vce.c | 5 + 1 file changed, 5 insertions(+) diff --git a/src/gallium/drivers/radeon/radeon_vce.c b/src/gallium/drivers/radeon/radeon_vce.c index 0dac6fb..7c5a961 100644 --- a/src/gallium/drivers/radeon/ra

[Mesa-dev] [PATCH] radeon/vce: disable Stoney VCE for 11.0

2015-11-20 Thread Leo Liu
Signed-off-by: Leo Liu "11.0" --- src/gallium/drivers/radeon/radeon_vce.c | 5 + 1 file changed, 5 insertions(+) diff --git a/src/gallium/drivers/radeon/radeon_vce.c b/src/gallium/drivers/radeon/radeon_vce.c index 0dac6fb..7c5a961 100644 --- a/src/gallium/drivers/radeon/radeon_v

[Mesa-dev] [PATCH 1/2] radeon/vce: add new firmware interface support

2015-11-20 Thread Leo Liu
Add new interface to create and encode Signed-off-by: Leo Liu Reviewed-by: Alex Deucher --- src/gallium/drivers/radeon/Makefile.sources | 1 + src/gallium/drivers/radeon/radeon_vce.c | 21 ++- src/gallium/drivers/radeon/radeon_vce.h | 3 + src/gallium/drivers/radeon/radeon_vce_52

[Mesa-dev] [PATCH 2/2] radeon/vce: disable two pipe mode for stoney

2015-11-20 Thread Leo Liu
Only one encoding pipe available for Stoney Signed-off-by: Leo Liu Reviewed-by: Alex Deucher --- src/gallium/drivers/radeon/radeon_vce.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/radeon/radeon_vce.c b/src/gallium/drivers/radeon/radeon_vce.c

[Mesa-dev] [PATCH v2 3/4] st/va: use vl screen drm support from vl_wys_drm

2015-11-06 Thread Leo Liu
v2: -move the dup to vl_wys_drm for pipe loader Signed-off-by: Leo Liu Reviewed-by: Christian König --- src/gallium/state_trackers/va/context.c | 24 +++- 1 file changed, 3 insertions(+), 21 deletions(-) diff --git a/src/gallium/state_trackers/va/context.c b/src/gallium

[Mesa-dev] [PATCH v3 4/4] st/omx: add headless support

2015-11-06 Thread Leo Liu
This will allow dec/enc/transcode without X v2: -use env override even with X, -use loader_open_device instead of open v3: -cleanup Signed-off-by: Leo Liu Reviewed-by: Christian König --- src/gallium/state_trackers/omx/entrypoint.c | 45 ++--- 1 file changed, 35

[Mesa-dev] [PATCH v2 2/4] vl: add drm support for vl_screen

2015-11-06 Thread Leo Liu
This will allow the state trackers to use render nodes with screen creation v2 -dup fd for pipe loader Signed-off-by: Leo Liu Reviewed-by: Christian König --- src/gallium/auxiliary/Makefile.sources | 3 +- src/gallium/auxiliary/vl/vl_winsys.h | 6 +++ src/gallium/auxiliary/vl

[Mesa-dev] [PATCH v2 4/4] st/omx: add headless support

2015-11-06 Thread Leo Liu
This will allow dec/enc/transcode without X v2: -use env override even with X, -use loader_open_device instead of open Signed-off-by: Leo Liu Reviewed-by: Christian König --- src/gallium/state_trackers/omx/entrypoint.c | 37 ++--- 1 file changed, 28 insertions

[Mesa-dev] [PATCH] st/va: add mpeg4 startcode workaround

2015-11-05 Thread Leo Liu
From: Boyuan Zhang Signed-off-by: Boyuan Zhang Reviewed-by: Christian König --- src/gallium/state_trackers/va/buffer.c | 24 +- src/gallium/state_trackers/va/context.c| 7 ++ src/gallium/state_trackers/va/picture.c| 117 + src/gallium/state_tracke

[Mesa-dev] [PATCH 4/4] st/omx: add headless support

2015-11-05 Thread Leo Liu
This will allow dec/enc/transcode without X Signed-off-by: Leo Liu --- src/gallium/state_trackers/omx/entrypoint.c | 39 + 1 file changed, 29 insertions(+), 10 deletions(-) diff --git a/src/gallium/state_trackers/omx/entrypoint.c b/src/gallium/state_trackers/omx

[Mesa-dev] [PATCH 3/4] st/va: move vl screen drm support to vl_wys_drm

2015-11-05 Thread Leo Liu
--- src/gallium/state_trackers/va/context.c | 20 +++- 1 file changed, 3 insertions(+), 17 deletions(-) diff --git a/src/gallium/state_trackers/va/context.c b/src/gallium/state_trackers/va/context.c index 25fa905..845b547 100644 --- a/src/gallium/state_trackers/va/context.c +++ b

[Mesa-dev] [PATCH 2/4] vl: add drm support for vl_screen

2015-11-05 Thread Leo Liu
This will allow the state trackers to use render nodes with screen creation Signed-off-by: Leo Liu --- src/gallium/auxiliary/Makefile.sources | 3 +- src/gallium/auxiliary/vl/vl_winsys.h | 6 +++ src/gallium/auxiliary/vl/vl_winsys_drm.c | 76 3 files

[Mesa-dev] [PATCH 1/4] st/va: fix build fails with pipe loader

2015-11-05 Thread Leo Liu
There is no dev in drv, and dev should be from vl_screen here --- src/gallium/state_trackers/va/context.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/gallium/state_trackers/va/context.c b/src/gallium/state_trackers/va/context.c index ec9e048..25fa905 100644 --- a/

[Mesa-dev] [PATCH 2/4] radeon/uvd: implement and add flag for VAAPI HEVC decode

2015-10-23 Thread Leo Liu
From: Boyuan Zhang Signed-off-by: Boyuan Zhang Reviewed-by: Christian König Reviewed-by: Leo Liu --- src/gallium/drivers/radeon/radeon_uvd.c | 7 +++ src/gallium/drivers/radeon/radeon_uvd.h | 9 + 2 files changed, 16 insertions(+) diff --git a/src/gallium/drivers/radeon

[Mesa-dev] [PATCH 4/4] st/vdpau: disable RefPicList for Vdpau HEVC

2015-10-23 Thread Leo Liu
From: Boyuan Zhang Signed-off-by: Boyuan Zhang Reviewed-by: Christian König Reviewed-by: Leo Liu --- src/gallium/state_trackers/vdpau/decode.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/state_trackers/vdpau/decode.c b/src/gallium/state_trackers/vdpau/decode.c index

[Mesa-dev] [PATCH 3/4] st/va: add VAAPI HEVC decode support

2015-10-23 Thread Leo Liu
From: Boyuan Zhang Signed-off-by: Boyuan Zhang Reviewed-by: Christian König Reviewed-by: Leo Liu --- configure.ac | 2 +- src/gallium/state_trackers/va/config.c | 2 +- src/gallium/state_trackers/va/context.c| 20 src/gallium/state_trackers/va

[Mesa-dev] [PATCH 1/4] vl: add RefPicList defines for VAAPI HEVC decode

2015-10-23 Thread Leo Liu
From: Boyuan Zhang Signed-off-by: Boyuan Zhang Reviewed-by: Christian König Reviewed-by: Leo Liu --- src/gallium/include/pipe/p_video_state.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gallium/include/pipe/p_video_state.h b/src/gallium/include/pipe/p_video_state.h index

[Mesa-dev] [PATCH 0/4] HEVC support for VA-API

2015-10-23 Thread Leo Liu
The series support HEVC codec for VA-API and fix for VDPAU they are tested with the latest ffmpeg and gstreamer-vaapi plugins. Boyuan Zhang (4): vl: add RefPicList defines for VAAPI HEVC decode radeon/uvd: implement and add flag for VAAPI HEVC decode st/va: add VAAPI HEVC decode support s

[Mesa-dev] [PATCH] st/omx/dec/h264: fix field picture type 0 poc disorder

2015-10-14 Thread Leo Liu
Signed-off-by: Leo Liu Cc: "10.6 11.0" --- src/gallium/state_trackers/omx/vid_dec_h264.c | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/gallium/state_trackers/omx/vid_dec_h264.c b/src/gallium/state_trackers/omx/vid_dec_h264.c index 18d8803..f66e

[Mesa-dev] [PATCH] radeon/vce: fix vui time_scale zero error

2015-09-25 Thread Leo Liu
if app pass 0 as frame_rate_num, it should not be encoded to the VUI. Signed-off-by: Leo Liu Reviewed-by: Alex Deucher Reviewed-by: Christian König Cc: "10.6 11.0" --- src/gallium/drivers/radeon/radeon_vce_40_2_2.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/galli

[Mesa-dev] [PATCH] radeon/vce: fix vui time_scale zero error

2015-09-23 Thread Leo Liu
if app pass 0 as frame_rate_num, it should not be encoded to the VUI. Signed-off-by: Leo Liu Reviewed-by: Alex Deucher Reviewed-by: Christian König Cc: "10.6" --- src/gallium/drivers/radeon/radeon_vce_40_2_2.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gallium/driv

[Mesa-dev] [PATCH v2 2/2] radeon/vce: implement video usability information support

2015-03-31 Thread Leo Liu
This will help encoding VUI into the bitstream v2: make backward compatible Signed-off-by: Leo Liu --- src/gallium/drivers/radeon/radeon_vce.c| 6 ++- src/gallium/drivers/radeon/radeon_vce.h| 2 + src/gallium/drivers/radeon/radeon_vce_40_2_2.c | 53

[Mesa-dev] [PATCH 2/2] radeon/vce: implement video usability information support

2015-03-30 Thread Leo Liu
This will help encoding VUI into the bitstream Signed-off-by: Leo Liu --- src/gallium/drivers/radeon/radeon_vce.c| 1 + src/gallium/drivers/radeon/radeon_vce.h| 1 + src/gallium/drivers/radeon/radeon_vce_40_2_2.c | 52 ++ 3 files changed, 54 insertions

[Mesa-dev] [PATCH 1/2] st/omx/enc: export framerate to vce driver

2015-03-30 Thread Leo Liu
The framerate will be used for video usability info support by VCE driver Signed-off-by: Leo Liu --- src/gallium/state_trackers/omx/vid_enc.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/gallium/state_trackers/omx/vid_enc.c b/src/gallium/state_trackers/omx

[Mesa-dev] [PATCH] st/omx/dec/h264: fix picture out-of-order with poc type 0 v2

2015-02-24 Thread Leo Liu
poc counter should be reset with IDR frame, otherwise there would be a re-order issue with frames before and after IDR v2: add commit message Signed-off-by: Leo Liu Reviewed-by: Christian König Cc: "10.4 10.5" --- src/gallium/state_trackers/omx/vid_dec_h264.c | 5 + 1 file

<    1   2   3   4   5   >