Re: [Mesa-dev] [PATCH] mesa gallium: use compute shaders for vaapi blit

2019-04-03 Thread Marek Olšák
On Wed, Apr 3, 2019 at 9:57 AM Ilia Mirkin wrote: > On Wed, Apr 3, 2019 at 9:36 AM Marek Olšák wrote: > > > > On Wed, Apr 3, 2019 at 9:06 AM Ilia Mirkin wrote: > >> > >> On Wed, Apr 3, 2019 at 8:38 AM Marek Olšák wrote: > >> > > >> > On Tue, Apr 2, 2019 at 2:14 PM Eric Anholt wrote: > >> >>

Re: [Mesa-dev] [PATCH] mesa gallium: use compute shaders for vaapi blit

2019-04-03 Thread Ilia Mirkin
On Wed, Apr 3, 2019 at 9:36 AM Marek Olšák wrote: > > On Wed, Apr 3, 2019 at 9:06 AM Ilia Mirkin wrote: >> >> On Wed, Apr 3, 2019 at 8:38 AM Marek Olšák wrote: >> > >> > On Tue, Apr 2, 2019 at 2:14 PM Eric Anholt wrote: >> >> >> >> Ilia Mirkin writes: >> >> >> >> > Shouldn't this sort of

Re: [Mesa-dev] [PATCH] mesa gallium: use compute shaders for vaapi blit

2019-04-03 Thread Marek Olšák
On Wed, Apr 3, 2019 at 9:06 AM Ilia Mirkin wrote: > On Wed, Apr 3, 2019 at 8:38 AM Marek Olšák wrote: > > > > On Tue, Apr 2, 2019 at 2:14 PM Eric Anholt wrote: > >> > >> Ilia Mirkin writes: > >> > >> > Shouldn't this sort of decision be left up to the driver? If the > >> > driver would like

Re: [Mesa-dev] [PATCH] mesa gallium: use compute shaders for vaapi blit

2019-04-03 Thread Ilia Mirkin
On Wed, Apr 3, 2019 at 8:38 AM Marek Olšák wrote: > > On Tue, Apr 2, 2019 at 2:14 PM Eric Anholt wrote: >> >> Ilia Mirkin writes: >> >> > Shouldn't this sort of decision be left up to the driver? If the >> > driver would like to use CS for blits, fine, but why not let it blit >> > in the most

Re: [Mesa-dev] [PATCH] mesa gallium: use compute shaders for vaapi blit

2019-04-03 Thread Marek Olšák
On Tue, Apr 2, 2019 at 2:14 PM Eric Anholt wrote: > Ilia Mirkin writes: > > > Shouldn't this sort of decision be left up to the driver? If the > > driver would like to use CS for blits, fine, but why not let it blit > > in the most optimal way possible and force it to use a compute shader? > >

Re: [Mesa-dev] [PATCH] mesa gallium: use compute shaders for vaapi blit

2019-04-02 Thread Eric Anholt
Ilia Mirkin writes: > Shouldn't this sort of decision be left up to the driver? If the > driver would like to use CS for blits, fine, but why not let it blit > in the most optimal way possible and force it to use a compute shader? Yeah, commit messages require an explanation of why a change is

Re: [Mesa-dev] [PATCH] mesa gallium: use compute shaders for vaapi blit

2019-04-02 Thread Ilia Mirkin
Shouldn't this sort of decision be left up to the driver? If the driver would like to use CS for blits, fine, but why not let it blit in the most optimal way possible and force it to use a compute shader? On Tue, Apr 2, 2019 at 1:44 PM Jiang, Sonny wrote: > > Signed-off-by: Sonny Jiang > --- >

[Mesa-dev] [PATCH] mesa gallium: use compute shaders for vaapi blit

2019-04-02 Thread Jiang, Sonny
Signed-off-by: Sonny Jiang --- src/gallium/auxiliary/Makefile.sources | 2 + src/gallium/auxiliary/util/u_compute.c | 165 + src/gallium/auxiliary/util/u_compute.h | 44 ++ src/gallium/state_trackers/va/context.c| 2 +