[Mesa-dev] [PATCH 4/4] atomic: Initialise fence FD members
Daniel Stone
daniels at collabora.com
Tue May 2 10:52:09 UTC 2017
...
Signed-off-by: Daniel Stone <daniels at collabora.com>
---
drm-atomic.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drm-atomic.c b/drm-atomic.c
index 25e04b1..6fb40fd 100644
--- a/drm-atomic.c
+++ b/drm-atomic.c
@@ -368,6 +368,9 @@ const struct drm * init_drm_atomic(const char *device)
drm.crtc = calloc(1, sizeof(*drm.crtc));
drm.connector = calloc(1, sizeof(*drm.connector));
+ drm.kms_in_fence_fd = -1;
+ drm.kms_out_fence_fd = -1;
+
#define get_resource(type, Type, id) do { \
drm.type->type = drmModeGet##Type(drm.fd, id); \
if (!drm.type->type) { \
--
2.12.2
More information about the mesa-dev
mailing list