blob: 2683afe4e3ec352327bd63b497e688e057d5759c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
From 6c320c1319f0ef0888d9a9be614c13e5756a3228 Mon Sep 17 00:00:00 2001
From: Grigory Kletsko <grigory.kletsko@cogentembedded.com>
Date: Wed, 2 Nov 2016 17:16:29 +0300
Subject: [PATCH 2/2] Get DMA fd on bo
---
src/compositor-drm.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/compositor-drm.c b/src/compositor-drm.c
index 09611a4..85c7d0a 100644
--- a/src/compositor-drm.c
+++ b/src/compositor-drm.c
@@ -143,6 +143,7 @@ struct drm_fb {
struct drm_output *output;
uint32_t fb_id, stride, handle, size;
int fd;
+ int dmafd;
int is_client_buffer;
struct weston_buffer_reference buffer_ref;
@@ -411,6 +412,8 @@ drm_fb_get_from_bo(struct gbm_bo *bo,
goto err_free;
}
+ fb->dmafd = gbm_bo_get_fd(bo);
+
gbm_bo_set_user_data(bo, fb, drm_fb_destroy_callback);
return fb;
--
2.7.4
|