From a46366c9903efc8b63eb4e78ae72f869be0b0a3d Mon Sep 17 00:00:00 2001 From: Lucas Stach Date: Fri, 28 Apr 2017 18:18:53 +0200 Subject: drm-atomic: init out_fence_fd to -1 The current initial value of 0 is a valid fd, so this will trip up the GPU submit on the first render, when used as an IN fence for rendering. Reported-by: Philipp Zabel Signed-off-by: Lucas Stach Signed-off-by: Rob Clark --- drm-atomic.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'drm-atomic.c') diff --git a/drm-atomic.c b/drm-atomic.c index c06e52f..0f3c4f2 100644 --- a/drm-atomic.c +++ b/drm-atomic.c @@ -33,8 +33,9 @@ #define VOID2U64(x) ((uint64_t)(unsigned long)(x)) -static struct drm drm; - +static struct drm drm = { + .kms_out_fence_fd = -1, +}; static int add_connector_property(drmModeAtomicReq *req, uint32_t obj_id, const char *name, uint64_t value) -- cgit v1.2.1