diff options
author | Tomeu Vizoso <tomeu.vizoso@collabora.com> | 2016-03-07 16:37:36 +0100 |
---|---|---|
committer | Daniel Stone <daniels@collabora.com> | 2016-04-14 13:54:24 +0100 |
commit | fb66a5df937b44b594f17a30663938250c759b35 (patch) | |
tree | e3e7db9216fb49cc66abd970cab0f70d28efae95 /lib/igt_kms.h | |
parent | dc84e7d6ada3c4dbf07a5cfafdbdd597ab03c635 (diff) |
lib: Add helper kmstest_dumb_map_buffer
Which basically just calls DRM_IOCTL_MODE_MAP_DUMB and is similar to
gem_mmap__gtt().
Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Reviewed-by: Daniel Stone <daniels@collabora.com>
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'lib/igt_kms.h')
-rw-r--r-- | lib/igt_kms.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/igt_kms.h b/lib/igt_kms.h index 7bf51b15..2c189ed4 100644 --- a/lib/igt_kms.h +++ b/lib/igt_kms.h @@ -178,6 +178,9 @@ uint32_t kmstest_find_crtc_for_connector(int fd, drmModeRes *res, uint32_t kmstest_dumb_create(int fd, int width, int height, int bpp, unsigned *stride, unsigned *size); +void *kmstest_dumb_map_buffer(int fd, uint32_t handle, uint64_t size, + unsigned prot); + /* * A small modeset API */ |