glx: set the loader_logger early and for everyone
authorEmil Velikov <emil.velikov@collabora.com>
Wed, 4 Mar 2020 17:52:04 +0000 (17:52 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Wed, 1 Apr 2020 15:21:32 +0000 (16:21 +0100)
commitb699d070a6de273fb3a964e05944b203d0b57090
tree30f9f5e6468677921676a790382b57019f508e87
parent06f758b0931794f5b8edb23587633f172e1b685d
glx: set the loader_logger early and for everyone

Currently we set the logger only for DRI3. Even though it's used nearly
everywhere. For platforms where we don't the function is effectively a
no-op.

With this in place, LIBGL_DEBUG=verbose works across the board.

Fixes: d971a4230d5 ("loader: Factor out the common driver opening logic from each loader.")
Cc: Eric Anholt <eric@anholt.net>
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Reviewed-by: Eric Engestrom <eric@engestrom.ch>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4084>
src/glx/dri3_glx.c
src/glx/glxext.c