diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2012-05-30 07:47:53 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2012-05-30 07:47:53 +0100 |
commit | e1b720c40cf511b4ed6d387891d715522d0d54b6 (patch) | |
tree | 202157c5a7a7f03b6288f785362b19921aeb724e /src/sna/sna_video_sprite.c | |
parent | e986b06162abf286b3f8f97b791fd66dcf8f9aec (diff) |
sna/sprite: Restore another xf86drm.h
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/sna_video_sprite.c')
-rw-r--r-- | src/sna/sna_video_sprite.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/sna/sna_video_sprite.c b/src/sna/sna_video_sprite.c index fff31fb3..8c3cdaa9 100644 --- a/src/sna/sna_video_sprite.c +++ b/src/sna/sna_video_sprite.c @@ -33,6 +33,7 @@ #include "intel_options.h" +#include <xf86drm.h> #include <xf86xv.h> #include <X11/extensions/Xv.h> #include <fourcc.h> @@ -197,9 +198,9 @@ sna_video_sprite_show(struct sna *sna, set.plane_id = plane; set.value = video->color_key; - if (drmCommandWrite(sna->kgem.fd, - DRM_I915_SET_SPRITE_DESTKEY, - &set, sizeof(set))) + if (drmIoctl(sna->kgem.fd, + DRM_IOCTL_I915_SET_SPRITE_DESTKEY, + &set)) xf86DrvMsg(sna->scrn->scrnIndex, X_ERROR, "failed to update color key\n"); |