summaryrefslogtreecommitdiff
path: root/lib/igt_fb.h
diff options
context:
space:
mode:
authorTomeu Vizoso <tomeu.vizoso@collabora.com>2016-02-24 09:04:41 +0100
committerDaniel Stone <daniels@collabora.com>2016-04-14 13:54:24 +0100
commit89b3ffe02c2a308c4663b6781ac1302c221932c2 (patch)
tree02412dc8c7cb22c0d65330b9b7ab278d52889cf7 /lib/igt_fb.h
parenta2d5b348ee0f9b51ef3b38393ce91ddbefbfaacb (diff)
lib: Map dumb buffers
If a buffer object is dumb, call DRM_IOCTL_MODE_MAP_DUMB when mapping it. Also, don't call DRM_IOCTL_I915_GEM_SET_DOMAIN on dumb buffers. 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_fb.h')
-rw-r--r--lib/igt_fb.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/igt_fb.h b/lib/igt_fb.h
index 03bc9880..c314aad0 100644
--- a/lib/igt_fb.h
+++ b/lib/igt_fb.h
@@ -46,6 +46,7 @@ typedef struct _cairo cairo_t;
/* helpers to create nice-looking framebuffers */
struct igt_fb {
uint32_t fb_id;
+ int fd;
uint32_t gem_handle;
uint32_t drm_format;
int width;