sna: Make sna_crtc_is_bound() valgrind clean
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
7973f6751c
commit
32ca3c7b65
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue