[Mesa-dev] [PATCH 2/2] st/vdapu: use lanczos filter for scaling v4

2016-09-18 Thread Nayan Deshmukh
HIGH_QUALITY_SCALING_L2 to HIGH_QUALTIY_SCALING_L7 uses lanczos filter with number representing the size of the sinc window. v3: avoid L8 and L9 to allow for other scaling algrithms v4 (chk): rebased on master Signed-off-by: Nayan Deshmukh ---

Re: [Mesa-dev] [PATCH 2/2] st/vdapu: use lanczos filter for scaling v4

2016-09-06 Thread Leo Liu
Hi Nayan, This quick hack was just to prove Christian's idea, and for your reference. I don't have multi GPU system, and only had a very brief test on single GPU, so it might be some difference on your multi GPU system. we have to dig more into it. Regards, Leo On 09/05/2016 03:51 AM, Nayan

Re: [Mesa-dev] [PATCH 2/2] st/vdapu: use lanczos filter for scaling v4

2016-09-06 Thread Nayan Deshmukh
Hi Leo, I thought so. As Michel suggested present extension needs a linear buffer and he and Christian agreed that we should have a separate linear buffer for this. But I still don't understand the code in vl_winsys_dri3.c so I am not sure how this could be implemented. Regards, Nayan. On Tue,

Re: [Mesa-dev] [PATCH 2/2] st/vdapu: use lanczos filter for scaling v4

2016-09-05 Thread Nayan Deshmukh
Hi Leo, I have tested your patch with my mplayer and it gives error when I try to increase the size of the window. It gives the following error:- X11 error: BadAlloc (insufficient resources for operation) X11 error: BadDrawable (invalid Pixmap or Window parameter) X11 error: BadPixmap (invalid

Re: [Mesa-dev] [PATCH 2/2] st/vdapu: use lanczos filter for scaling v4

2016-09-02 Thread Leo Liu
On 09/02/2016 10:48 AM, Christian König wrote: Am 02.09.2016 um 16:10 schrieb Leo Liu: On 09/02/2016 09:50 AM, Christian König wrote: Am 02.09.2016 um 15:27 schrieb Leo Liu: On 09/02/2016 02:11 AM, Christian König wrote: Am 02.09.2016 um 04:03 schrieb Michel Dänzer: On 02/09/16 10:17

Re: [Mesa-dev] [PATCH 2/2] st/vdapu: use lanczos filter for scaling v4

2016-09-02 Thread Christian König
Am 02.09.2016 um 16:10 schrieb Leo Liu: On 09/02/2016 09:50 AM, Christian König wrote: Am 02.09.2016 um 15:27 schrieb Leo Liu: On 09/02/2016 02:11 AM, Christian König wrote: Am 02.09.2016 um 04:03 schrieb Michel Dänzer: On 02/09/16 10:17 AM, Michel Dänzer wrote: On 02/09/16 12:58 AM,

Re: [Mesa-dev] [PATCH 2/2] st/vdapu: use lanczos filter for scaling v4

2016-09-02 Thread Leo Liu
On 09/02/2016 09:50 AM, Christian König wrote: Am 02.09.2016 um 15:27 schrieb Leo Liu: On 09/02/2016 02:11 AM, Christian König wrote: Am 02.09.2016 um 04:03 schrieb Michel Dänzer: On 02/09/16 10:17 AM, Michel Dänzer wrote: On 02/09/16 12:58 AM, Leo Liu wrote: On 09/01/2016 11:54 AM,

Re: [Mesa-dev] [PATCH 2/2] st/vdapu: use lanczos filter for scaling v4

2016-09-02 Thread Christian König
Am 02.09.2016 um 15:27 schrieb Leo Liu: On 09/02/2016 02:11 AM, Christian König wrote: Am 02.09.2016 um 04:03 schrieb Michel Dänzer: On 02/09/16 10:17 AM, Michel Dänzer wrote: On 02/09/16 12:58 AM, Leo Liu wrote: On 09/01/2016 11:54 AM, Nayan Deshmukh wrote: I saw the code in dri3_glx.c

Re: [Mesa-dev] [PATCH 2/2] st/vdapu: use lanczos filter for scaling v4

2016-09-02 Thread Leo Liu
On 09/02/2016 02:11 AM, Christian König wrote: Am 02.09.2016 um 04:03 schrieb Michel Dänzer: On 02/09/16 10:17 AM, Michel Dänzer wrote: On 02/09/16 12:58 AM, Leo Liu wrote: On 09/01/2016 11:54 AM, Nayan Deshmukh wrote: I saw the code in dri3_glx.c and I could somewhat relate some basic

Re: [Mesa-dev] [PATCH 2/2] st/vdapu: use lanczos filter for scaling v4

2016-09-02 Thread Christian König
Am 02.09.2016 um 04:03 schrieb Michel Dänzer: On 02/09/16 10:17 AM, Michel Dänzer wrote: On 02/09/16 12:58 AM, Leo Liu wrote: On 09/01/2016 11:54 AM, Nayan Deshmukh wrote: I saw the code in dri3_glx.c and I could somewhat relate some basic code structure to the vl_winsys_dri3.c. But I am new

Re: [Mesa-dev] [PATCH 2/2] st/vdapu: use lanczos filter for scaling v4

2016-09-01 Thread Michel Dänzer
On 02/09/16 10:17 AM, Michel Dänzer wrote: > On 02/09/16 12:58 AM, Leo Liu wrote: >> On 09/01/2016 11:54 AM, Nayan Deshmukh wrote: >>> >>> I saw the code in dri3_glx.c and I could somewhat relate some basic >>> code structure to the vl_winsys_dri3.c. But I am new to this and not aware >>> of the

Re: [Mesa-dev] [PATCH 2/2] st/vdapu: use lanczos filter for scaling v4

2016-09-01 Thread Michel Dänzer
On 02/09/16 12:58 AM, Leo Liu wrote: > On 09/01/2016 11:54 AM, Nayan Deshmukh wrote: >> Hi Leo, >> >> I saw the code in dri3_glx.c and I could somewhat relate some basic >> code structure to the vl_winsys_dri3.c. But I am new to this and not aware >> of the >> terminology that you used about the

Re: [Mesa-dev] [PATCH 2/2] st/vdapu: use lanczos filter for scaling v4

2016-09-01 Thread Leo Liu
On 09/01/2016 11:54 AM, Nayan Deshmukh wrote: Hi Leo, I saw the code in dri3_glx.c and I could somewhat relate some basic code structure to the vl_winsys_dri3.c. But I am new to this and not aware of the terminology that you used about the buffers. Could you please explain what needs to be

Re: [Mesa-dev] [PATCH 2/2] st/vdapu: use lanczos filter for scaling v4

2016-09-01 Thread Nayan Deshmukh
Hi Leo, I saw the code in dri3_glx.c and I could somewhat relate some basic code structure to the vl_winsys_dri3.c. But I am new to this and not aware of the terminology that you used about the buffers. Could you please explain what needs to be done in more detail or point me to where I can read

Re: [Mesa-dev] [PATCH 2/2] st/vdapu: use lanczos filter for scaling v4

2016-09-01 Thread Leo Liu
Hi Nayan, About the Prime, I think you have to do is to separate decoder render buffer and presentation back buffer, and copy back and forth between them for presentation and update. You might refer to similar implement in glx and egl from loader_dri3_helper.c by grep "is_different_gpu"

Re: [Mesa-dev] [PATCH 2/2] st/vdapu: use lanczos filter for scaling v4

2016-09-01 Thread Nayan Deshmukh
Thanks, Michel you saved a lot of my time. Christian, I will get in touch with Leo and get started on this task. Regards, Nayan. On Thu, Sep 1, 2016 at 2:08 PM, Christian König wrote: > Am 01.09.2016 um 05:28 schrieb Michel Dänzer: > >> On 31/08/16 06:53 PM, Nayan

Re: [Mesa-dev] [PATCH 2/2] st/vdapu: use lanczos filter for scaling v4

2016-09-01 Thread Christian König
Am 01.09.2016 um 05:28 schrieb Michel Dänzer: On 31/08/16 06:53 PM, Nayan Deshmukh wrote: Hi Christian, You missed a few things in the merge. I will send in the updated patch. I looked at the code in vl_winsys.c and vl_winsys3.c and also at the code in presentation.c where delayed rendering

Re: [Mesa-dev] [PATCH 2/2] st/vdapu: use lanczos filter for scaling v4

2016-08-31 Thread Michel Dänzer
On 31/08/16 06:53 PM, Nayan Deshmukh wrote: > Hi Christian, > > You missed a few things in the merge. I will send in the updated patch. > > I looked at the code in vl_winsys.c and vl_winsys3.c and also > at the code in presentation.c where delayed rendering is used. I was trying > to compile

[Mesa-dev] [PATCH 2/2] st/vdapu: use lanczos filter for scaling v4

2016-08-31 Thread Nayan Deshmukh
HIGH_QUALITY_SCALING_L2 to HIGH_QUALTIY_SCALING_L7 uses lanczos filter with number representing the size of the sinc window. v3: avoid L8 and L9 to allow for other scaling algrithms v4 (chk): rebased on master Signed-off-by: Nayan Deshmukh ---

Re: [Mesa-dev] [PATCH 2/2] st/vdapu: use lanczos filter for scaling v4

2016-08-31 Thread Nayan Deshmukh
Hi Christian, You missed a few things in the merge. I will send in the updated patch. I looked at the code in vl_winsys.c and vl_winsys3.c and also at the code in presentation.c where delayed rendering is used. I was trying to compile using vl_dri3_screen_create() but its giving me some error. I

[Mesa-dev] [PATCH 2/2] st/vdapu: use lanczos filter for scaling v4

2016-08-31 Thread Christian König
From: Nayan Deshmukh HIGH_QUALITY_SCALING_L2 to HIGH_QUALTIY_SCALING_L7 uses lanczos filter with number representing the size of the sinc window. v3: avoid L8 and L9 to allow for other scaling algrithms v4 (chk): rebased on master Signed-off-by: Nayan Deshmukh