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

Marek Olšák maraeo at gmail.com
Wed Apr 3 13:35:47 UTC 2019


On Wed, Apr 3, 2019 at 9:06 AM Ilia Mirkin <imirkin at alum.mit.edu> wrote:

> On Wed, Apr 3, 2019 at 8:38 AM Marek Olšák <maraeo at gmail.com> wrote:
> >
> > On Tue, Apr 2, 2019 at 2:14 PM Eric Anholt <eric at anholt.net> wrote:
> >>
> >> Ilia Mirkin <imirkin at alum.mit.edu> 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 being
> >> made.
> >
> >
> > We plan to create vaapi contexts with PIPE_CONTEXT_COMPUTE_ONLY for
> better GPU multitasking.
> >
> > RadeonSI uses async compute queues if PIPE_CONTEXT_COMPUTE_ONLY is set,
> so it can't do any graphics stuff, not even blit. (pipe_context::blit is
> NULL)
>
> Makes sense. Sounds like one of those would be a better condition than
> the mere existence of compute support then?
>

Or we can add PIPE_CAP_PREFER_COMPUTE_BLIT as a performance hint.

Marek
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20190403/a325bb71/attachment.html>


More information about the mesa-dev mailing list