[Mesa-dev] [PATCH v3 2/2] intel: always print performance debugging to `logcat' on Android.

Oliver McFadden oliver.mcfadden at linux.intel.com
Tue Oct 9 21:49:14 PDT 2012


Signed-off-by: Oliver McFadden <oliver.mcfadden at linux.intel.com>
CC: Chad Versace <chad.versace at linux.intel.com>
---
v3: split the unconditional DEBUG_PERF printing for Android into a separate
patch.  The second patch doesn't necessarily need to be upstreamed; I'm open to
feedback here...

 src/mesa/drivers/dri/intel/intel_context.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/src/mesa/drivers/dri/intel/intel_context.c b/src/mesa/drivers/dri/intel/intel_context.c
index 204609e..e9c9839 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
+
    if (INTEL_DEBUG & DEBUG_BUFMGR)
       dri_bufmgr_set_debug(intel->bufmgr, true);
 
-- 
1.7.8.6



More information about the mesa-dev mailing list