[Mesa-dev] [PATCH v2 1/1] intel: print performance debug messages to `logcat' on Android.
Eric Anholt
eric at anholt.net
Mon Oct 1 14:35:50 PDT 2012
Oliver McFadden <oliver.mcfadden at linux.intel.com> writes:
> diff --git a/src/mesa/drivers/dri/intel/intel_context.c b/src/mesa/drivers/dri/intel/intel_context.c
> index 25334da..7eb2706 100644
> --- a/src/mesa/drivers/dri/intel/intel_context.c
> +++ b/src/mesa/drivers/dri/intel/intel_context.c
> @@ -744,6 +744,11 @@ intelInitContext(struct intel_context *intel,
> intelInitExtensions(ctx);
>
> INTEL_DEBUG = driParseDebugString(getenv("INTEL_DEBUG"), debug_control);
> +
> +#ifdef HAVE_ANDROID_PLATFORM
> + INTEL_DEBUG |= DEBUG_PERF;
> +#endif /* HAVE_ANDROID_PLATFORM */
> +
> if (INTEL_DEBUG & DEBUG_BUFMGR)
> dri_bufmgr_set_debug(intel->bufmgr, true);
I don't see why the driver should be logging debug messages by default.
You want to be able to actually ship this driver for non-developers.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20121001/a5020943/attachment.pgp>
More information about the mesa-dev
mailing list