[Mesa-dev] [PATCH 5/9] egl/wayland: Implement DRI_PRIME support
davy at clipper.ens.fr
Fri May 8 10:06:04 PDT 2015
On Fri, 8 May 2015, Emil Velikov wrote:
> Shouldn't we authenticate with the correct gpu or master/render node ?
> This implementation will auth with GPU1, and then use GPU2 which seems
> a bit odd. I might be missing something ?
The original patches did do differently: when GPU1 was discovered to not
be the wanted gpu, it was not authenticating to it.
However loader_get_user_preferred_fd was introduced and thus that leads
to something different (which I think is cleaner):
We authenticate to GPU1, so we have one node we can render to.
loader_get_user_preferred_fd takes the GPU1 fd, and eventually replaces
it by GPU2 fd if user wants it and it is possible.
Given this way of doing, we it makes sense to auth to GPU1, even if we
end up rendering to GPU2.
More information about the mesa-dev