drm/nouveau: Implement the vblank DRM hooks.
Signed-off-by: Francisco Jerez <currojerez@riseup.net> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
This commit is contained in:

committed by
Ben Skeggs

parent
63f7fcfebd
commit
042206c0cd
@@ -1200,11 +1200,15 @@ nv50_pgraph_irq_handler(struct drm_device *dev)
|
||||
static void
|
||||
nouveau_crtc_irq_handler(struct drm_device *dev, int crtc)
|
||||
{
|
||||
if (crtc & 1)
|
||||
if (crtc & 1) {
|
||||
nv_wr32(dev, NV_CRTC0_INTSTAT, NV_CRTC_INTR_VBLANK);
|
||||
drm_handle_vblank(dev, 0);
|
||||
}
|
||||
|
||||
if (crtc & 2)
|
||||
if (crtc & 2) {
|
||||
nv_wr32(dev, NV_CRTC1_INTSTAT, NV_CRTC_INTR_VBLANK);
|
||||
drm_handle_vblank(dev, 1);
|
||||
}
|
||||
}
|
||||
|
||||
irqreturn_t
|
||||
|
Reference in New Issue
Block a user