intel: Rename INTEL_DEBUG=fall to INTEL_DEBUG=perf.
authorEric Anholt <eric@anholt.net>
Thu, 12 Jul 2012 19:35:19 +0000 (12:35 -0700)
committerEric Anholt <eric@anholt.net>
Mon, 13 Aug 2012 02:08:24 +0000 (19:08 -0700)
I want to introduce some more debug output for performance surprises that
includes fallbacks, but aren't necessarily software rasterization.  Leave
INTEL_DEBUG=fall in place for those that have used that flag before.

Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i915/i915_program.c
src/mesa/drivers/dri/i915/intel_tris.c
src/mesa/drivers/dri/i965/brw_fallback.c
src/mesa/drivers/dri/i965/brw_urb.c
src/mesa/drivers/dri/intel/intel_context.c
src/mesa/drivers/dri/intel/intel_context.h
src/mesa/drivers/dri/intel/intel_tex_copy.c

index 0a600d30befcdc6af61f34f9822431652a48b593..4437167722758803aeac95200ab248d6456c2dcf 100644 (file)
@@ -442,7 +442,7 @@ i915_emit_param4fv(struct i915_fragment_program * p, const GLfloat * values)
 void
 i915_program_error(struct i915_fragment_program *p, const char *fmt, ...)
 {
-   if (unlikely((INTEL_DEBUG & (DEBUG_WM | DEBUG_FALLBACKS)) != 0)) {
+   if (unlikely((INTEL_DEBUG & (DEBUG_WM | DEBUG_PERF)) != 0)) {
       va_list args;
 
       fprintf(stderr, "i915_program_error: ");
index 5954b24fe5a2bb149ee2069701fb617dad2223da..549af5e07aa6731e0fe29451d9295a5ef7ed9fee 100644 (file)
@@ -1223,7 +1223,7 @@ intelFallback(struct intel_context *intel, GLbitfield bit, bool mode)
         assert(!intel->tnl_pipeline_running);
 
          intel_flush(ctx);
-         if (INTEL_DEBUG & DEBUG_FALLBACKS)
+         if (INTEL_DEBUG & DEBUG_PERF)
             fprintf(stderr, "ENTER FALLBACK %x: %s\n",
                     bit, getFallbackString(bit));
          _swsetup_Wakeup(ctx);
@@ -1236,7 +1236,7 @@ intelFallback(struct intel_context *intel, GLbitfield bit, bool mode)
         assert(!intel->tnl_pipeline_running);
 
          _swrast_flush(ctx);
-         if (INTEL_DEBUG & DEBUG_FALLBACKS)
+         if (INTEL_DEBUG & DEBUG_PERF)
             fprintf(stderr, "LEAVE FALLBACK %s\n", getFallbackString(bit));
          tnl->Driver.Render.Start = intelRenderStart;
          tnl->Driver.Render.PrimitiveNotify = intelRenderPrimitive;
index 81fc23a4451cffc9a6c2f6559c5e2333f6e80e40..1ae6fc83f6a0ef271b89bf4787c36be454e9603d 100644 (file)
@@ -37,7 +37,7 @@
 #include "tnl/tnl.h"
 #include "brw_context.h"
 
-#define FILE_DEBUG_FLAG DEBUG_FALLBACKS
+#define FILE_DEBUG_FLAG DEBUG_PERF
 
 static bool do_check_fallback(struct brw_context *brw)
 {
index 7643dc26848f628cdd9b2e6ab8f6848fabf9f72d..b1126b5ff5a12aeb47eae5bb7c73233ef00fb2b1 100644 (file)
@@ -190,7 +190,7 @@ static void recalculate_urb_fence( struct brw_context *brw )
            exit(1);
         }
         
-        if (unlikely(INTEL_DEBUG & (DEBUG_URB|DEBUG_FALLBACKS)))
+        if (unlikely(INTEL_DEBUG & (DEBUG_URB|DEBUG_PERF)))
            printf("URB CONSTRAINED\n");
       }
 
index 759fead2d4299aae6280a9d3e3cb46b724a84ef6..a39462bbb5688d768ccb02eb8fadfcb8f8dee41c 100644 (file)
@@ -427,7 +427,8 @@ static const struct dri_debug_control debug_control[] = {
    { "ioctl", DEBUG_IOCTL},
    { "blit",  DEBUG_BLIT},
    { "mip",   DEBUG_MIPTREE},
-   { "fall",  DEBUG_FALLBACKS},
+   { "fall",  DEBUG_PERF},
+   { "perf",  DEBUG_PERF},
    { "verb",  DEBUG_VERBOSE},
    { "bat",   DEBUG_BATCH},
    { "pix",   DEBUG_PIXEL},
index 4997cf0ee8ceaf865a9245f8bee9365ba6e98b4d..49db119b6e90267ba73a8f8c20dca717b3ff8196 100644 (file)
@@ -431,7 +431,7 @@ extern int INTEL_DEBUG;
 #define DEBUG_IOCTL    0x4
 #define DEBUG_BLIT     0x8
 #define DEBUG_MIPTREE   0x10
-#define DEBUG_FALLBACKS        0x20
+#define DEBUG_PERF     0x20
 #define DEBUG_VERBOSE  0x40
 #define DEBUG_BATCH     0x80
 #define DEBUG_PIXEL     0x100
@@ -460,7 +460,7 @@ extern int INTEL_DEBUG;
 } while(0)
 
 #define fallback_debug(...) do {                               \
-       if (unlikely(INTEL_DEBUG & DEBUG_FALLBACKS))            \
+       if (unlikely(INTEL_DEBUG & DEBUG_PERF))                 \
                printf(__VA_ARGS__);                            \
 } while(0)
 
index 6da4ec6da3e91c4b8e30c3b6e90fe97832fd6f54..f4366330f88278b23a6a5fc98988777724dc3c46 100644 (file)
@@ -61,7 +61,7 @@ intel_copy_texsubimage(struct intel_context *intel,
    intel_prepare_render(intel);
 
    if (!intelImage->mt || !irb || !irb->mt) {
-      if (unlikely(INTEL_DEBUG & DEBUG_FALLBACKS))
+      if (unlikely(INTEL_DEBUG & DEBUG_PERF))
         fprintf(stderr, "%s fail %p %p (0x%08x)\n",
                 __FUNCTION__, intelImage->mt, irb, internalFormat);
       return false;
@@ -85,7 +85,7 @@ intel_copy_texsubimage(struct intel_context *intel,
    }
 
    if (!copy_supported && !copy_supported_with_alpha_override) {
-      if (unlikely(INTEL_DEBUG & DEBUG_FALLBACKS))
+      if (unlikely(INTEL_DEBUG & DEBUG_PERF))
         fprintf(stderr, "%s mismatched formats %s, %s\n",
                 __FUNCTION__,
                 _mesa_get_format_name(intelImage->base.Base.TexFormat),