[Mesa-dev] [PATCH] radeon: Fix mjpeg issue for ARCTURUS

2019-09-04 Thread Zhu, James
ARCTURUS mjpeg is using direct register access. Signed-off-by: James Zhu Reviewed-by: Boyuan Zhang --- src/gallium/drivers/radeon/radeon_vcn_dec.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/drivers/radeon/radeon_vcn_dec.c b/src/gallium/drivers/radeon/radeon_vcn_dec.c

[Mesa-dev] [PATCH] gallium/drivers/radeonsi: Add si_bind_sampler_states unbind support

2019-04-06 Thread Zhu, James
commit a613607dc3dab2b43884a4e5891aa5939cdcfbe0 will cause segfault during unbind sampler state. This patch will fix the issue. Signed-off-by: James Zhu --- src/gallium/drivers/radeonsi/si_descriptors.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git

[Mesa-dev] [PATCH v2 3/3] gallium/auxiliary/vl: Add barrier/unbind after compute shader launch.

2019-04-03 Thread Zhu, James
Add memory barrier sync for multiple launch cases, and unbind completed resources after launch. Signed-off-by: James Zhu --- src/gallium/auxiliary/vl/vl_compositor_cs.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/src/gallium/auxiliary/vl/vl_compositor_cs.c

[Mesa-dev] [PATCH 3/3] gallium/auxiliary/vl: Add barrier/unbind after compute shader launch.

2019-04-02 Thread Zhu, James
Add memory barrier sync and unbind resource after launch will enhance the robustness. Signed-off-by: James Zhu --- src/gallium/auxiliary/vl/vl_compositor_cs.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/src/gallium/auxiliary/vl/vl_compositor_cs.c

[Mesa-dev] [PATCH 2/3] gallium/auxiliary/vl: Fixed blank issue with compute shader

2019-04-02 Thread Zhu, James
Multiple init buffer within one open instance will cause blank issue. Updating viewport per frame will fix this issue. Signed-off-by: James Zhu Tested-by: Bruno Milreu --- src/gallium/auxiliary/vl/vl_compositor_cs.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git

[Mesa-dev] [PATCH 1/3] gallium/auxiliary/vl: Fixed blur issue with weave compute shader

2019-04-02 Thread Zhu, James
Correct wrong interpolatation with top/bottom row which caused blur issue. Signed-off-by: James Zhu Tested-by: Bruno Milreu --- src/gallium/auxiliary/vl/vl_compositor_cs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/auxiliary/vl/vl_compositor_cs.c

[Mesa-dev] [PATCH 0/3] Fix Bugzilla Bug 109646 - jagginess with video play

2019-03-12 Thread Zhu, James
Bug 109646 - New video compositor compute shader render glitches mpv Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=109646 Fixed Problem 2,3:Jaggines caused by interpolation issue with weave de-interlace James Zhu (3): gallium/auxiliary/vl: Increase shader_params size

[Mesa-dev] [PATCH 2/3] gallium/auxiliary/vl: Change grid setting

2019-03-12 Thread Zhu, James
Using draw area for grid setting instead of destination buffer size. Signed-off-by: James Zhu Tested-by: Bruno Milreu --- src/gallium/auxiliary/vl/vl_compositor_cs.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/gallium/auxiliary/vl/vl_compositor_cs.c

[Mesa-dev] [PATCH 3/3] gallium/auxiliary/vl: Change weave compute shader implementation

2019-03-12 Thread Zhu, James
Use 2D_ARRARY instead of RECT to fetch texels for weave compute shader. Problem 2,3: Fixed interpolation issue with weave de-interlace Fixes: 9364d66cb7f7 (Add video compositor compute shader render) Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=109646 Signed-off-by: James Zhu

[Mesa-dev] [PATCH 1/3] gallium/auxiliary/vl: Increase shader_params size

2019-03-12 Thread Zhu, James
Increase shader_params size to pass sampler data to compute shader during weave de-interlace. Signed-off-by: James Zhu Tested-by: Bruno Milreu --- src/gallium/auxiliary/vl/vl_compositor.c| 2 +- src/gallium/auxiliary/vl/vl_compositor_cs.c | 9 - 2 files changed, 9 insertions(+), 2

[Mesa-dev] [PATCH v3] gallium/auxiliary/vl: Fix transparent issue on compute shader with rgba

2019-02-15 Thread Zhu, James
Fixes: 9364d66cb7f7 (Add video compositor compute shader render) Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=109646 Problem 1,4: they are caused by imcomplete blend comute shader implementation. So Reverts rgba back to frament shader. Signed-off-by: James Zhu ---

[Mesa-dev] [PATCH v2] gallium/auxiliary/vl: Fix transparent issue on compute shader with rgba

2019-02-15 Thread Zhu, James
Bugzilla bug 109646 - New video compositor compute shader render glitches mpv https://bugs.freedesktop.org/show_bug.cgi?id=109646 Problem 1,4: they are caused by imcomplete blend comute shader implementation. So Reverts rgba back to frament shader from commit

[Mesa-dev] [PATCH] gallium/auxiliary/vl: Revert rgba back to frament shader

2019-02-15 Thread Zhu, James
Bugzilla Bug 109646 - New video compositor compute shader render glitches mpv Problem 1,4: they are caused by imcomplete blend compute shader implementation. So Revert rgba back to frament shader. Signed-off-by: James Zhu --- src/gallium/auxiliary/vl/vl_compositor.c | 17 +++-- 1

[Mesa-dev] [PATCH v6 5/5] gallium/auxiliary/vl: Add video compositor compute shader render

2019-02-12 Thread Zhu, James
Add compute shader initilization, assign and cleanup in vl_compositor API. Set video compositor compute shader render as default when pipe support it. Signed-off-by: James Zhu Reviewed-by: Christian König --- src/gallium/auxiliary/vl/vl_compositor.c | 106 +++

Re: [Mesa-dev] [PATCH v4 5/5] gallium/auxiliary/vl: Add video compositor compute shader render

2019-02-12 Thread Zhu, James
Thank you for the advice. James From: Marek Olšák Sent: Monday, February 11, 2019 4:56 PM To: Zhu, James Cc: mesa-dev@lists.freedesktop.org; jzh...@gmail.com Subject: Re: [Mesa-dev] [PATCH v4 5/5] gallium/auxiliary/vl: Add video compositor compute shader

[Mesa-dev] [PATCH v5 5/5] gallium/auxiliary/vl: Add video compositor compute shader render

2019-02-12 Thread Zhu, James
Add compute shader initilization, assign and cleanup in vl_compositor API. Set video compositor compute shader render as default when pipe support it. Signed-off-by: James Zhu Reviewed-by: Christian König --- src/gallium/auxiliary/vl/vl_compositor.c | 108 +++

[Mesa-dev] [PATCH v4 5/5] gallium/auxiliary/vl: Add video compositor compute shader render

2019-02-08 Thread Zhu, James
Add compute shader initilization, assign and cleanup in vl_compositor API. Set video compositor compute shader render as default when pipe support it. Signed-off-by: James Zhu Reviewed-by: Christian König --- src/gallium/auxiliary/vl/vl_compositor.c | 105 ++-

[Mesa-dev] [PATCH v4 5/5] gallium/auxiliary/vl: Add vl_compositor compute shader render

2019-02-08 Thread Zhu, James
Add compute shader initilization, assign and cleanup in vl_compositor API. Set vl_compositor compute shader render as default when pipe support it. Signed-off-by: James Zhu Reviewed-by: Christian König --- src/gallium/auxiliary/vl/vl_compositor.c | 105 ++-

[Mesa-dev] [PATCH v4 5/5] gallium/auxiliary/vl: Add vl_compositor compute shader render

2019-02-08 Thread Zhu, James
Add compute shader initilization, assign and cleanup in vl_compositor API. Set vl_compositor compute shader render as default when pipe support it. Signed-off-by: James Zhu Reviewed-by: Christian König --- src/gallium/auxiliary/vl/vl_compositor.c | 105 ++-

[Mesa-dev] [PATCH v3 3/6] gallium/auxiliary/vl: Rename csc_matrix and increase its size.

2019-02-07 Thread Zhu, James
Rename csc_matrix to shader_params, and increase shader_params size to store more constants for compute shader, Signed-off-by: James Zhu Reviewed-by: Christian König --- src/gallium/auxiliary/vl/vl_compositor.c | 10 +- src/gallium/auxiliary/vl/vl_compositor.h | 2 +-

[Mesa-dev] [PATCH v3 5/6] gallium/auxiliary/vl: Add compute shader initilization, assign and cleanup

2019-02-07 Thread Zhu, James
Add compute shader initilization, assign and cleanup in vl_compositor API. Signed-off-by: James Zhu Reviewed-by: Christian König --- src/gallium/auxiliary/vl/vl_compositor.c | 31 ++- src/gallium/auxiliary/vl/vl_compositor.h | 3 +++ 2 files changed, 33

[Mesa-dev] [PATCH v3 6/6] gallium/auxiliary/vl: Add video compute shader render

2019-02-07 Thread Zhu, James
Add video compute shader render and set it to default when pipe support it. Signed-off-by: James Zhu Reviewed-by: Christian König --- src/gallium/auxiliary/vl/vl_compositor.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/gallium/auxiliary/vl/vl_compositor.c

[Mesa-dev] [PATCH v3 0/6] Add compute shader support on video compositor render

2019-02-07 Thread Zhu, James
V3: Rename csc_matrix to shader_params Remove debug option CS_COMPOSITOR_RENDER, and set compute shader video compositor render as default when hardware supports. James Zhu (6): gallium/auxiliary/vl: Move dirty define to header file gallium/auxiliary/vl: Split vl_compositor graphic

[Mesa-dev] [PATCH v3 2/6] gallium/auxiliary/vl: Split vl_compositor graphic shaders from vl_compositor API

2019-02-07 Thread Zhu, James
Split vl_compositor graphic shaders from vl_compositor API in order to share vl_compositor API with vl_compositor compute shader later. Signed-off-by: James Zhu Reviewed-by: Christian König --- src/gallium/auxiliary/Makefile.sources | 2 + src/gallium/auxiliary/meson.build|

[Mesa-dev] [PATCH v3 4/6] gallium/auxiliary/vl: Add compute shader to support video compositor render

2019-02-07 Thread Zhu, James
Add compute shader to support video compositor render. Signed-off-by: James Zhu Acked-by: Christian König --- src/gallium/auxiliary/Makefile.sources | 2 + src/gallium/auxiliary/meson.build | 2 + src/gallium/auxiliary/vl/vl_compositor.h| 1 +

[Mesa-dev] [PATCH v3 1/6] gallium/auxiliary/vl: Move dirty define to header file

2019-02-07 Thread Zhu, James
Move dirty define to header file to share with compute shader. Signed-off-by: James Zhu Reviewed-by: Christian König --- src/gallium/auxiliary/vl/vl_compositor.c | 15 ++- src/gallium/auxiliary/vl/vl_compositor.h | 2 ++ 2 files changed, 8 insertions(+), 9 deletions(-) diff --git

[Mesa-dev] [PATCH v2 2/7] gallium/auxiliary/vl: Split vl_compositor graphic shaders from vl_compositor API

2019-02-06 Thread Zhu, James
Split vl_compositor graphic shaders from vl_compositor API in order to share vl_compositor API with vl_compositor compute shader later. Signed-off-by: James Zhu --- src/gallium/auxiliary/Makefile.sources | 2 + src/gallium/auxiliary/meson.build| 2 +

[Mesa-dev] [PATCH v2 5/7] gallium/auxiliary/vl: Add compute shader initilization, assign and cleanup

2019-02-06 Thread Zhu, James
Add compute shader initilization, assign and cleanup in vl_compositor API. Signed-off-by: James Zhu --- src/gallium/auxiliary/vl/vl_compositor.c | 31 ++- src/gallium/auxiliary/vl/vl_compositor.h | 3 +++ 2 files changed, 33 insertions(+), 1 deletion(-) diff --git

[Mesa-dev] [PATCH v2 6/7] gallium/auxiliary/vl: Add debug option CS_COMPOSITOR_RENDER

2019-02-06 Thread Zhu, James
Add debug option CS_COMPOSITOR_RENDER to enable/diable video compositor compute shader render through system environment Signed-off-by: James Zhu --- src/gallium/auxiliary/vl/vl_compositor.c | 4 1 file changed, 4 insertions(+) diff --git a/src/gallium/auxiliary/vl/vl_compositor.c

[Mesa-dev] [PATCH v2 3/7] gallium/auxiliary/vl: Increase csc_matrix size

2019-02-06 Thread Zhu, James
Increase csc_matrix size to store more constants for compute shader. Signed-off-by: James Zhu --- src/gallium/auxiliary/vl/vl_compositor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/auxiliary/vl/vl_compositor.c b/src/gallium/auxiliary/vl/vl_compositor.c

[Mesa-dev] [PATCH v2 7/7] gallium/auxiliary/vl: Add video compute shader render

2019-02-06 Thread Zhu, James
Add video compute shader render. export CS_COMPOSITOR_RENDER=true to enable video compute shader render. Signed-off-by: James Zhu --- src/gallium/auxiliary/vl/vl_compositor.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/gallium/auxiliary/vl/vl_compositor.c

[Mesa-dev] [PATCH v2 0/7] Add compute shader support on video compositor render

2019-02-06 Thread Zhu, James
V2: Split vl_compositor graphic shaders from vl_compositor API replace compute_shader_sub_pic with compute_shader_rgba Add VL_COMPOSITOR prefix in front of dirty define replace backslashes in the commit title with forward slashes James Zhu (7): gallium/auxiliary/vl: Move dirty define to

[Mesa-dev] [PATCH v2 1/7] gallium/auxiliary/vl: Move dirty define to header file

2019-02-06 Thread Zhu, James
Move dirty define to header file to share with compute shader. Signed-off-by: James Zhu --- src/gallium/auxiliary/vl/vl_compositor.c | 15 ++- src/gallium/auxiliary/vl/vl_compositor.h | 2 ++ 2 files changed, 8 insertions(+), 9 deletions(-) diff --git

[Mesa-dev] [PATCH v2 4/7] gallium/auxiliary/vl: Add compute shader to support video compositor render

2019-02-06 Thread Zhu, James
Add compute shader to support video compositor render. Signed-off-by: James Zhu --- src/gallium/auxiliary/Makefile.sources | 2 + src/gallium/auxiliary/meson.build | 2 + src/gallium/auxiliary/vl/vl_compositor.h| 1 + src/gallium/auxiliary/vl/vl_compositor_cs.c | 408

[Mesa-dev] [PATCH 1/6] gallium\auxiliary\vl: Move dirty define to header file

2019-02-01 Thread Zhu, James
Move dirty define to header file to share with compute shader. Signed-off-by: James Zhu --- src/gallium/auxiliary/vl/vl_compositor.c | 3 --- src/gallium/auxiliary/vl/vl_compositor.h | 2 ++ 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/gallium/auxiliary/vl/vl_compositor.c

[Mesa-dev] [PATCH 0/6] Add compute shader support on video compositor render

2019-02-01 Thread Zhu, James
Initially add compute shader support on video compositor render process. These patches include only normal video buffer, weave and video sub-pictures compute shader for video compositor render. export CS_COMPOSITOR_RENDER=true to enable compuet shader video compositor render. James Zhu (6):

[Mesa-dev] [PATCH 2/6] gallium\auxiliary\vl: Increase csc_matrix size

2019-02-01 Thread Zhu, James
Increase csc_matrix size to store more constants for compute shader. Signed-off-by: James Zhu --- src/gallium/auxiliary/vl/vl_compositor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/auxiliary/vl/vl_compositor.c b/src/gallium/auxiliary/vl/vl_compositor.c

[Mesa-dev] [PATCH 4/6] gallium\auxiliary\vl: Add compute shader initilization, assign and cleanup

2019-02-01 Thread Zhu, James
Add compute shader initilization, assign and cleanup in vl_compositor API. Signed-off-by: James Zhu --- src/gallium/auxiliary/vl/vl_compositor.c | 30 +- src/gallium/auxiliary/vl/vl_compositor.h | 4 2 files changed, 33 insertions(+), 1 deletion(-) diff --git

[Mesa-dev] [PATCH 3/6] gallium\auxiliary\vl: Add compute shader to support video compositor render

2019-02-01 Thread Zhu, James
Add compute shader to support video compositor render. Signed-off-by: James Zhu --- src/gallium/auxiliary/Makefile.sources | 2 + src/gallium/auxiliary/meson.build | 2 + src/gallium/auxiliary/vl/vl_compositor_cs.c | 414

[Mesa-dev] [PATCH 6/6] gallium\auxiliary\vl: Add video compute shader render

2019-02-01 Thread Zhu, James
Add video compute shader render. export CS_COMPOSITOR_RENDER=true to enable video compute shader render. Signed-off-by: James Zhu --- src/gallium/auxiliary/vl/vl_compositor.c | 19 +-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git

[Mesa-dev] [PATCH 5/6] gallium\auxiliary\vl: Add debug option CS_COMPOSITOR_RENDER

2019-02-01 Thread Zhu, James
Add debug option CS_COMPOSITOR_RENDER to enable/diable video compositor compute shader render through system environment variable. Signed-off-by: James Zhu --- src/gallium/auxiliary/vl/vl_compositor.c | 5 + 1 file changed, 5 insertions(+) diff --git

Re: [Mesa-dev] [PATCH v2 0/8] The 2nd version for UVD HEVC encode

2018-02-12 Thread Zhu, James
On 2018-02-10 11:06 AM, Mark Thompson wrote: On 08/02/18 23:05, Mark Thompson wrote: On 08/02/18 22:37, Alex Deucher wrote: On Thu, Feb 8, 2018 at 5:28 PM, Mark Thompson wrote: On 06/02/18 20:05, James Zhu wrote: The whole series are the updated