sna: Make sna_crtc_is_bound() valgrind clean

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2012-05-28 14:02:11 +01:00
parent 7973f6751c
commit 32ca3c7b65
1 changed files with 1 additions and 0 deletions

View File

@ -393,6 +393,7 @@ bool sna_crtc_is_bound(struct sna *sna, xf86CrtcPtr crtc)
{
struct drm_mode_crtc mode;
VG_CLEAR(mode);
mode.crtc_id = crtc_id(crtc->driver_private);
if (drmIoctl(sna->kgem.fd, DRM_IOCTL_MODE_GETCRTC, &mode))
return false;