i965: Stop throwing away our double precision for time calculations.

Fixes negative times being reported in our perf debug.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
Eric Anholt 2014-02-20 14:54:29 -08:00
parent f2f337c6d5
commit c2ebbe2728
3 changed files with 4 additions and 4 deletions

View file

@ -3506,7 +3506,7 @@ brw_wm_fs_emit(struct brw_context *brw, struct brw_wm_compile *c,
unsigned *final_assembly_size)
{
bool start_busy = false;
float start_time = 0;
double start_time = 0;
if (unlikely(brw->perf_debug)) {
start_busy = (brw->batch.last_bo &&

View file

@ -1651,7 +1651,7 @@ brw_vs_emit(struct brw_context *brw,
unsigned *final_assembly_size)
{
bool start_busy = false;
float start_time = 0;
double start_time = 0;
if (unlikely(brw->perf_debug)) {
start_busy = (brw->batch.last_bo &&

View file

@ -55,7 +55,7 @@ brw_bo_map(struct brw_context *brw,
if (likely(!brw->perf_debug) || !drm_intel_bo_busy(bo))
return drm_intel_bo_map(bo, write_enable);
float start_time = get_time();
double start_time = get_time();
int ret = drm_intel_bo_map(bo, write_enable);
@ -71,7 +71,7 @@ brw_bo_map_gtt(struct brw_context *brw, drm_intel_bo *bo, const char *bo_name)
if (likely(!brw->perf_debug) || !drm_intel_bo_busy(bo))
return drm_intel_gem_bo_map_gtt(bo);
float start_time = get_time();
double start_time = get_time();
int ret = drm_intel_gem_bo_map_gtt(bo);