sna/sprite: Add a DBG to report whether the kernel supports sprites

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2012-12-06 22:08:08 +00:00
parent 25c0d440de
commit aa8c5d8201
1 changed files with 1 additions and 0 deletions

View File

@ -380,6 +380,7 @@ XF86VideoAdaptorPtr sna_video_sprite_setup(struct sna *sna,
memset(&r, 0, sizeof(struct drm_mode_get_plane_res));
if (drmIoctl(sna->kgem.fd, DRM_IOCTL_MODE_GETPLANERESOURCES, &r))
return NULL;
DBG(("%s: %d sprite planes\n", __FUNCTION__, r.count_planes));
if (r.count_planes == 0)
return NULL;