mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2026-01-03 02:20:17 +01:00
drm: send correct fb id to userspace
This commit is contained in:
parent
2520d3fd99
commit
1e8984a367
1 changed files with 5 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue