summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2010-02-08 13:07:31 -0700
committerBrian Paul <[email protected]>2010-02-08 16:57:23 -0700
commita8270c7c29b141025f606c811812304a72e42d2e (patch)
tree1ad40a5ce2c973b27c0d8e1afc58b5f8c24d8e8d
parent8b0b5ace4871847f7d8608e0ce6f67b7c5731ea7 (diff)
llvmpipe: use new os time functions
-rw-r--r--src/gallium/drivers/llvmpipe/lp_state_fs.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_state_fs.c b/src/gallium/drivers/llvmpipe/lp_state_fs.c
index f37c21f3fe2..320e2b72e43 100644
--- a/src/gallium/drivers/llvmpipe/lp_state_fs.c
+++ b/src/gallium/drivers/llvmpipe/lp_state_fs.c
@@ -66,7 +66,7 @@
#include "util/u_memory.h"
#include "util/u_format.h"
#include "util/u_debug_dump.h"
-#include "util/u_time.h"
+#include "os/os_time.h"
#include "pipe/p_shader_tokens.h"
#include "draw/draw_context.h"
#include "tgsi/tgsi_dump.h"
@@ -1111,14 +1111,14 @@ llvmpipe_update_fs(struct llvmpipe_context *lp)
}
if (!variant) {
- struct util_time t0, t1;
+ int64_t t0, t1;
int64_t dt;
- util_time_get(&t0);
+ t0 = os_time_get();
variant = generate_variant(lp, shader, &key);
- util_time_get(&t1);
- dt = util_time_diff(&t0, &t1);
+ t1 = os_time_get();
+ dt = t1 - t0;
LP_COUNT_ADD(llvm_compile_time, dt);
LP_COUNT_ADD(nr_llvm_compiles, 2); /* emit vs. omit in/out test */
}