Mesa (master): i965: Fix the scaling of seconds to ms in perf debug.
Eric Anholt
anholt at kemper.freedesktop.org
Tue Aug 14 00:51:41 UTC 2012
Module: Mesa
Branch: master
Commit: 43e3a7533d5537e48cef23588131dd25d938ee4b
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=43e3a7533d5537e48cef23588131dd25d938ee4b
Author: Eric Anholt <eric at anholt.net>
Date: Mon Aug 13 17:49:06 2012 -0700
i965: Fix the scaling of seconds to ms in perf debug.
*headdesk*
---
src/mesa/drivers/dri/i965/brw_fs.cpp | 2 +-
src/mesa/drivers/dri/i965/brw_vec4_emit.cpp | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp
index 3010ed0..e2dafdc 100644
--- a/src/mesa/drivers/dri/i965/brw_fs.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs.cpp
@@ -2119,7 +2119,7 @@ brw_wm_fs_emit(struct brw_context *brw, struct brw_wm_compile *c,
if (start_busy && !drm_intel_bo_busy(intel->batch.last_bo)) {
perf_debug("FS compile took %.03f ms and stalled the GPU\n",
- (get_time() - start_time) / 1000);
+ (get_time() - start_time) * 1000);
}
}
diff --git a/src/mesa/drivers/dri/i965/brw_vec4_emit.cpp b/src/mesa/drivers/dri/i965/brw_vec4_emit.cpp
index d7ff8de..9e4efd0 100644
--- a/src/mesa/drivers/dri/i965/brw_vec4_emit.cpp
+++ b/src/mesa/drivers/dri/i965/brw_vec4_emit.cpp
@@ -1053,7 +1053,7 @@ brw_vs_emit(struct gl_shader_program *prog, struct brw_vs_compile *c)
}
if (start_busy && !drm_intel_bo_busy(intel->batch.last_bo)) {
perf_debug("VS compile took %.03f ms and stalled the GPU\n",
- (get_time() - start_time) / 1000);
+ (get_time() - start_time) * 1000);
}
}
More information about the mesa-commit
mailing list