[Mesa-dev] [RFC] etnaviv: native fence fd support

Philipp Zabel p.zabel at pengutronix.de
Thu Apr 6 14:23:04 UTC 2017


On Wed, 2017-04-05 at 19:46 +0200, Christian Gmeiner wrote:
[...]
> > --- a/src/gallium/drivers/etnaviv/etnaviv_screen.c
> > +++ b/src/gallium/drivers/etnaviv/etnaviv_screen.c
> > @@ -137,6 +137,9 @@ etna_screen_get_param(struct pipe_screen *pscreen, enum pipe_cap param)
> >     case PIPE_CAP_TGSI_TEXCOORD:
> >     case PIPE_CAP_VERTEX_COLOR_UNCLAMPED:
> >        return 1;
> > +   case PIPE_CAP_NATIVE_FENCE_FD:
> > +      return screen->drm_major > 1 ||
> > +             (screen->drm_major == 1 && screen->drm_minor >= 1);
> >
> 
> I would like to see a etna_device_version(..) in libdrm-etnaviv and used like:
>     return etna_device_version(screen->dev) >= ETNA_VERSION_FENCE_FD;

I suppose. Wouldn't that just partially duplicate drmGetVersion though?

regards
Philipp



More information about the mesa-dev mailing list