[Mesa-dev] [PATCH v4 07/11] amdgpu: use common screen ref counting
robh at kernel.org
Fri Jul 29 18:01:25 UTC 2016
On Fri, Jul 29, 2016 at 12:51 PM, Marek Olšák <maraeo at gmail.com> wrote:
> The fd table and reference counting in the winsys is required by the
> GL-VDPAU interop.
> radeon_drm_winsys_create and amdgpu_winsys_create are publicly
> exported by both *_dri.so and libvdpau_*.so, and whichever is loaded
> first will effectively provide the gallium driver implementation for
> both of them. The second loaded lib can't create its own winsys &
> screen & contexts because of the public *_winsys_create functions
> always invoking the first loaded lib.
Yes, I'm aware of this as it was discussed in the RFC version, and it
was my intent to maintain that. I believe this version should support
this case as the ref counting is done within
radeon_drm_winsys_create/amdgpu_winsys_create. Where specifically do
you think it is broken?
More information about the mesa-dev