summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Hellström <thomas@shipmail.org>2008-10-29 10:58:39 +0000
committerThomas Hellström <thomas@shipmail.org>2008-10-29 10:58:39 +0000
commit6cceb82e310687f3e20cba729cdedcec9985f94e (patch)
treeb23bb2a0578406a2f530a4a81d3dc7134eaf77b5
parentf6ece3fb0067584d54e4b91bca76f08a70767adb (diff)
Generate HQV irq on CME video engines
-rw-r--r--src/via_video.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/via_video.c b/src/via_video.c
index 723283c..18384b9 100644
--- a/src/via_video.c
+++ b/src/via_video.c
@@ -1063,7 +1063,6 @@ viaVideoFlip(VIAPtr pVia, int fourcc,
unsigned long proReg = 0x200;
uint64_t hqvFlag = VIA_BO_FLAG_HQV0;
struct _HQVBuffer *hqvBuf = &pVia->swov.SWDevice.hqvBuf[DisplayBufferIndex];
-
int ret;
RING_VARS;
BEGIN_RING_H6(8);
@@ -1114,6 +1113,9 @@ viaVideoFlip(VIAPtr pVia, int fourcc,
break;
}
+ if (pVia->VideoEngine == VIDEO_ENGINE_CME)
+ pVia->swov.hqvCtl |= HQV_GEN_IRQ;
+
OUT_RING_QW(HQV_CONTROL + proReg,
(pVia->swov.hqvCtl & ~HQV_FLIP_ODD) |
HQV_SW_FLIP | HQV_FLIP_STATUS);