[Mesa-dev] [RFC 2/7] pipe-loader-drm: Add common pipe_screen refcounting

Ilia Mirkin imirkin at alum.mit.edu
Fri Jun 17 17:51:55 UTC 2016


On Fri, Jun 17, 2016 at 1:45 PM, Rob Herring <robh at kernel.org> wrote:
> Some gallium drivers have implemented reference counting of pipe_screen
> to avoid creating multiple screens for a device. Move this into the
> pipe-loader where it can be shared.
>
> Not completely sure, but it should not necessary to dup() the fd as
> dri2_create_screen does that for us already.

Definitely necessary for nouveau, pretty sure for everyone. See
commits a59f2bb17 and a98600b0eb.

  -ilia


More information about the mesa-dev mailing list