mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 13:48:06 +02:00
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:d971a4230d("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> (cherry picked from commitb699d070a6)
This commit is contained in:
parent
800e02453a
commit
c9f4058183
3 changed files with 5 additions and 3 deletions
|
|
@ -2794,7 +2794,7 @@
|
|||
"description": "glx: set the loader_logger early and for everyone",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"master_sha": null,
|
||||
"because_sha": "d971a4230d54069c996bca78b6ed6a6a23377821"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1105,8 +1105,6 @@ dri3_create_display(Display * dpy)
|
|||
pdp->base.destroyDisplay = dri3_destroy_display;
|
||||
pdp->base.createScreen = dri3_create_screen;
|
||||
|
||||
loader_set_logger(dri_message);
|
||||
|
||||
pdp->loader_extensions = loader_extensions;
|
||||
|
||||
return &pdp->base;
|
||||
|
|
|
|||
|
|
@ -50,6 +50,7 @@
|
|||
#include "glxextensions.h"
|
||||
|
||||
#include "util/debug.h"
|
||||
#include "dri_common.h"
|
||||
|
||||
#include <X11/Xlib-xcb.h>
|
||||
#include <xcb/xcb.h>
|
||||
|
|
@ -907,6 +908,9 @@ __glXInitialize(Display * dpy)
|
|||
|
||||
dpyPriv->drawHash = __glxHashCreate();
|
||||
|
||||
/* Set the logger before the *CreateDisplay functions. */
|
||||
loader_set_logger(dri_message);
|
||||
|
||||
/*
|
||||
** Initialize the direct rendering per display data and functions.
|
||||
** Note: This _must_ be done before calling any other DRI routines
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue