glx: Keep display fd open for prime
authorYogesh Mohanmarimuthu <yogesh.mohanmarimuthu@amd.com>
Mon, 3 May 2021 17:27:07 +0000 (22:57 +0530)
committerMarge Bot <eric+marge@anholt.net>
Thu, 3 Jun 2021 09:12:32 +0000 (09:12 +0000)
commitdac2c210d6457d8497e25d71c5a9c76282094dd6
tree00832a457feb7cdfe674e78e47eeab9e3036b828
parent41eaa07823ae1f5cec8a69b6fc6c788e5f1b4e81
glx: Keep display fd open for prime

Keep the display fd open for creating DRI screen on display gpu in
case of prime.

v2: initialize psc->fd_display_gpu early (Michel Dänzer)
    fix display gpu fd leakage (Michel Dänzer)
v3: fix more display gpu fd leakage (Michel Dänzer)

Signed-off-by: Yogesh Mohanmarimuthu <yogesh.mohanmarimuthu@amd.com>
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Reviewed-by: Michel Dänzer <mdaenzer@redhat.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10595>
src/glx/dri3_glx.c
src/glx/dri3_priv.h