aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJon Smirl2005-07-11 13:27:39 -0500
committerJon Smirl2005-07-11 13:27:39 -0500
commit7130662aa0c476a56a4a053c6dda19bc3a91060a (patch)
treecce17c36f067e75dacb988374838b1d34d625d78
parent07d23f9c60f9358f064eab7d944f3b28484b51ef (diff)
downloadexternal-libgbm-7130662aa0c476a56a4a053c6dda19bc3a91060a.tar.gz
external-libgbm-7130662aa0c476a56a4a053c6dda19bc3a91060a.tar.xz
external-libgbm-7130662aa0c476a56a4a053c6dda19bc3a91060a.zip
IRQ must be assigned and enabled or this will hang
-rw-r--r--linux-core/drm_irq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-core/drm_irq.c b/linux-core/drm_irq.c
index 37c89762..7f21205d 100644
--- a/linux-core/drm_irq.c
+++ b/linux-core/drm_irq.c
@@ -250,7 +250,7 @@ int drm_wait_vblank(DRM_IOCTL_ARGS)
250 if (!drm_core_check_feature(dev, DRIVER_IRQ_VBL)) 250 if (!drm_core_check_feature(dev, DRIVER_IRQ_VBL))
251 return -EINVAL; 251 return -EINVAL;
252 252
253 if (!dev->irq) 253 if ((!dev->irq) || (!dev->irq_enabled))
254 return -EINVAL; 254 return -EINVAL;
255 255
256 DRM_COPY_FROM_USER_IOCTL(vblwait, argp, sizeof(vblwait)); 256 DRM_COPY_FROM_USER_IOCTL(vblwait, argp, sizeof(vblwait));