diff options
author | Brian Paul <[email protected]> | 2008-10-15 20:46:43 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2008-10-15 20:56:55 -0600 |
commit | 0116ee1d1c341726b6ed23c2dddc4515e8a34385 (patch) | |
tree | 33307d93cbb261ebd4b707b53380b371b66937c3 /src/gallium/drivers/cell/common.h | |
parent | 1c915b14a545ffb10cc1c98cc69f997b6471617f (diff) |
cell: start some performance measurements
Use the spu_write_decrementer() and spu_read_decrementer() functions to
measure time. Convert to milliseconds according to the system timebase value.
Diffstat (limited to 'src/gallium/drivers/cell/common.h')
-rw-r--r-- | src/gallium/drivers/cell/common.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/cell/common.h b/src/gallium/drivers/cell/common.h index 0ff2c491fbd..469d56cda80 100644 --- a/src/gallium/drivers/cell/common.h +++ b/src/gallium/drivers/cell/common.h @@ -299,6 +299,7 @@ struct cell_init_info unsigned id; unsigned num_spus; unsigned debug_flags; /**< mask of CELL_DEBUG_x flags */ + float inv_timebase; /**< 1.0/timebase, for perf measurement */ /** Buffers for command batches, vertex/index data */ ubyte *buffers[CELL_NUM_BUFFERS]; |