Module: Mesa
Branch: master
Commit: 8616b224bf267d2d114cf32c3242912313e9ccc4
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=8616b224bf267d2d114cf32c3242912313e9ccc4

Author: Marek Olšák <[email protected]>
Date:   Thu Apr 11 13:16:42 2013 +0200

gallium/hud: fix FPS computation for framerate > 4.2k

---

 src/gallium/auxiliary/hud/hud_fps.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/gallium/auxiliary/hud/hud_fps.c 
b/src/gallium/auxiliary/hud/hud_fps.c
index 71cdfd0..80381f5 100644
--- a/src/gallium/auxiliary/hud/hud_fps.c
+++ b/src/gallium/auxiliary/hud/hud_fps.c
@@ -47,7 +47,8 @@ query_fps(struct hud_graph *gr)
 
    if (info->last_time) {
       if (info->last_time + gr->pane->period <= now) {
-         double fps = info->frames * 1000000 / (double)(now - info->last_time);
+         double fps = (uint64_t)info->frames * 1000000 /
+                      (double)(now - info->last_time);
          info->frames = 0;
          info->last_time = now;
 

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to