From: <th...@tu...> - 2007-01-30 14:43:34
|
Hi! I've added a small test utility for the TTM buffer object functionality in drm/tests/ttmtest. It benchmarks various simple buffer operations like binding, writing, reading in some various memory types / regions: system, GTT and cache coherent GTT. It's not really complete and one could for example add options for buffer size etc. Typical output for a 4MB buffer is attached. Experimenting with the buffer size will show bottlenecks, for example the binding / unbinding latency when binding to uncached GTT. It's also an example of how a small general-purpose DRI client (XvMC etc.) can be made. In the end, the DRI client protocol code should probably end up in a separate lib. /Thomas |