diff options
author | Jesse Barnes <jbarnes@virtuousgeek.org> | 2009-03-30 14:35:30 -0700 |
---|---|---|
committer | Jesse Barnes <jbarnes@virtuousgeek.org> | 2009-03-30 14:37:04 -0700 |
commit | cd5c66c659168cbe2e3229ebf8be79f764ed0ee1 (patch) | |
tree | aad537d3d0fcba6ab5ee0806587db84dea2081b3 /tests/ttmtest/src/xf86dristr.h | |
parent | 93e65271601e6a1c7c90453f2f13157ae24b35c2 (diff) |
libdrm: speed up connector & mode fetching
This patch speeds up drmModeGetConnector by pre-allocating mode &
property info space before calling into the kernel. In many cases this
pre-allocation will be sufficient to hold the returned values (it's easy
enough to tweak if the common case becomes larger), which means we don't
have to make the second call, which saves a lot of time.
Acked-by: Jakob Bornecrantz <wallbraker@gmail.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'tests/ttmtest/src/xf86dristr.h')
0 files changed, 0 insertions, 0 deletions