Re: [Mesa-dev] VAAPI encoder and OpenGL

2020-04-27 Thread Leo Liu
+Thong. On 2020-04-27 8:29 a.m., Daniel Gomez wrote: Adding Boyuan Zhang to the thread. On Mon, 27 Apr 2020 at 14:00, Daniel Gomez wrote: Hi guys, We have found a limitation on the usage of the GPU and the encoder when you run it simultaneously in a gstreamer pipeline and we would like to

Re: [Mesa-dev] - Interested in the project "Unit and performance tests for VA-API"

2020-04-08 Thread Leo Liu
On 2020-04-02 2:58 p.m., AMAN IIT wrote: Dear Sir/ma'am, Hope you are doing well. Aman is here from India. I'm currently pursuing my Bachelor's degree from IIT Dharwad in the field of *Computer Science*. After considering my interests, I am convinced that I want to become a Backend developer

Re: [Mesa-dev] [PATCH] radeonsi: Add support for midstream bitrate change in encoder

2019-12-04 Thread Leo Liu
On 2019-12-02 11:30 p.m., Satyajit Sahu wrote: Added support for bitrate change in between encoding. Signed-off-by: Satyajit Sahu diff --git a/src/gallium/drivers/radeon/radeon_vce.c b/src/gallium/drivers/radeon/radeon_vce.c index 84d3c1e2fa4..7d7a2fa4eb3 100644 ---

Re: [Mesa-dev] [PATCH] radeon/vce: use switch to convert profile idc

2018-09-27 Thread Leo Liu
On 2018-09-26 10:40 AM, boyuan.zh...@amd.com wrote: From: Boyuan Zhang The previous array logic for converting pipe video profile to profile idc relies on the order of pipe_video_profile enum defines. Adding new profile to enum defines may break the logic. Therefore, it's better to use

[Mesa-dev] [PATCH] radeon/uvd: use bitstream coded number for symbols of Huffman tables

2018-09-19 Thread Leo Liu
Signed-off-by: Leo Liu Fixes: 130d1f456(radeon/uvd: reconstruct MJPEG bitstream) Cc: "18.2" --- src/gallium/drivers/radeon/radeon_uvd.c | 18 ++ 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/src/gallium/drivers/radeon/radeon_uvd.c b/src/gallium/driv

Re: [Mesa-dev] [PATCH 1/4] vl/dri: add 10 bits format supports

2018-09-10 Thread Leo Liu
On 09/10/2018 04:49 PM, Ilia Mirkin wrote: On Mon, Sep 10, 2018 at 4:27 PM, Leo Liu wrote: v2: Tell B10G10R10X2 and R10G10B10X2 formats for different HW. Signed-off-by: Leo Liu --- src/gallium/auxiliary/vl/vl_winsys.h | 5 ++ src/gallium/auxiliary/vl/vl_winsys_dri.c | 69

[Mesa-dev] [PATCH 1/4] vl/dri: add 10 bits format supports

2018-09-10 Thread Leo Liu
v2: Tell B10G10R10X2 and R10G10B10X2 formats for different HW. Signed-off-by: Leo Liu --- src/gallium/auxiliary/vl/vl_winsys.h | 5 ++ src/gallium/auxiliary/vl/vl_winsys_dri.c | 70 2 files changed, 65 insertions(+), 10 deletions(-) diff --git a/src/gallium

Re: [Mesa-dev] [PATCH 1/4] vl/dri: add 10 bits format supports

2018-09-10 Thread Leo Liu
Forget the Patch 1, will re-send shortly. It's ming case 24: +vl_dri2_format_for_depth(struct vl_screen *vscreen, int depth) +{ + switch (depth) { + case 24: + case 30: Leo On 09/10/2018 04:27 PM, Leo Liu wrote: v2: Tell B10G10R10X2 and R10G10B10X2 formats for different HW. Signed

[Mesa-dev] [PATCH 3/4] vl/dri: add color depth to vl winsys

2018-09-10 Thread Leo Liu
For VDPAU use later Signed-off-by: Leo Liu Reviewed-by: Michel Dänzer --- src/gallium/auxiliary/vl/vl_winsys.h | 1 + src/gallium/auxiliary/vl/vl_winsys_dri3.c | 1 + 2 files changed, 2 insertions(+) diff --git a/src/gallium/auxiliary/vl/vl_winsys.h b/src/gallium/auxiliary/vl

[Mesa-dev] [PATCH 4/4] st/vdpau: Use output buffer as back buffer with 24-bit color only

2018-09-10 Thread Leo Liu
Using output buffer with 8 bits video RGB as back buffer certainly is not working for 30 bits color depth visual. Signed-off-by: Leo Liu Reviewed-by: Michel Dänzer --- src/gallium/state_trackers/vdpau/output.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gallium

[Mesa-dev] [PATCH 2/4] vl/dri3: add support for 10 bits format

2018-09-10 Thread Leo Liu
Signed-off-by: Leo Liu --- src/gallium/auxiliary/vl/vl_winsys_dri3.c | 29 +++ 1 file changed, 25 insertions(+), 4 deletions(-) diff --git a/src/gallium/auxiliary/vl/vl_winsys_dri3.c b/src/gallium/auxiliary/vl/vl_winsys_dri3.c index 8e3c4a0e04d..30e732e38eb 100644 --- a/src

[Mesa-dev] [PATCH 1/4] vl/dri: add 10 bits format supports

2018-09-10 Thread Leo Liu
v2: Tell B10G10R10X2 and R10G10B10X2 formats for different HW. Signed-off-by: Leo Liu --- src/gallium/auxiliary/vl/vl_winsys.h | 5 ++ src/gallium/auxiliary/vl/vl_winsys_dri.c | 69 2 files changed, 64 insertions(+), 10 deletions(-) diff --git a/src/gallium

Re: [Mesa-dev] [PATCH 1/4] vl/dri3: add 10 bits format support for front buffer

2018-09-07 Thread Leo Liu
On 09/07/2018 11:09 AM, Michel Dänzer wrote: On 2018-09-07 4:13 p.m., Leo Liu wrote: On 09/07/2018 10:07 AM, Michel Dänzer wrote: On 2018-09-07 3:55 p.m., Leo Liu wrote: Signed-off-by: Leo Liu diff --git a/src/gallium/auxiliary/vl/vl_winsys_dri3.c b/src/gallium/auxiliary/vl/vl_winsys_dri3

Re: [Mesa-dev] [PATCH 1/4] vl/dri3: add 10 bits format support for front buffer

2018-09-07 Thread Leo Liu
On 09/07/2018 10:07 AM, Michel Dänzer wrote: On 2018-09-07 3:55 p.m., Leo Liu wrote: Signed-off-by: Leo Liu --- src/gallium/auxiliary/vl/vl_winsys_dri3.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/gallium/auxiliary/vl/vl_winsys_dri3.c b/src/gallium

[Mesa-dev] [PATCH 4/4] vl/dri: add 10 bits format support for DRI2

2018-09-07 Thread Leo Liu
Signed-off-by: Leo Liu --- src/gallium/auxiliary/vl/vl_winsys_dri.c | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/gallium/auxiliary/vl/vl_winsys_dri.c b/src/gallium/auxiliary/vl/vl_winsys_dri.c index bb1ff50488..f3ae788f72 100644 --- a/src/gallium/auxiliary

[Mesa-dev] [PATCH 1/4] vl/dri3: add 10 bits format support for front buffer

2018-09-07 Thread Leo Liu
Signed-off-by: Leo Liu --- src/gallium/auxiliary/vl/vl_winsys_dri3.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/gallium/auxiliary/vl/vl_winsys_dri3.c b/src/gallium/auxiliary/vl/vl_winsys_dri3.c index 0233f58441..7ac6924c78 100644 --- a/src/gallium/auxiliary

[Mesa-dev] [PATCH 3/4] st/vdpau: Use output buffer as DRI3 back buffer with 24 bits color only

2018-09-07 Thread Leo Liu
Using output buffer with 8 bits video RGB as back buffer certainly is not working for 30 bits color depth visual. Signed-off-by: Leo Liu --- src/gallium/state_trackers/vdpau/output.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gallium/state_trackers/vdpau/output.c

[Mesa-dev] [PATCH 2/4] vl/dri: add color depth to vl_winsys

2018-09-07 Thread Leo Liu
It will be used for dri2 and dri3 Signed-off-by: Leo Liu --- src/gallium/auxiliary/vl/vl_winsys.h | 1 + src/gallium/auxiliary/vl/vl_winsys_dri3.c | 1 + 2 files changed, 2 insertions(+) diff --git a/src/gallium/auxiliary/vl/vl_winsys.h b/src/gallium/auxiliary/vl/vl_winsys.h index

[Mesa-dev] [PATCH] vl/dri3: add support for 10 bits format

2018-09-06 Thread Leo Liu
Signed-off-by: Leo Liu --- src/gallium/auxiliary/vl/vl_winsys_dri3.c | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/gallium/auxiliary/vl/vl_winsys_dri3.c b/src/gallium/auxiliary/vl/vl_winsys_dri3.c index 8e3c4a0e04d..0233f58441e 100644 --- a/src/gallium

Re: [Mesa-dev] [PATCH] vl/dri3: do full teardown on screen_destroy

2018-09-04 Thread Leo Liu
/dri3: implement DRI3 BufferFromPixmap") Cc: Leo Liu Cc: Christian König Signed-off-by: Emil Velikov --- Gents, can you please double-check this. I haven't really looked at the implementation, although the return seems bogus here. Thanks --- src/gallium/auxiliary/vl/vl_winsys_dri3.c | 1 - 1 fi

Re: [Mesa-dev] [PATCH 08/13] radeon/uvd: remove get mjpeg slice header

2018-08-17 Thread Leo Liu
These 3 patches are: Reviewed-by: Leo Liu On 2018-08-16 04:56 PM, boyuan.zh...@amd.com wrote: From: Boyuan Zhang Move the previous get_mjpeg_slice_heaeder function and eoi from "radeon/vcn" to "st/va". Signed-off-by: Boyuan Zhang --- src/gallium/drivers/radeo

Re: [Mesa-dev] [PATCH 13/13] radeonsi: enable vcn jpeg decode for raven

2018-08-16 Thread Leo Liu
Reviewed-by: Leo Liu On 08/16/2018 12:06 PM, boyuan.zh...@amd.com wrote: From: Boyuan Zhang Enable vcn jpeg decode for raven. Signed-off-by: Boyuan Zhang --- src/gallium/drivers/radeonsi/si_get.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gallium/drivers/radeonsi

Re: [Mesa-dev] [PATCH 12/13] winsys/amdgpu: add vcn jpeg cs support

2018-08-16 Thread Leo Liu
0x6000); /* nop packet */ + radeon_emit(rcs, 0x); + } + break; case RING_VCN_DEC: while (rcs->current.cdw & 15) radeon_emit(rcs, 0x81ff); /* nop packet */ The patch is: Reviewed-by: Leo Liu BTW, if you got chance, please fix the NOP for V

Re: [Mesa-dev] [PATCH 11/13] amd/common: add vcn jpeg ip info query

2018-08-16 Thread Leo Liu
Reviewed-by: Leo Liu On 08/16/2018 12:06 PM, boyuan.zh...@amd.com wrote: From: Boyuan Zhang Signed-off-by: Boyuan Zhang --- src/amd/common/ac_gpu_info.c | 14 -- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/amd/common/ac_gpu_info.c b/src/amd/common

Re: [Mesa-dev] [PATCH 10/13] radeon/vcn: implement jpeg target buffer cmd

2018-08-16 Thread Leo Liu
Patch 9-10: Acked-by: Leo Liu On 08/16/2018 12:06 PM, boyuan.zh...@amd.com wrote: From: Boyuan Zhang Implement jpeg target buffer cmd by programming registers directly, since there is no firmware for VCN Jpeg decode. Signed-off-by: Boyuan Zhang --- src/gallium/drivers/radeon

Re: [Mesa-dev] [PATCH 08/13] radeon/uvd: remove get mjpeg slice header

2018-08-16 Thread Leo Liu
Reviewed-by: Leo Liu On 08/16/2018 12:06 PM, boyuan.zh...@amd.com wrote: From: Boyuan Zhang Move the previous get_mjpeg_slice_header function from radeon/vcn to st/va. Signed-off-by: Boyuan Zhang --- src/gallium/drivers/radeon/radeon_uvd.c | 136 1 file

Re: [Mesa-dev] [PATCH 07/13] st/va: get mjpeg slice header

2018-08-16 Thread Leo Liu
On 08/16/2018 12:06 PM, boyuan.zh...@amd.com wrote: From: Boyuan Zhang Move the previous get_mjpeg_slice_header function from radeon/vcn to st/va. Signed-off-by: Boyuan Zhang --- src/gallium/state_trackers/va/picture.c | 3 + src/gallium/state_trackers/va/picture_mjpeg.c | 132

Re: [Mesa-dev] [PATCH 06/13] radeon/vcn: add jpeg decode implementation

2018-08-16 Thread Leo Liu
On 08/16/2018 12:06 PM, boyuan.zh...@amd.com wrote: From: Boyuan Zhang Add a new file to handle VCN Jpeg decode specific functions. Use Jpeg specific cmd sending function in end_frame call. Signed-off-by: Boyuan Zhang --- src/gallium/drivers/radeon/Makefile.sources | 1 +

Re: [Mesa-dev] [PATCH 05/13] radeon/vcn: separate send cmd call from end frame

2018-08-16 Thread Leo Liu
Patch 1-5: Reviewed-by: Leo Liu On 08/16/2018 12:06 PM, boyuan.zh...@amd.com wrote: From: Boyuan Zhang Use function pointer for sending cmd in end_frame call. By doing this, we can assign different cmd sending logics for Jpeg decode later. Signed-off-by: Boyuan Zhang --- src/gallium

Re: [Mesa-dev] [PATCH 04/10] radeon/vcn: implement jpeg decode functions

2018-08-07 Thread Leo Liu
On 08/02/2018 03:44 PM, boyuan.zh...@amd.com wrote: From: Boyuan Zhang Signed-off-by: Boyuan Zhang --- src/gallium/drivers/radeon/radeon_vcn_jpeg.c | 286 ++- 1 file changed, 281 insertions(+), 5 deletions(-) diff --git

Re: [Mesa-dev] [PATCH 03/10] radeon/vcn: add jpeg decoder creation

2018-08-07 Thread Leo Liu
On 08/02/2018 03:44 PM, boyuan.zh...@amd.com wrote: From: Boyuan Zhang Signed-off-by: Boyuan Zhang --- src/gallium/drivers/radeon/Makefile.sources | 1 + src/gallium/drivers/radeon/meson.build | 1 + src/gallium/drivers/radeon/radeon_vcn_jpeg.c | 212

Re: [Mesa-dev] [PATCH 4/4] winsys/amdgpu: fix VDPAU interop by having one amdgpu_winsys_bo per BO

2018-07-18 Thread Leo Liu
The series are Acked-by: Leo Liu On 07/16/2018 06:03 PM, Leo Liu wrote: On 2018-07-16 04:01 PM, Marek Olšák wrote: From: Marek Olšák Dependencies between rings are inserted correctly if a buffer is represented by only one unique amdgpu_winsys_bo instance. Use a hash table keyed

Re: [Mesa-dev] [PATCH 4/4] winsys/amdgpu: fix VDPAU interop by having one amdgpu_winsys_bo per BO

2018-07-16 Thread Leo Liu
. The series are: Tested-by: Leo Liu v2: return offset and stride properly --- src/gallium/winsys/amdgpu/drm/amdgpu_bo.c | 36 --- src/gallium/winsys/amdgpu/drm/amdgpu_winsys.c | 5 +++ src/gallium/winsys/amdgpu/drm/amdgpu_winsys.h | 5 +++ 3 files changed, 41 insertions

Re: [Mesa-dev] [PATCH] radeon/vce: add firmware support for ver 53 and up

2018-05-09 Thread Leo Liu
Reviewed-by: Leo Liu <leo@amd.com> On 05/08/2018 02:35 PM, boyuan.zh...@amd.com wrote: From: Boyuan Zhang <boyuan.zh...@amd.com> All vce firmwares with major version greater than or equal to 53 are supported Signed-off-by: Boyuan Zhang <boyuan.zh...@amd.com> --- s

Re: [Mesa-dev] [PATCH] st/vdpau: allow progressive video surface with interop

2018-05-07 Thread Leo Liu
On 05/07/2018 09:14 AM, Christian König wrote: Am 07.05.2018 um 15:03 schrieb Leo Liu: On 05/07/2018 05:10 AM, Christian König wrote: Am 02.05.2018 um 16:51 schrieb Leo Liu: mpv now interop with video surface instead of output surface previously, so it fails with "vlVdpVideoSurfaceD

Re: [Mesa-dev] [PATCH] st/vdpau: allow progressive video surface with interop

2018-05-07 Thread Leo Liu
On 05/07/2018 05:10 AM, Christian König wrote: Am 02.05.2018 um 16:51 schrieb Leo Liu: mpv now interop with video surface instead of output surface previously, so it fails with "vlVdpVideoSurfaceDMABuf", this's fine for Mesa GL, since the code path will

[Mesa-dev] [PATCH] st/vdpau: allow progressive video surface with interop

2018-05-02 Thread Leo Liu
mpv now interop with video surface instead of output surface previously, so it fails with "vlVdpVideoSurfaceDMABuf", this's fine for Mesa GL, since the code path will fall back to "vlVdpVideoSurfaceGallium", but this's not the case for others Signed-off-by: Leo Liu <leo

Re: [Mesa-dev] [Mesa-stable] [PATCH] st/omx/enc: fix blit setup for YUV LoadImage

2018-04-30 Thread Leo Liu
On 04/30/2018 12:47 PM, Juan A. Suarez Romero wrote: On Fri, 2018-04-27 at 08:32 -0400, Leo Liu wrote: The blit here involves scaling since it's copying from I8 format to R8G8 format. Half of source will be filtered out with PIPE_TEX_FILTER_NEAREST instruction, it looks that GPU always uses

[Mesa-dev] [PATCH] st/omx/enc: fix blit setup for YUV LoadImage

2018-04-27 Thread Leo Liu
The blit here involves scaling since it's copying from I8 format to R8G8 format. Half of source will be filtered out with PIPE_TEX_FILTER_NEAREST instruction, it looks that GPU always uses the second half as source. Currently we use "1" as the start point of x for R, then causing 1 source pixel of

Re: [Mesa-dev] [PATCH] st/va: Fix typos

2018-04-26 Thread Leo Liu
Hi Drew, This patch along with your other patch are pushed. Thanks for the help. Leo On 04/25/2018 11:55 AM, Leo Liu wrote: Reviewed-by: Leo Liu <leo@amd.com> On 2018-04-25 11:32 AM, Drew Davenport wrote: s/attibute/attribute/ s/suface/surface/ ---   src/gallium/state_track

Re: [Mesa-dev] [PATCH] st/va: Fix typos

2018-04-25 Thread Leo Liu
Reviewed-by: Leo Liu <leo@amd.com> On 2018-04-25 11:32 AM, Drew Davenport wrote: s/attibute/attribute/ s/suface/surface/ --- src/gallium/state_trackers/va/surface.c | 48 - 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/src/gallium/state_tr

Re: [Mesa-dev] [PATCH] st/va: Fix potential buffer overread

2018-04-24 Thread Leo Liu
On 2018-04-24 07:01 PM, Drew Davenport wrote: VASurfaceAttribExternalBuffers.pitches is indexed by plane. Current implementation only supports single plane layout. Reviewed-by: Leo Liu <leo@amd.com> --- src/gallium/state_trackers/va/surface.c | 2 +- 1 file changed, 1 insertion

Re: [Mesa-dev] [PATCH] radeon/vcn: fix mpeg4 msg buffer settings

2018-04-24 Thread Leo Liu
Reviewed-by: Leo Liu <leo@amd.com> And Cc Mesa-stable as well. On 2018-04-24 04:49 PM, boyuan.zh...@amd.com wrote: From: Boyuan Zhang <boyuan.zh...@amd.com> Previous bit-fields assignments are incorrect and will result certain mpeg4 decode failed due to wrong flag values

[Mesa-dev] [PATCH 18/22] st/va: add VP9 config to enable profile0

2018-04-09 Thread Leo Liu
Signed-off-by: Leo Liu <leo@amd.com> --- src/gallium/state_trackers/va/config.c | 2 +- src/gallium/state_trackers/va/va_private.h | 4 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/gallium/state_trackers/va/config.c b/src/gallium/state_trackers/va/config.c

[Mesa-dev] [PATCH 21/22] radeonsi: use PIPE_FORMAT_P016 format for VP9 profile2

2018-04-09 Thread Leo Liu
Signed-off-by: Leo Liu <leo@amd.com> --- src/gallium/drivers/radeonsi/si_get.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/radeonsi/si_get.c b/src/gallium/drivers/radeonsi/si_get.c index 4483ca766d..c8aacfe182 100644 --- a/src/gallium/d

[Mesa-dev] [PATCH 12/22] radeonsi: cap VP9 support to progressive buffer

2018-04-09 Thread Leo Liu
Signed-off-by: Leo Liu <leo@amd.com> --- src/gallium/drivers/radeonsi/si_get.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gallium/drivers/radeonsi/si_get.c b/src/gallium/drivers/radeonsi/si_get.c index 761ca6f4cd..4483ca766d 100644 --- a/src/gallium/drivers/radeonsi/si

[Mesa-dev] [PATCH 14/22] st/va: add handles for VP9 buffers

2018-04-09 Thread Leo Liu
Signed-off-by: Leo Liu <leo@amd.com> --- src/gallium/state_trackers/va/Makefile.sources | 1 + src/gallium/state_trackers/va/meson.build | 4 +-- src/gallium/state_trackers/va/picture.c| 11 src/gallium/state_trackers/va/picture_vp9.c

[Mesa-dev] [PATCH 22/22] st/va: add VP9 config to enable profile2

2018-04-09 Thread Leo Liu
Signed-off-by: Leo Liu <leo@amd.com> --- src/gallium/state_trackers/va/config.c | 2 +- src/gallium/state_trackers/va/va_private.h | 4 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/gallium/state_trackers/va/config.c b/src/gallium/state_trackers/va/config.c

[Mesa-dev] [PATCH 16/22] st/va: add slice parameter handling for VP9

2018-04-09 Thread Leo Liu
Signed-off-by: Leo Liu <leo@amd.com> --- src/gallium/state_trackers/va/picture_vp9.c | 25 - 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/src/gallium/state_trackers/va/picture_vp9.c b/src/gallium/state_trackers/va/picture_vp9.c index d333

[Mesa-dev] [PATCH 15/22] st/va: add picture parameter handling for VP9

2018-04-09 Thread Leo Liu
Signed-off-by: Leo Liu <leo@amd.com> --- src/gallium/state_trackers/va/picture_vp9.c | 52 - 1 file changed, 51 insertions(+), 1 deletion(-) diff --git a/src/gallium/state_trackers/va/picture_vp9.c b/src/gallium/state_trackers/va/picture_vp9.c index 6235

[Mesa-dev] [PATCH 19/22] vl: add VP9 profile2 support

2018-04-09 Thread Leo Liu
Signed-off-by: Leo Liu <leo@amd.com> --- src/gallium/auxiliary/util/u_video.h | 1 + src/gallium/include/pipe/p_video_enums.h | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gallium/auxiliary/util/u_video.h b/src/gallium/auxiliary/util/u_video.h

[Mesa-dev] [PATCH 20/22] radeon/vcn: add VP9 profile2 support

2018-04-09 Thread Leo Liu
Signed-off-by: Leo Liu <leo@amd.com> --- src/gallium/drivers/radeon/radeon_vcn_dec.c | 16 1 file changed, 16 insertions(+) diff --git a/src/gallium/drivers/radeon/radeon_vcn_dec.c b/src/gallium/drivers/radeon/radeon_vcn_dec.c index b4cfba1713..046b371384 100644 ---

[Mesa-dev] [PATCH 17/22] st/va: parse VP9 uncompressed frame header

2018-04-09 Thread Leo Liu
To get some of UVD required parameters. Signed-off-by: Leo Liu <leo@amd.com> --- src/gallium/state_trackers/va/picture.c | 2 +- src/gallium/state_trackers/va/picture_vp9.c | 237 src/gallium/state_trackers/va/va_private.h | 1 + 3 files change

[Mesa-dev] [PATCH 13/22] st/va: add VP9 picture to context

2018-04-09 Thread Leo Liu
Signed-off-by: Leo Liu <leo@amd.com> --- src/gallium/state_trackers/va/context.c| 4 src/gallium/state_trackers/va/va_private.h | 1 + 2 files changed, 5 insertions(+) diff --git a/src/gallium/state_trackers/va/context.c b/src/gallium/state_trackers/va/context.c index 836a

[Mesa-dev] [PATCH 08/22] radeon/vcn: fill probability table to prob buffers

2018-04-09 Thread Leo Liu
Signed-off-by: Leo Liu <leo@amd.com> --- src/gallium/drivers/radeon/radeon_vcn_dec.c | 38 + 1 file changed, 38 insertions(+) diff --git a/src/gallium/drivers/radeon/radeon_vcn_dec.c b/src/gallium/drivers/radeon/radeon_vcn_dec.c index b29ba37b3c..bcfd

[Mesa-dev] [PATCH 09/22] radeon/vcn: get VP9 msg buffer

2018-04-09 Thread Leo Liu
Signed-off-by: Leo Liu <leo@amd.com> --- src/gallium/drivers/radeon/radeon_vcn_dec.c | 176 +++- src/gallium/drivers/radeon/radeon_vcn_dec.h | 1 + 2 files changed, 176 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/radeon/radeon_vcn_dec.c

[Mesa-dev] [PATCH 10/22] radeon/vcn: add VP9 context buffer

2018-04-09 Thread Leo Liu
Signed-off-by: Leo Liu <leo@amd.com> --- src/gallium/drivers/radeon/radeon_vcn_dec.c | 26 ++ 1 file changed, 26 insertions(+) diff --git a/src/gallium/drivers/radeon/radeon_vcn_dec.c b/src/gallium/drivers/radeon/radeon_vcn_dec.c index 170cc3fa41..b4cfba1713

[Mesa-dev] [PATCH 11/22] radeonsi: cap VP9 support to Raven

2018-04-09 Thread Leo Liu
Signed-off-by: Leo Liu <leo@amd.com> --- src/gallium/drivers/radeonsi/si_get.c | 4 1 file changed, 4 insertions(+) diff --git a/src/gallium/drivers/radeonsi/si_get.c b/src/gallium/drivers/radeonsi/si_get.c index 85cfb11338..761ca6f4cd 100644 --- a/src/gallium/drivers/radeonsi/si

[Mesa-dev] [PATCH 07/22] radeon/vcn: add VP9 message buffer interface

2018-04-09 Thread Leo Liu
Signed-off-by: Leo Liu <leo@amd.com> --- src/gallium/drivers/radeon/radeon_vcn_dec.h | 134 1 file changed, 134 insertions(+) diff --git a/src/gallium/drivers/radeon/radeon_vcn_dec.h b/src/gallium/drivers/radeon/radeon_vcn_dec.h index 0a8c343e58..3ae0

[Mesa-dev] [PATCH 05/22] vl: add VP9 probability tables

2018-04-09 Thread Leo Liu
Signed-off-by: Leo Liu <leo@amd.com> --- src/gallium/auxiliary/Makefile.sources| 3 +- src/gallium/auxiliary/meson.build | 1 + src/gallium/auxiliary/vl/vl_probs_table.h | 585 ++ 3 files changed, 588 insertions(+), 1 deletion(-) create mode

[Mesa-dev] [PATCH 06/22] radeon/vcn: add VP9 prob table buffer

2018-04-09 Thread Leo Liu
Signed-off-by: Leo Liu <leo@amd.com> --- src/gallium/drivers/radeon/radeon_vcn_dec.c | 52 +++-- src/gallium/drivers/radeon/radeon_vcn_dec.h | 3 ++ 2 files changed, 37 insertions(+), 18 deletions(-) diff --git a/src/gallium/drivers/radeon/radeon_vcn_dec.c

[Mesa-dev] [PATCH 00/22] VP9 support

2018-04-09 Thread Leo Liu
This series will enable VP9 support for profile0 and profile2 on VCN. It will support players with VP9 VA-API enabled. Leo Liu (22): vl: add VP9 profile0 and format vl: add VP9 picture description radeon/vcn: add VP9 stream type for decoder radeon/vcn: add VP9 dpb buffer size vl: add

[Mesa-dev] [PATCH 04/22] radeon/vcn: add VP9 dpb buffer size

2018-04-09 Thread Leo Liu
The current FW has restricted the size to the worse case, and the new dynamic dpb buffer support is on the way from firmware side, we will change accordingly. Signed-off-by: Leo Liu <leo@amd.com> --- src/gallium/drivers/radeon/radeon_vcn_dec.c | 6 ++ 1 file changed, 6 inse

[Mesa-dev] [PATCH 02/22] vl: add VP9 picture description

2018-04-09 Thread Leo Liu
Signed-off-by: Leo Liu <leo@amd.com> --- src/gallium/include/pipe/p_video_state.h | 94 1 file changed, 94 insertions(+) diff --git a/src/gallium/include/pipe/p_video_state.h b/src/gallium/include/pipe/p_video_state.h index 2533ba4fab..05855a36e2

[Mesa-dev] [PATCH 01/22] vl: add VP9 profile0 and format

2018-04-09 Thread Leo Liu
Signed-off-by: Leo Liu <leo@amd.com> --- src/gallium/auxiliary/util/u_video.h | 3 +++ src/gallium/include/pipe/p_video_enums.h | 6 -- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/gallium/auxiliary/util/u_video.h b/src/gallium/auxiliary/util/u_video.h

[Mesa-dev] [PATCH 03/22] radeon/vcn: add VP9 stream type for decoder

2018-04-09 Thread Leo Liu
Signed-off-by: Leo Liu <leo@amd.com> --- src/gallium/drivers/radeon/radeon_vcn_dec.c | 3 +++ src/gallium/drivers/radeon/radeon_vcn_dec.h | 1 + 2 files changed, 4 insertions(+) diff --git a/src/gallium/drivers/radeon/radeon_vcn_dec.c b/src/gallium/drivers/radeon/radeon_vcn_dec.c

Re: [Mesa-dev] [Mesa-stable] [PATCH] radeon/vce: move feedback command inside of destroy function

2018-04-04 Thread Leo Liu
On 04/04/2018 12:40 PM, Mark Janes wrote: Leo Liu <leo@amd.com> writes: On the CI family, firmware requires the destory command have to be the last command in the IB, moving feedback command after destroy is causing issues on CI cards, so we have to keep the previous logic that

Re: [Mesa-dev] [PATCH] radeon/vce: move feedback command inside of destroy function

2018-03-21 Thread Leo Liu
-by: Christian König <christian.koe...@amd.com>. Regards, Christian. Am 21.03.2018 um 15:22 schrieb Leo Liu: Ping. On 03/19/2018 01:11 PM, Leo Liu wrote: On the CI family, firmware requires the destory command have to be the last command in the IB, moving feedback command after d

Re: [Mesa-dev] [PATCH] radeon/vce: move feedback command inside of destroy function

2018-03-21 Thread Leo Liu
Ping. On 03/19/2018 01:11 PM, Leo Liu wrote: On the CI family, firmware requires the destory command have to be the last command in the IB, moving feedback command after destroy is causing issues on CI cards, so we have to keep the previous logic that moves destroy back to the last command

[Mesa-dev] [PATCH] radeon/vce: move feedback command inside of destroy function

2018-03-19 Thread Leo Liu
, with the newer family like Vega10, feedback command have to be included inside of the task info command along with destroy command. Fixes: 6d74cb25("radeon/vce: move destroy command before feedback command") Signed-off-by: Leo Liu <leo@amd.com> Cc: mesa-sta...@lists.freedesktop.org

Re: [Mesa-dev] [PATCH] radeon/vcn: use enc profile instead of pic profile

2018-03-02 Thread Leo Liu
agio, add Cc tag, and resend. With that, the patch is Reviewed-by: Leo Liu <leo@amd.com> ---  src/gallium/state_trackers/omx_bellagio/vid_enc.c | 2 ++  1 file changed, 2 insertions(+) diff --git a/src/gallium/state_trackers/omx_bellagio/vid_enc.c b/src/gallium/state_trackers/omx_bellagi

Re: [Mesa-dev] [PATCH] radeon/vcn: use enc profile instead of pic profile

2018-02-28 Thread Leo Liu
Boyuan, please also make sure whether this patch along with other one are needed to Cc stable or not. Regards, Leo On 02/28/2018 03:03 AM, Christian König wrote: Am 28.02.2018 um 00:56 schrieb boyuan.zh...@amd.com: From: Boyuan Zhang Picture profile might not be set

Re: [Mesa-dev] [PATCH v2 6/8] radeon/uvd:add uvd hevc enc files in Makefile list

2018-02-07 Thread Leo Liu
On 02/06/2018 03:05 PM, James Zhu wrote: Signed-off-by: James Zhu --- src/gallium/drivers/radeon/Makefile.sources | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gallium/drivers/radeon/Makefile.sources b/src/gallium/drivers/radeon/Makefile.sources index

Re: [Mesa-dev] [PATCH 7/8] drivers/radeonsi:create uvd hevc enc entry

2018-02-06 Thread Leo Liu
General comments: 1. The patch title: please refer to previous commits under the directory, https://cgit.freedesktop.org/mesa/mesa/log/src/gallium/drivers/radeon Normally either "radeon/uvd" or "radeonsi" Applies to changes on other directory. 2. Code style and indentation refer to:

Re: [Mesa-dev] [PATCH 2/6] st/omx/tizonia: Add --enable-omx-tizonia flag and build files

2018-01-17 Thread Leo Liu
On 01/17/2018 11:19 AM, Gurkirpal Singh wrote: On Wed, Jan 17, 2018 at 8:22 PM, Leo Liu <leo@amd.com <mailto:leo@amd.com>> wrote: Hi Gurkirpal, Do we have patch 1 in the 6 patch set, or it hasn't arrived. We do have a patch 1 which has been held for moderati

Re: [Mesa-dev] [PATCH 2/6] st/omx/tizonia: Add --enable-omx-tizonia flag and build files

2018-01-17 Thread Leo Liu
Acked-by: Leo Liu <leo@amd.com> Reviewed-by: Julien Isorce <julien.iso...@gmail.com> --- configure.ac | 47 +- src/gallium/Makefile.am| 4 ++ src/gallium/state_trackers/omx/Makefile.am

Re: [Mesa-dev] [PATCH 1/7] gallium: Refactor out vl_put_screen and vl_get_screen

2018-01-16 Thread Leo Liu
On 01/16/2018 04:48 AM, Christian König wrote: Am 16.01.2018 um 10:40 schrieb Gurkirpal Singh: On Mon, Jan 15, 2018 at 9:24 PM, Leo Liu <leo@amd.com <mailto:leo@amd.com>> wrote: Hi lists, If there is no more questions, and no objection, I would like t

Re: [Mesa-dev] [PATCH 1/7] gallium: Refactor out vl_put_screen and vl_get_screen

2018-01-15 Thread Leo Liu
Hi lists, If there is no more questions, and no objection, I would like to commit this new OMX st. to upstream. @Gurkipal, If you can send me or lists your rebased patches set for committing, that would be appreciated. Leo On 12/04/2017 08:58 AM, Leo Liu wrote: On 12/03/2017 10:04

Re: [Mesa-dev] Update radeon/uvd and radeon/vcn mpeg2 quantiser matrices only when required and modify the st/va accordingly

2018-01-12 Thread Leo Liu
On 01/12/2018 04:18 AM, Christian König wrote: A bit text in the actual mail would have been nice. E.g. that this is to fix VA-API issues with GStreamer and MPEG2. Anyway patches are Reviewed-by: Christian König . Please use `git send-email` instead of attachment.

[Mesa-dev] [PATCH 2/2] st/va: add break for MPEG4 data buffer handling case

2018-01-12 Thread Leo Liu
Signed-off-by: Leo Liu <leo@amd.com> --- src/gallium/state_trackers/va/picture.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/state_trackers/va/picture.c b/src/gallium/state_trackers/va/picture.c index 9adbe48f43..67177c783a 100644 --- a/src/gallium/state_track

[Mesa-dev] [PATCH 1/2] st/va: remove TODO line for JPEG data buffer handling

2018-01-12 Thread Leo Liu
Nothing to do Signed-off-by: Leo Liu <leo@amd.com> --- src/gallium/state_trackers/va/picture.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/gallium/state_trackers/va/picture.c b/src/gallium/state_trackers/va/picture.c index 895157375a..9adbe48f43 100644 --- a/src/g

Re: [Mesa-dev] [PATCH 2/4] radeon/vce: determine idr by pic type

2017-12-14 Thread Leo Liu
On 12/13/2017 01:59 PM, boyuan.zh...@amd.com wrote: From: Boyuan Zhang <boyuan.zh...@amd.com> Signed-off-by: Boyuan Zhang <boyuan.zh...@amd.com> Reviewed-by: Leo Liu <leo@amd.com> --- src/gallium/drivers/radeon/radeon_vce_52.c | 2 +- 1 file changed, 1 insert

[Mesa-dev] [PATCH] radeon/vce: move destroy command before feedback command

2017-12-07 Thread Leo Liu
when running ends at encode application. The fix is also verified on VCE physical mode card. Signed-off-by: Leo Liu <leo@amd.com> Cc: mesa-sta...@lists.freedesktop.org --- src/gallium/drivers/radeon/radeon_vce.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/g

[Mesa-dev] [PATCH 2/3] st/va: use designated initialisers for VA driver functions

2017-12-04 Thread Leo Liu
Signed-off-by: Leo Liu <leo@amd.com> --- src/gallium/state_trackers/va/context.c | 99 - 1 file changed, 49 insertions(+), 50 deletions(-) diff --git a/src/gallium/state_trackers/va/context.c b/src/gallium/state_trackers/va/context.c index 0ad4

[Mesa-dev] [PATCH 3/3] st/va: Enable vaExportSurfaceHandle()

2017-12-04 Thread Leo Liu
From: Mark Thompson <s...@jkqxz.net> It will be present from libva 2.1 (VAAPI 1.1.0 or higher). v2: rebase to previous patches(Leo) Signed-off-by: Mark Thompson <s...@jkqxz.net> Signed-off-by: Leo Liu <leo@amd.com> --- src/gallium/state_trackers/va/context.c |

[Mesa-dev] [PATCH 1/3] st/va: rename vlVaSubpictureImage to vlVaSetSubpictureImage

2017-12-04 Thread Leo Liu
Following VA spec Signed-off-by: Leo Liu <leo@amd.com> --- src/gallium/state_trackers/va/context.c| 2 +- src/gallium/state_trackers/va/subpicture.c | 2 +- src/gallium/state_trackers/va/va_private.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/g

Re: [Mesa-dev] Please implement the vaapi-egl for vaapi hardware decoding, vdpau can't handle HEVC 10bit video.

2017-12-04 Thread Leo Liu
On 12/04/2017 12:47 PM, Emil Velikov wrote: On 4 December 2017 at 16:33, Leo Liu <leo@amd.com> wrote: On 12/04/2017 04:32 AM, Emil Velikov wrote: On 2 December 2017 at 15:26, Julian Lai <s9209122...@gmail.com> wrote: Since the crappy vaapi-glx was dropped off by mp

Re: [Mesa-dev] Please implement the vaapi-egl for vaapi hardware decoding, vdpau can't handle HEVC 10bit video.

2017-12-04 Thread Leo Liu
On 12/04/2017 04:32 AM, Emil Velikov wrote: On 2 December 2017 at 15:26, Julian Lai wrote: Since the crappy vaapi-glx was dropped off by mpv-git player, there is no way to play HEVC 10bit video with zero-copy hardware acceleration, vdpau can't do it either, please

Re: [Mesa-dev] [PATCH 1/7] gallium: Refactor out vl_put_screen and vl_get_screen

2017-12-04 Thread Leo Liu
them for you. Leo On Thu, Nov 30, 2017 at 7:35 PM, Leo Liu <leo@amd.com <mailto:leo@amd.com>> wrote: On 11/30/2017 06:22 AM, Julien Isorce wrote: Hi Gurkirpal, > Before refactoring process both the state trackers were in independent directories. &

Re: [Mesa-dev] [PATCH] radeon/vcn: determine idr by pic type

2017-11-30 Thread Leo Liu
Boyuan Zhang <boyuan.zh...@amd.com> Reviewed-by: Leo Liu <leo@amd.com> --- src/gallium/drivers/radeon/radeon_vcn_enc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/radeon/radeon_vcn_enc.c b/src/gallium/drivers/radeon/radeon_vcn_e

Re: [Mesa-dev] [PATCH 1/7] gallium: Refactor out vl_put_screen and vl_get_screen

2017-11-30 Thread Leo Liu
bellagio and st/omx/tizonia and common code in st/omx. Yes. Please move them back to st/omx. With that fixed, the series are: Acked-by: Leo Liu <leo@amd.com> Thanks for the work! Leo Another reason is that the env var "OMX_RENDER_NODE" mentions OMX. Thx! Julien

[Mesa-dev] [PATCH] radeon/video: add gfx9 offsets when rejoin the video surface

2017-10-25 Thread Leo Liu
For CPU access. Signed-off-by: Leo Liu <leo@amd.com> Cc: mesa-sta...@lists.freedesktop.org --- src/gallium/drivers/radeon/radeon_video.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/radeon/radeon_video.c b/src/gallium/drivers/

Re: [Mesa-dev] [PATCH] st/va: Disable vaExportSurfaceHandle()

2017-10-16 Thread Leo Liu
On 10/16/2017 02:43 AM, Christian König wrote: Am 15.10.2017 um 22:11 schrieb Mark Thompson: This is not in libva 2.0, so it shouldn't be enabled yet. Signed-off-by: Mark Thompson <s...@jkqxz.net> --- On 15/10/17 20:06, Leo Liu wrote: On 2017-10-15 07:23 AM, Mark Thompson

Re: [Mesa-dev] [PATCH 1/2] Revert "st/va: Implement vaExportSurfaceHandle()"

2017-10-15 Thread Leo Liu
On 2017-10-15 07:23 AM, Mark Thompson wrote: This reverts commit c4ed39f85b1ebd062eaa51880fcc79cfbcb4e5c3. Can we just leave the code there, and gated by "#if 0" for now? so it would be easier for testing purpose. Thanks, Leo --- Apparently the feature set of libva 2.0 was finalised

Re: [Mesa-dev] [PATCH 2/2] st/va: Implement vaExportSurfaceHandle()

2017-10-10 Thread Leo Liu
On 10/07/2017 01:22 PM, Mark Thompson wrote: On 07/10/17 15:23, Leo Liu wrote: On 2017-10-01 01:40 PM, Mark Thompson wrote: This is a new interface in libva2 to support wider use-cases of passing surfaces to external APIs. In particular, this allows export of NV12 and P010 surfaces. v2

Re: [Mesa-dev] [PATCH 2/2] st/va: Implement vaExportSurfaceHandle()

2017-10-07 Thread Leo Liu
destination rectangle to match source when converting (Leo). Add guards to allow building with libva1. Signed-off-by: Mark Thompson <s...@jkqxz.net> This patch is Acked-and-Tested-by: Leo Liu< leo@amd.com>, also pushed. Regards, Leo --- src/gallium/state_trackers/va/contex

[Mesa-dev] [PATCH 3/3] st/va: add RGB support to vlVaPutSurface

2017-10-01 Thread Leo Liu
--- src/gallium/state_trackers/va/surface.c | 14 +- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/gallium/state_trackers/va/surface.c b/src/gallium/state_trackers/va/surface.c index 643cdcd54a..4c2f4b5452 100644 --- a/src/gallium/state_trackers/va/surface.c +++

[Mesa-dev] [PATCH 2/3] st/va: don't re-allocate interlaced buffer with pakced format

2017-10-01 Thread Leo Liu
It caused corruption, when vlVaPutImage putting raw data to the fields v2: add RGB formats, since it got upload from here too. Cc: mesa-sta...@lists.freedesktop.org Cc: Andy Furniss --- src/gallium/state_trackers/va/image.c | 10 ++ 1 file changed, 6 insertions(+),

Re: [Mesa-dev] [PATCH 1/2] st/va: don't re-allocate interlaced buffer with pakced YUV format

2017-10-01 Thread Leo Liu
because there is no handling RGB case from output buffer, vaPutSurface only handles YUV to RGB. But it should be straightforward to add on. Regards, Leo Andy Furniss wrote: Tested-by: Andy Furniss <adf.li...@gmail.com> Leo Liu wrote: It caused corruption, when vlVaPutImage putti

[Mesa-dev] [PATCH 1/2] st/va: don't re-allocate interlaced buffer with pakced YUV format

2017-09-30 Thread Leo Liu
It caused corruption, when vlVaPutImage putting YUV to the fields Cc: mesa-sta...@lists.freedesktop.org Cc: Andy Furniss --- src/gallium/state_trackers/va/image.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git

  1   2   3   4   5   >