llvmpipe: remove never reached code for timestamp queries.
authorRoland Scheidegger <sroland@vmware.com>
Thu, 27 Jun 2013 16:56:26 +0000 (18:56 +0200)
committerRoland Scheidegger <sroland@vmware.com>
Thu, 27 Jun 2013 17:06:40 +0000 (19:06 +0200)
timestamp queries are always binned in an active scene, therefore
always have a result.

src/gallium/drivers/llvmpipe/lp_query.c

index ac6d09d9a0f260fbceabba37efc9feeefa8c09ec..cea2d07394e7f7e856e4693a31c724d4e01f3d8b 100644 (file)
@@ -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: {