summaryrefslogtreecommitdiff
path: root/unichrome/via_video.c
diff options
context:
space:
mode:
authorIvor Hewitt <ivor@ivor.org>2006-02-19 22:06:20 +0000
committerIvor Hewitt <ivor@ivor.org>2006-02-19 22:06:20 +0000
commiteaa3041a4e8aa92e3adf46534f4f12e5f1358667 (patch)
tree22cccec3d5dc9142eae91526e4115c2385cf2b88 /unichrome/via_video.c
parentb9633606389f140fe583660191ef25f7b3df65ca (diff)
VM800 Xv support
Diffstat (limited to 'unichrome/via_video.c')
-rw-r--r--unichrome/via_video.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/unichrome/via_video.c b/unichrome/via_video.c
index dde3d4c..ce16912 100644
--- a/unichrome/via_video.c
+++ b/unichrome/via_video.c
@@ -237,7 +237,8 @@ static Bool DecideOverlaySupport(ScrnInfoPtr pScrn)
if ( pVia->ChipId != PCI_CHIP_VT3205 &&
pVia->ChipId != PCI_CHIP_VT3204 &&
- pVia->ChipId != PCI_CHIP_VT3259) {
+ pVia->ChipId != PCI_CHIP_VT3259 &&
+ pVia->ChipId != PCI_CHIP_VT3314) {
CARD32 bandwidth = (mode->HDisplay >> 4) * (mode->VDisplay >> 5) *
pScrn->bitsPerPixel * mode->VRefresh;
@@ -509,7 +510,8 @@ void viaInitVideo(ScreenPtr pScreen)
((pVia->Chipset == VIA_CLE266) ||
(pVia->Chipset == VIA_KM400) ||
(pVia->Chipset == VIA_K8M800) ||
- (pVia->Chipset == VIA_PM800));
+ (pVia->Chipset == VIA_PM800) ||
+ (pVia->Chipset == VIA_VM800));
if ((pVia->drmVerMajor < 2) ||
((pVia->drmVerMajor == 2) &&
(pVia->drmVerMinor < 9)))
@@ -524,7 +526,8 @@ void viaInitVideo(ScreenPtr pScreen)
viaFastVidCpy = viaVidCopyInit("video", pScreen);
if ( (pVia->Chipset == VIA_CLE266) || (pVia->Chipset == VIA_KM400) ||
- (pVia->Chipset == VIA_K8M800) || (pVia->Chipset == VIA_PM800)) {
+ (pVia->Chipset == VIA_K8M800) || (pVia->Chipset == VIA_PM800) ||
+ (pVia->Chipset == VIA_VM800)) {
num_new = viaSetupAdaptors(pScreen, &newAdaptors);
num_adaptors = xf86XVListGenericAdaptors(pScrn, &adaptors);
} else {
@@ -996,7 +999,7 @@ viaDmaBlitImage(VIAPtr pVia,
Bool nv12Conversion;
bounceBuffer = ((unsigned long)src & 15);
- nv12Conversion = ((pVia->ChipId == PCI_CHIP_VT3259) && (id == FOURCC_YV12));
+ nv12Conversion = ((pVia->ChipId == PCI_CHIP_VT3259) && (id == FOURCC_YV12));
switch(id) {
case FOURCC_YUY2: