[Mesa-dev] [PATCH] RFC: mesa: remove MESA_VERBOSE env variable
Eric Anholt
eric at anholt.net
Thu Apr 20 19:16:40 UTC 2017
Emil Velikov <emil.l.velikov at gmail.com> writes:
> From: Emil Velikov <emil.velikov at collabora.com>
>
> The env variable was useful in the early days of mesa development, when
> tools such at Apitrace were not available.
>
> Nowadays, out of the 12 options only a third are used. With nearly all
> instances printing the API state. And even then not all entry points
> are annotated, thus one cannot rely upon it.
>
> The current patch removes the variable all together alongside a few
> instances (listed below) which developers may see value in keeping.
>
> FLUSH_VERTICES/FLUSH_CURRENT macros in src/mesa/main/context.h
> _mesa_GetGraphicsResetStatusARB in src/mesa/main/robustness.c
> _mesa_print_state() in src/mesa/main/state.c
> _mesa_notifySwapBuffers() in src/mesa/main/context.c
>
> Do we want to keep any of the MESA_VERBOSE instances? If so documenting
> the variable seems reasonable.
FWIW, I'm happy to see VERBOSE_API go. I've never used it, because I
don't trust it. If we wanted to support it, I'd rather we worked on
some sort of dispatch table stacking so that we could code-gen the
VERBOSE_API printfs.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 832 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20170420/10b8f97c/attachment.sig>
More information about the mesa-dev
mailing list