summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/intel
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2012-07-12 12:35:19 -0700
committerEric Anholt <[email protected]>2012-08-12 19:08:24 -0700
commit79198063b8adb23536b291081f8df8571926950e (patch)
tree1552cdff68af99791aa4a2cb7dcbfe8102a80985 /src/mesa/drivers/dri/intel
parentbf6c1b74705243efdd43f07d381768fceede1f91 (diff)
intel: Rename INTEL_DEBUG=fall to INTEL_DEBUG=perf.
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 <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/intel')
-rw-r--r--src/mesa/drivers/dri/intel/intel_context.c3
-rw-r--r--src/mesa/drivers/dri/intel/intel_context.h4
-rw-r--r--src/mesa/drivers/dri/intel/intel_tex_copy.c4
3 files changed, 6 insertions, 5 deletions
diff --git a/src/mesa/drivers/dri/intel/intel_context.c b/src/mesa/drivers/dri/intel/intel_context.c
index 759fead2d42..a39462bbb56 100644
--- a/src/mesa/drivers/dri/intel/intel_context.c
+++ b/src/mesa/drivers/dri/intel/intel_context.c
@@ -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},
diff --git a/src/mesa/drivers/dri/intel/intel_context.h b/src/mesa/drivers/dri/intel/intel_context.h
index 4997cf0ee8c..49db119b6e9 100644
--- a/src/mesa/drivers/dri/intel/intel_context.h
+++ b/src/mesa/drivers/dri/intel/intel_context.h
@@ -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)
diff --git a/src/mesa/drivers/dri/intel/intel_tex_copy.c b/src/mesa/drivers/dri/intel/intel_tex_copy.c
index 6da4ec6da3e..f4366330f88 100644
--- a/src/mesa/drivers/dri/intel/intel_tex_copy.c
+++ b/src/mesa/drivers/dri/intel/intel_tex_copy.c
@@ -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),