Mesa (master): llvmpipe: remove never reached code for timestamp queries.

Roland Scheidegger sroland at kemper.freedesktop.org
Thu Jun 27 17:06:57 UTC 2013


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

Author: Roland Scheidegger <sroland at vmware.com>
Date:   Thu Jun 27 18:56:26 2013 +0200

llvmpipe: remove never reached code for timestamp queries.

timestamp queries are always binned in an active scene, therefore
always have a result.

---

 src/gallium/drivers/llvmpipe/lp_query.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/src/gallium/drivers/llvmpipe/lp_query.c b/src/gallium/drivers/llvmpipe/lp_query.c
index ac6d09d..cea2d07 100644
--- a/src/gallium/drivers/llvmpipe/lp_query.c
+++ b/src/gallium/drivers/llvmpipe/lp_query.c
@@ -134,8 +134,6 @@ llvmpipe_get_query_result(struct pipe_context *pipe,
          if (pq->end[i] > *result) {
             *result = pq->end[i];
          }
-         if (*result == 0)
-            *result = os_time_get_nano();
       }
       break;
    case PIPE_QUERY_TIMESTAMP_DISJOINT: {




More information about the mesa-commit mailing list