diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2016-02-13 08:46:58 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2016-02-13 08:49:20 +0000 |
commit | 8f04d6721fe0ac844fa66df3167a779bac236138 (patch) | |
tree | 0d8bfdd5aa384e8354e9d5c95525c456873de416 /src/sna/sna_dri2.c | |
parent | 9df8119e1e8216d11a116fdc28c1b499a521ef8b (diff) |
sna/dri2: Initialize priv->cache_size
Silence a valgrind warning, though it should have no runtime impace.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/sna_dri2.c')
-rw-r--r-- | src/sna/sna_dri2.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/sna/sna_dri2.c b/src/sna/sna_dri2.c index 045b12d6..fcfbd9d9 100644 --- a/src/sna/sna_dri2.c +++ b/src/sna/sna_dri2.c @@ -1519,6 +1519,7 @@ draw_current_msc(DrawablePtr draw, xf86CrtcPtr crtc, uint64_t msc) priv->msc_delta = 0; priv->chain = NULL; priv->scanout = -1; + priv->cache_size = 0; list_init(&priv->cache); dri2_window_attach((WindowPtr)draw, priv); } |