drm: send correct fb id to userspace

This commit is contained in:
Dave Airlie 2007-11-15 18:31:23 +11:00
parent 2520d3fd99
commit 1e8984a367

View file

@ -1271,7 +1271,11 @@ int drm_mode_getcrtc(struct drm_device *dev,
crtc_resp->x = crtc->x;
crtc_resp->y = crtc->y;
crtc_resp->fb_id = 1;
if (crtc->fb)
crtc_resp->fb_id = crtc->fb->id;
else
crtc_resp->fb_id = 0;
crtc_resp->outputs = 0;
if (crtc->enabled) {