summaryrefslogtreecommitdiff
path: root/drm-atomic.c
diff options
context:
space:
mode:
authorLucas Stach <l.stach@pengutronix.de>2017-04-28 18:18:53 +0200
committerRob Clark <robdclark@gmail.com>2017-04-29 10:21:50 -0400
commita46366c9903efc8b63eb4e78ae72f869be0b0a3d (patch)
tree20e668cad5fc7bbfdd490351d50ae4e1052c0d82 /drm-atomic.c
parent5816934b875f7fd01061a7a9b72d8b6eff99910f (diff)
downloadkmscube-a46366c9903efc8b63eb4e78ae72f869be0b0a3d.tar.gz
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 <p.zabel@pengutronix.de> Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Rob Clark <robdclark@gmail.com>
Diffstat (limited to 'drm-atomic.c')
-rw-r--r--drm-atomic.c5
1 files changed, 3 insertions, 2 deletions
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)