drm/bochs: Store correct CRTC index in events
authorThierry Reding <treding@nvidia.com>
Tue, 15 Dec 2015 11:20:50 +0000 (12:20 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 15 Dec 2015 12:35:48 +0000 (13:35 +0100)
commit20143598f731b71e35cba82ad29dc9d2e3788323
treeb9260f006bbe710dd6851d0945d2b25c60037de0
parent4f250706211cdb949f7580d4fe4dd1fd646de693
drm/bochs: Store correct CRTC index in events

Previously a negative pipe caused a special case to be triggered for
drivers that didn't have proper VBLANK support. The trigger for this
special case is now independent of the pipe, so the correct CRTC index
can now be stored in events.

v2: convert to use drm_crtc_send_vblank_event()

Cc: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1450178476-26284-3-git-send-email-boris.brezillon@free-electrons.com
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/bochs/bochs_kms.c