[Mesa-dev] [PATCH] st/omx/enc: add multi scaling buffers for performance improvement

2014-02-19 Thread Leo Liu
From: Leo Liu leo@amd.com Signed-off-by: Leo Liu leo@amd.com --- src/gallium/state_trackers/omx/vid_enc.c | 38 src/gallium/state_trackers/omx/vid_enc.h | 7 -- 2 files changed, 29 insertions(+), 16 deletions(-) diff --git a/src/gallium

[Mesa-dev] [PATCH] st/omx/enc: add multi scaling buffers for performance improvement

2014-02-19 Thread Leo Liu
From: Leo Liu leoxs...@gmail.com Signed-off-by: Leo Liu leoxs...@gmail.com --- src/gallium/state_trackers/omx/vid_enc.c | 39 src/gallium/state_trackers/omx/vid_enc.h | 7 -- 2 files changed, 29 insertions(+), 17 deletions(-) diff --git a/src/gallium

[Mesa-dev] [PATCH] Revert radeon: just don't map VRAM buffers at all

2014-04-01 Thread Leo Liu
From: Leo Liu leo@amd.com This reverts commit 96e8b916a7a39a9ba58e92d1ad77b5501de63ac7. Signed-off-by: Leo Liu leo@amd.com --- src/gallium/drivers/radeon/r600_texture.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gallium/drivers/radeon/r600_texture.c b

[Mesa-dev] [PATCH] Revert radeon: just don't map VRAM buffers at all

2014-04-02 Thread Leo Liu
From: Leo Liu leo@amd.com This reverts commit 96e8b916a7a39a9ba58e92d1ad77b5501de63ac7. In the case of VCE encoding with raw YUV file, CPU load directly to VRAM is faster than combination of CPU writing to GTT and then blit to VRAM with GPU. --- src/gallium/drivers/radeon/r600_texture.c | 4

[Mesa-dev] [PATCH] radeon/vce: cleanup cpb handling

2014-04-03 Thread Leo Liu
From: Leo Liu leo@amd.com Signed-off-by: Leo Liu leo@amd.com --- src/gallium/drivers/radeon/radeon_vce.c| 22 +++--- src/gallium/drivers/radeon/radeon_vce.h| 3 +++ src/gallium/drivers/radeon/radeon_vce_40_2_2.c | 6 -- 3 files changed, 26 insertions

[Mesa-dev] [PATCH] radeon/vce: cleanup cpb handling

2014-04-03 Thread Leo Liu
From: Leo Liu leo@amd.com Signed-off-by: Leo Liu leo@amd.com --- src/gallium/drivers/radeon/radeon_vce.c| 22 +++--- src/gallium/drivers/radeon/radeon_vce.h| 3 +++ src/gallium/drivers/radeon/radeon_vce_40_2_2.c | 21 +++-- 3 files changed

[Mesa-dev] [PATCH 1/2] st/omx/enc: allocate input buffer private on demand

2014-04-08 Thread Leo Liu
From: Christian König christian.koe...@amd.com v2: move allocation to a function as first step to clean vid_enc_EncodeFrame Signed-off-by: Christian König christian.koe...@amd.com Signed-off-by: Leo Liu leo@amd.com --- src/gallium/state_trackers/omx/vid_enc.c | 124

[Mesa-dev] [PATCH 2/2] st/omx/enc: cleanup omx/vid_enc.c

2014-04-08 Thread Leo Liu
From: Leo Liu leo@amd.com cleanup by moving each step into a separate function Signed-off-by: Leo Liu leo@amd.com --- src/gallium/state_trackers/omx/vid_enc.c | 220 +-- 1 file changed, 118 insertions(+), 102 deletions(-) diff --git a/src/gallium

[Mesa-dev] [PATCH] st/omx/enc: replace omx buffer with texture buffer

2014-04-17 Thread Leo Liu
From: Leo Liu leo@amd.com Signed-off-by: Leo Liu leo@amd.com --- src/gallium/state_trackers/omx/vid_enc.c | 214 ++- 1 file changed, 185 insertions(+), 29 deletions(-) diff --git a/src/gallium/state_trackers/omx/vid_enc.c b/src/gallium/state_trackers/omx

[Mesa-dev] [PATCH 1/3] vl: add interface for non-referenced frames

2014-05-27 Thread Leo Liu
Signed-off-by: Leo Liu leo@amd.com --- 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 0256a8f..6621dbd 100644 --- a/src/gallium/include/pipe

[Mesa-dev] [PATCH 3/3] st/omx/enc: implement restricted b frames pattern

2014-05-27 Thread Leo Liu
Signed-off-by: Leo Liu leo@amd.com --- src/gallium/state_trackers/omx/vid_enc.c | 11 +-- src/gallium/state_trackers/omx/vid_enc.h | 1 + 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/gallium/state_trackers/omx/vid_enc.c b/src/gallium/state_trackers/omx

[Mesa-dev] [PATCH 2/3] radeon/vce: implement non-referenced frames

2014-05-27 Thread Leo Liu
Signed-off-by: Leo Liu leo@amd.com --- src/gallium/drivers/radeon/radeon_vce.c| 6 -- src/gallium/drivers/radeon/radeon_vce_40_2_2.c | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/gallium/drivers/radeon/radeon_vce.c b/src/gallium/drivers/radeon

[Mesa-dev] [PATCH 1/4] vl: add more avc profiles

2014-05-30 Thread Leo Liu
Signed-off-by: Leo Liu leo@amd.com --- src/gallium/auxiliary/util/u_video.h | 4 src/gallium/include/pipe/p_video_enums.h | 6 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/gallium/auxiliary/util/u_video.h b/src/gallium/auxiliary/util/u_video.h index

[Mesa-dev] [PATCH 2/4] st/omx/enc: implement h264 profile support

2014-05-30 Thread Leo Liu
Signed-off-by: Leo Liu leo@amd.com --- src/gallium/state_trackers/omx/vid_enc.c | 50 ++-- src/gallium/state_trackers/omx/vid_enc.h | 1 + 2 files changed, 49 insertions(+), 2 deletions(-) diff --git a/src/gallium/state_trackers/omx/vid_enc.c b/src/gallium

[Mesa-dev] [PATCH 4/4] st/omx/enc: enable b frames

2014-05-30 Thread Leo Liu
Signed-off-by: Leo Liu leo@amd.com --- src/gallium/state_trackers/omx/vid_enc.c | 6 -- src/gallium/state_trackers/omx/vid_enc.h | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/gallium/state_trackers/omx/vid_enc.c b/src/gallium/state_trackers/omx/vid_enc.c

[Mesa-dev] [PATCH 3/4] radeon/vce: implement h264 profile support

2014-05-30 Thread Leo Liu
Signed-off-by: Leo Liu leo@amd.com --- src/gallium/drivers/radeon/radeon_vce_40_2_2.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/radeon/radeon_vce_40_2_2.c b/src/gallium/drivers/radeon/radeon_vce_40_2_2.c index 3010c5b..c67f8f9 100644

[Mesa-dev] [PATCH 2/5] vl: add level interface

2014-06-12 Thread Leo Liu
Signed-off-by: Leo Liu leo@amd.com --- src/gallium/include/pipe/p_video_codec.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/include/pipe/p_video_codec.h b/src/gallium/include/pipe/p_video_codec.h index d4cdacb..196d00b 100644 --- a/src/gallium/include/pipe/p_video_codec.h

[Mesa-dev] [PATCH 1/5] st/st/omx: fix switch-case indentation in vid_enc.c

2014-06-12 Thread Leo Liu
Signed-off-by: Leo Liu leo@amd.com --- src/gallium/state_trackers/omx/vid_enc.c | 32 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/src/gallium/state_trackers/omx/vid_enc.c b/src/gallium/state_trackers/omx/vid_enc.c index d16fa01..70f63d1

[Mesa-dev] [PATCH 5/5] radeon/vce: set number of cpbs based on level

2014-06-12 Thread Leo Liu
Signed-off-by: Leo Liu leo@amd.com --- src/gallium/drivers/radeon/radeon_vce.c | 60 +++-- src/gallium/drivers/radeon/radeon_vce.h | 3 +- 2 files changed, 58 insertions(+), 5 deletions(-) diff --git a/src/gallium/drivers/radeon/radeon_vce.c b/src/gallium

[Mesa-dev] [PATCH 4/5] radeon/vce: implement h264 level support

2014-06-12 Thread Leo Liu
Signed-off-by: Leo Liu leo@amd.com --- src/gallium/drivers/radeon/radeon_vce_40_2_2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/radeon/radeon_vce_40_2_2.c b/src/gallium/drivers/radeon/radeon_vce_40_2_2.c index c67f8f9..ecb4b0d 100644 --- a/src

[Mesa-dev] [PATCH 3/5] st/omx/enc: implement h264 level support

2014-06-12 Thread Leo Liu
Signed-off-by: Leo Liu leo@amd.com --- src/gallium/state_trackers/omx/vid_enc.c | 39 1 file changed, 39 insertions(+) diff --git a/src/gallium/state_trackers/omx/vid_enc.c b/src/gallium/state_trackers/omx/vid_enc.c index 70f63d1..db4fc8f 100644 --- a/src

[Mesa-dev] [PATCH] radeon/vce: set number of cpbs based on level

2014-06-12 Thread Leo Liu
v2: add error check for cpb size 0 Signed-off-by: Leo Liu leo@amd.com --- src/gallium/drivers/radeon/radeon_vce.c | 63 +++-- src/gallium/drivers/radeon/radeon_vce.h | 3 +- 2 files changed, 61 insertions(+), 5 deletions(-) diff --git a/src/gallium/drivers

[Mesa-dev] [PATCH 1/6] st/vdpau: move common functions to util

2014-09-23 Thread Leo Liu
Break out these functions so that they can be shared with a other state trackers. They will be used in subsequent patches for the new VA-API state tracker. Signed-off-by: Leo Liu leo@amd.com --- src/gallium/auxiliary/util/u_video.h | 74 +++ src/gallium

[Mesa-dev] [PATCH 3/6] st/va: implement vlVa(Create|Destroy|Query|Get)Config

2014-09-23 Thread Leo Liu
From: Christian König christian.koe...@amd.com This patch is for application to query configuration, such as profiles, entrypoints, and attributes Signed-off-by: Christian König christian.koe...@amd.com Signed-off-by: Leo Liu leo@amd.com --- src/gallium/state_trackers/va/config.c | 74

[Mesa-dev] [PATCH 5/6] st/va: implement Picture functions for mpeg2 h264 and vc1

2014-09-23 Thread Leo Liu
From: Christian König christian.koe...@amd.com This patch implements codec for mpeg2 h264 and vc1, populates codec parameters and pass them to HW driver. Signed-off-by: Christian König christian.koe...@amd.com Signed-off-by: Leo Liu leo@amd.com --- src/gallium/state_trackers/va/context.c

[Mesa-dev] [PATCH 4/6] st/va: implement Context Surface and Buffer

2014-09-23 Thread Leo Liu
)Surfaces vlVa(Create|Destroy)Buffer Signed-off-by: Christian König christian.koe...@amd.com Signed-off-by: Leo Liu leo@amd.com --- src/gallium/state_trackers/va/buffer.c | 83 -- src/gallium/state_trackers/va/context.c| 80 -- src/gallium/state_trackers/va

[Mesa-dev] [PATCH 6/6] st/va: implement vlVa(Query|Create|Get|Put|Destroy)Image

2014-09-23 Thread Leo Liu
This patch implements functions for images support, which basically supports copy data between video surface and user buffers, in this case supports SW decode, and other video output Signed-off-by: Leo Liu leo@amd.com --- src/gallium/state_trackers/va/image.c | 233

[Mesa-dev] [PATCH 2/6] st/va: skeleton VAAPI state tracker

2014-09-23 Thread Leo Liu
From: Christian König christian.koe...@amd.com This patch adds a skeleton VA-API state tracker, which is filled with live in the subsequent patches. Signed-off-by: Christian König christian.koe...@amd.com Signed-off-by: Leo Liu leo@amd.com --- configure.ac

[Mesa-dev] [PATCH v2 2/6] st/va: skeleton VAAPI state tracker

2014-09-24 Thread Leo Liu
From: Christian König christian.koe...@amd.com This patch adds a skeleton VA-API state tracker, which is filled with live in the subsequent patches. v2: fixes in configure.ac and va state_tracker Makefile.am Signed-off-by: Christian König christian.koe...@amd.com Signed-off-by: Leo Liu leo

[Mesa-dev] [PATCH v2 3/6] st/va: implement vlVa(Create|Destroy|Query|Get)Config

2014-09-26 Thread Leo Liu
-off-by: Leo Liu leo@amd.com --- src/gallium/state_trackers/va/config.c | 78 -- src/gallium/state_trackers/va/context.c| 2 +- src/gallium/state_trackers/va/va_private.h | 68 ++ 3 files changed, 143 insertions(+), 5 deletions

[Mesa-dev] [PATCH v2 6/6] st/va: implement vlVa(Query|Create|Get|Put|Destroy)Image

2014-09-26 Thread Leo Liu
This patch implements functions for images support, which basically supports copy data between video surface and user buffers, in this case supports SW decode, and other video output v2: fix buffer size for odd-sized image case expose I420 format as well Signed-off-by: Leo Liu leo

[Mesa-dev] [PATCH v3 2/6] st/va: skeleton VAAPI state tracker

2014-09-26 Thread Leo Liu
-off-by: Leo Liu leo@amd.com --- configure.ac | 34 ++ src/gallium/Makefile.am| 4 + src/gallium/state_trackers/va/Makefile.am | 37 ++ src/gallium/state_trackers/va/Makefile.sources | 10 ++ src/gallium/state_trackers

[Mesa-dev] [PATCH v3 6/6] st/va: implement vlVa(Query|Create|Get|Put|Destroy)Image

2014-09-29 Thread Leo Liu
size cleanup I420 format exposure Signed-off-by: Leo Liu leo@amd.com --- src/gallium/state_trackers/va/context.c| 2 +- src/gallium/state_trackers/va/image.c | 266 - src/gallium/state_trackers/va/va_private.h | 22 +++ 3 files changed, 281

[Mesa-dev] [PATCH v4 2/6] st/va: skeleton VAAPI state tracker

2014-09-29 Thread Leo Liu
entrypoint name. rebase(cleanup) targets/va/Makefile.am v4: cleanup va version auto detection add back targets/va/va.sym Signed-off-by: Christian König christian.koe...@amd.com Signed-off-by: Leo Liu leo@amd.com --- configure.ac | 37 ++ src/gallium

[Mesa-dev] [PATCH 6/6] st/va: MPEG4 call vlVaDecoderFixMPEG4Startcode()

2014-11-06 Thread Leo Liu
From: Michael Varga michael.va...@amd.com If the VOP and GOV headers were truncated they will be regenerated. Signed-off-by: Michael Varga michael.va...@amd.com --- src/gallium/state_trackers/va/picture.c | 7 +++ 1 file changed, 7 insertions(+) diff --git

[Mesa-dev] [PATCH 2/6] st/va: MPEG4 populate the PPS structure

2014-11-06 Thread Leo Liu
From: Michael Varga michael.va...@amd.com Signed-off-by: Michael Varga michael.va...@amd.com --- src/gallium/state_trackers/va/picture.c| 72 ++ src/gallium/state_trackers/va/va_private.h | 9 2 files changed, 81 insertions(+) diff --git

[Mesa-dev] [PATCH 1/6] st/va: refactored handleVASliceDataBufferType

2014-11-06 Thread Leo Liu
From: Michael Varga michael.va...@amd.com This patch cleans the function handleVASliceDataBufferType() for better readability. Signed-off-by: Michael Varga michael.va...@amd.com --- src/gallium/state_trackers/va/picture.c | 75 ++--- 1 file changed, 40 insertions(+),

[Mesa-dev] [PATCH 4/6] st/va: MPEG4 populate the SPS structure

2014-11-06 Thread Leo Liu
From: Michael Varga michael.va...@amd.com Signed-off-by: Michael Varga michael.va...@amd.com --- src/gallium/state_trackers/va/picture.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/src/gallium/state_trackers/va/picture.c b/src/gallium/state_trackers/va/picture.c index

[Mesa-dev] [PATCH 3/6] st/va: MPEG4 populate the iq matrix buffers

2014-11-06 Thread Leo Liu
From: Michael Varga michael.va...@amd.com Signed-off-by: Michael Varga michael.va...@amd.com --- src/gallium/state_trackers/va/picture.c | 16 1 file changed, 16 insertions(+) diff --git a/src/gallium/state_trackers/va/picture.c b/src/gallium/state_trackers/va/picture.c index

[Mesa-dev] [PATCH 4/4] st/va: surface: render subpicture

2014-11-17 Thread Leo Liu
From: Michael Varga michael.va...@amd.com Signed-off-by: Michael Varga michael.va...@amd.com --- src/gallium/state_trackers/va/surface.c | 120 1 file changed, 120 insertions(+) diff --git a/src/gallium/state_trackers/va/surface.c

[Mesa-dev] [PATCH 3/4] st/va: subpicture implementation

2014-11-17 Thread Leo Liu
From: Michael Varga michael.va...@amd.com added BGRA format create/destroy set image associate/deassociate Signed-off-by: Michael Varga michael.va...@amd.com --- src/gallium/state_trackers/va/subpicture.c | 160 ++--- src/gallium/state_trackers/va/va_private.h | 12 +++

[Mesa-dev] [PATCH 2/4] st/va: added internal storage for VAImage and BGRA format

2014-11-17 Thread Leo Liu
From: Michael Varga michael.va...@amd.com When calling vaCreateImage() an internal copy of VAImage is maintained since the allocation of image may not be guaranteed to live long enough. Signed-off-by: Michael Varga michael.va...@amd.com --- src/gallium/state_trackers/va/image.c | 70

[Mesa-dev] [PATCH 1/4] st/va: added some calls to handle_table_remove()

2014-11-17 Thread Leo Liu
From: Michael Varga michael.va...@amd.com In a few locations handles were being added but not removed. Signed-off-by: Michael Varga michael.va...@amd.com --- src/gallium/state_trackers/va/buffer.c | 1 + src/gallium/state_trackers/va/context.c | 1 + src/gallium/state_trackers/va/image.c | 1

[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 leo@amd.com --- 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

[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 leo@amd.com --- 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

[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 leo@amd.com --- 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] 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 leo@amd.com Reviewed-by: Christian König christian.koe...@amd.com Cc: 10.4 10.5 mesa-sta...@lists.freedesktop.org --- src

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

2015-10-23 Thread Leo Liu
From: Boyuan Zhang <boyuan.zh...@amd.com> Signed-off-by: Boyuan Zhang <boyuan.zh...@amd.com> Reviewed-by: Christian König <christian.koe...@amd.com> Reviewed-by: Leo Liu <leo@amd.com> --- src/gallium/drivers/radeon/radeon_uvd.c | 7 +++ src/gallium/drivers

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

2015-10-23 Thread Leo Liu
From: Boyuan Zhang <boyuan.zh...@amd.com> Signed-off-by: Boyuan Zhang <boyuan.zh...@amd.com> Reviewed-by: Christian König <christian.koe...@amd.com> Reviewed-by: Leo Liu <leo@amd.com> --- configure.ac | 2 +- src/gallium/state_tracke

[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

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

2015-10-23 Thread Leo Liu
From: Boyuan Zhang <boyuan.zh...@amd.com> Signed-off-by: Boyuan Zhang <boyuan.zh...@amd.com> Reviewed-by: Christian König <christian.koe...@amd.com> Reviewed-by: Leo Liu <leo@amd.com> --- src/gallium/include/pipe/p_video_state.h | 2 ++ 1 file changed, 2 inserti

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

2015-10-23 Thread Leo Liu
From: Boyuan Zhang <boyuan.zh...@amd.com> Signed-off-by: Boyuan Zhang <boyuan.zh...@amd.com> Reviewed-by: Christian König <christian.koe...@amd.com> Reviewed-by: Leo Liu <leo@amd.com> --- src/gallium/state_trackers/vdpau/decode.c | 1 + 1 file changed, 1 insert

[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 ---

[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 <leo@amd.com> --- 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/g

[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 <leo@amd.com> --- src/gallium/auxiliary/Makefile.sources | 3 +- src/gallium/auxiliary/vl/vl_winsys.h | 6 +++ src/gallium/auxiliary/vl/vl_winsys_drm.

[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 +++

[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 ++

[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 <leo@amd.com> Reviewed-by: Christian König <christian.koe...@amd.com> --- src/gallium/state_trackers/omx/entry

[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 <leo@amd.com> Reviewed-by: Christian König <christian.koe...@amd.com> --- src/gallium/auxiliary/Makefile.sources | 3 +- src/gallium/auxiliary/vl

[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 <leo@amd.com> Reviewed-by: Christian König <christian.koe...@amd.com> --- src/gallium/state_trackers/omx/entry

[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 <leo@amd.com> Reviewed-by: Christian König <christian.koe...@amd.com> --- src/gallium/state_trackers/va/context.c | 24 +++- 1 file changed, 3 insertions(+), 21 deletions(-) diff --git a

[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 <leo@amd.com> Cc: "10.6 11.0" <mesa-sta...@lists.freedesktop.org> --- 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

[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 <leo@amd.com> Reviewed-by: Alex Deucher <alexander.deuc...@amd.com> Reviewed-by: Christian König <christian.koe...@amd.com> Cc: "10.6 11.0" <mesa-sta...@lists.freedeskto

[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 <leo@amd.com> Reviewed-by: Alex Deucher <alexander.deuc...@amd.com> Reviewed-by: Christian König <christian.koe...@amd.com> Cc: "10.6" <mesa-sta...@lists.freedeskto

[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 <leo@amd.com> Reviewed-by: Alex Deucher <alexander.deuc...@amd.com> --- src/gallium/drivers/radeon/radeon_vce.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/radeon/rad

[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 <leo@amd.com> Reviewed-by: Alex Deucher <alexander.deuc...@amd.com> --- src/gallium/drivers/radeon/Makefile.sources | 1 + src/gallium/drivers/radeon/radeon_vce.c | 21 ++- src/gallium/drivers/radeon/radeon_vce

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

2015-11-20 Thread Leo Liu
Signed-off-by: Leo Liu <leo@amd.com> "11.0" <mesa-sta...@lists.freedesktop.org> --- 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 0

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

2015-11-20 Thread Leo Liu
Signed-off-by: Leo Liu <leo@amd.com> Cc: "11.0" <mesa-sta...@lists.freedesktop.org> --- 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

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

2015-11-23 Thread Leo Liu
the patch series Reviewed-by: Leo Liu <leo@amd.com> On 11/23/2015 09:37 AM, Christian König wrote: From: Christian König <christian.koe...@amd.com> Signed-off-by: Christian König <christian.koe...@amd.com> --- src/gallium/state_trackers/va/picture.c | 14 +++--

[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 <leo@amd.com> Cc: "12.0" <mesa-sta...@lists.freedesktop.org> --- src/gallium/auxiliary/Makefile.am | 7 +++ src/gallium/auxiliary/Makefile.sources| 4 +++- src/gallium/auxiliary/vl/vl_winsys_dr

[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 <leo@amd.com> Cc: "12.0" <mesa-sta...@li

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 <leo@amd.com> 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 wh

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

2016-06-24 Thread Leo Liu
); //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_CS(enc->enc_pic.vui.low_delay_hrd_flag); //lowDelayHRDFlag

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,

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

[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" <mesa-sta...@lists.freedesktop.org> Signed-off-by: Leo Liu <leo@amd.com> --- src/gallium/state_trackers/omx/vid_dec_h264.c | 21 +++-- 1 file changed, 19 insertions(+), 2 deletion

[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" <mesa-sta...@lists.freedesktop.org> Signed-off-by: Leo Liu <leo@amd.com> --- src/gall

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 <leo@amd.com> 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" <mesa-sta...@lists.freedesk

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

2016-02-01 Thread Leo Liu
Cc: "11.0 11.1" <mesa-sta...@lists.freedesktop.org> Signed-off-by: Leo Liu <leo@amd.com> --- 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

[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" <mesa-sta...@lists.freedesktop.org> Signed-off-by: Leo Liu <leo@amd.com> --- src/gallium/state_trackers/omx/vid_dec_h264.c | 6 +++

[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 <leo@amd.com> Reviewed-by: Christian König <christian.koe...@amd.com> Cc: "11.1 11.2" <mesa-sta...@lists.freedesktop.org> --- src/gallium/drivers/radeon/radeon_uvd.c | 12 1 file changed, 8 inserti

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(-)

[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

[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

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 <leo@amd.com> On 03/08/2016 07:21 AM, Christian König wrote: From: Christian König <christian.koe...@amd.com> Works around a bug in radeonsi and tiling is actually not very beneficial in this use case. Signed-off-by: Christian König &l

[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

[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 <leo@amd.com> --- src/gallium/auxiliary/Makefile.sources| 5 ++ src/gallium/auxiliary/vl/vl_winsys.h | 5 ++ src/gallium/auxiliary/vl/vl_winsys_dri3.c | 109 ++ 3

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

2016-05-11 Thread Leo Liu
Signed-off-by: Leo Liu <leo@amd.com> --- 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 ---

[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 <leo@amd.com> --- src/gallium/auxiliary/vl/vl_winsys_dri3.c | 32 +-- 1 file changed, 30 insertions(+), 2 deletions(-) diff --git

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

2016-05-11 Thread Leo Liu
Signed-off-by: Leo Liu <leo@amd.com> --- 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/g

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

2016-05-11 Thread Leo Liu
Signed-off-by: Leo Liu <leo@amd.com> --- 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/g

[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 <leo@amd.com> --- src/gallium/auxiliary/vl/vl_winsy

[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 <leo@amd.com> --- configure.ac | 7 ++- src/gallium/auxiliary/vl/vl_winsys_dri3.c | 88 ++- 2

[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 <leo@amd.com> --- 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/g

[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 <leo@amd.com> --- 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/aux

[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 <leo@amd.com> --- 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/auxili

[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 DRI3

[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 <leo@amd.com> --- src/gallium/auxiliary/vl/vl_winsys_dri3.c | 17 + 1 file changed, 13 insertions(+), 4 deletions(-)

[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 <leo@amd.com> --- 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

  1   2   3   4   5   >