From d94d058b7977647b28aba627d6bab04c13f25c7a Mon Sep 17 00:00:00 2001 From: Luc Verhaegen Date: Mon, 10 Aug 2009 17:59:28 +0200 Subject: XvMC: Send QMatrix to the hw. --- src/via_mpeg.h | 1 + src/via_xvmc.c | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/via_mpeg.h b/src/via_mpeg.h index c56d8b3..c7bd9dc 100644 --- a/src/via_mpeg.h +++ b/src/via_mpeg.h @@ -101,5 +101,6 @@ int ViaMpegSliceInit(struct ViaMpeg *Mpeg, XID BufferID, XID FRefID, XID BRefID, CARD8 PictureCoding, CARD8 IntraDCPrecision, CARD8 Flags); int ViaMpegSlicePut(struct ViaMpeg *Mpeg, XID BufferID, CARD8 SliceCode, CARD32 SliceLength, CARD8 *Slice); +void ViaMpegQMatrix(struct ViaMpeg *Mpeg, CARD32 Type, CARD8 Matrix[64]); #endif /* HAVE_VIA_MPEG_H */ diff --git a/src/via_xvmc.c b/src/via_xvmc.c index 7a2f568..7b2ded9 100644 --- a/src/via_xvmc.c +++ b/src/via_xvmc.c @@ -122,9 +122,7 @@ XvMCEProcQMatrixSend(ClientPtr client) return BadLength; } - ViaDebug(pScrn->scrnIndex, "%s: type %1X\n", __func__, stuff->Type); - - /* !!!! upload to hw here. !!!! */ + ViaMpegQMatrix(VIAPTR(pScrn)->Swov->Mpeg, stuff->Type, (CARD8 *) &stuff[1]); return (client->noClientException); } -- cgit v1.2.3