[Mesa-dev] [PATCH v2 01/10] renderonly/etnaviv: stop importing resource from renderonly

Lucas Stach l.stach at pengutronix.de
Wed Jul 19 09:41:15 UTC 2017


Hi Daniel,

Am Mittwoch, den 19.07.2017, 10:33 +0100 schrieb Daniel Stone:
> Hi Lucas,
> 
> On 4 July 2017 at 16:45, Lucas Stach <l.stach at pengutronix.de> wrote:
> > @@ -146,7 +121,8 @@ free_scanout:
> >
> >  struct renderonly_scanout *
> >  renderonly_create_gpu_import_for_resource(struct pipe_resource *rsc,
> > -                                          struct renderonly *ro)
> > +                                          struct renderonly *ro,
> > +                                          struct winsys_handle *out_handle)
> >  {
> >     struct pipe_screen *screen = rsc->screen;
> >     struct renderonly_scanout *scanout;
> 
> What does this additional parameter do? Are you missing 'if
> (out_handle) *out_handle = handle'?

It doesn't do anything in this function, it's just that the prototype
changed for the sake of
renderonly_create_kms_dumb_buffer_for_resource(), which isn't importing
the KMS buffer itself anymore, but returns a winsys handle to a dmabuf
now.

Regards,
Lucas

> Aside from that, it looks fine to me, but my knowledge of renderonly
> (and Gallium winsys bits in general) is weak enough that I can only
> really offer:
> Acked-by: Daniel Stone <daniels at collabora.com>
> 
> Cheers,
> Daniel




More information about the etnaviv mailing list