i965: Fix the scaling of seconds to ms in perf debug.
authorEric Anholt <eric@anholt.net>
Tue, 14 Aug 2012 00:49:06 +0000 (17:49 -0700)
committerEric Anholt <eric@anholt.net>
Tue, 14 Aug 2012 00:50:25 +0000 (17:50 -0700)
*headdesk*

src/mesa/drivers/dri/i965/brw_fs.cpp
src/mesa/drivers/dri/i965/brw_vec4_emit.cpp

index 3010ed0b4351e49a5218ea97828ce9c18efc4579..e2dafdc114da242bd194735e13e2a653f4a02eb4 100644 (file)
@@ -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);
       }
    }
 
index d7ff8de34867bc516f7a19e3b5e3252c29b3b9dc..9e4efd0933ab40c33598198b51dafea4dd2491a5 100644 (file)
@@ -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);
       }
    }