diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2009-06-30 13:12:43 +0200 |
---|---|---|
committer | Ian Romanick <ian.d.romanick@intel.com> | 2009-07-01 15:38:54 -0700 |
commit | 5ef4d3cde1335350d82469ebbaed1b547a59552c (patch) | |
tree | d006920e18460b2338d2605813986a38febfea46 /src/i830_video.c | |
parent | 1e4784bf26e3c154f5673f7b5add3ef7af3b1474 (diff) |
Xv: kill unneeded indirection
overlay and textured video have the exact same QueryImageAttributes
function.
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'src/i830_video.c')
-rw-r--r-- | src/i830_video.c | 28 |
1 files changed, 4 insertions, 24 deletions
diff --git a/src/i830_video.c b/src/i830_video.c index d543cc44..9e70d893 100644 --- a/src/i830_video.c +++ b/src/i830_video.c @@ -101,10 +101,8 @@ static void I830QueryBestSize(ScrnInfoPtr, Bool, static int I830PutImage(ScrnInfoPtr, short, short, short, short, short, short, short, short, int, unsigned char *, short, short, Bool, RegionPtr, pointer, DrawablePtr); -static int I830QueryImageAttributesOverlay(ScrnInfoPtr, int, unsigned short *, +static int I830QueryImageAttributes(ScrnInfoPtr, int, unsigned short *, unsigned short *, int *, int *); -static int I830QueryImageAttributesTextured(ScrnInfoPtr, int, unsigned short *, - unsigned short *, int *, int *); #define MAKE_ATOM(a) MakeAtom(a, sizeof(a) - 1, TRUE) @@ -883,7 +881,7 @@ I830SetupImageVideoOverlay(ScreenPtr pScreen) adapt->GetPortAttribute = I830GetPortAttribute; adapt->QueryBestSize = I830QueryBestSize; adapt->PutImage = I830PutImage; - adapt->QueryImageAttributes = I830QueryImageAttributesOverlay; + adapt->QueryImageAttributes = I830QueryImageAttributes; pPriv->textured = FALSE; pPriv->colorKey = pI830->colorKey & ((1 << pScrn->depth) - 1); @@ -999,7 +997,7 @@ I830SetupImageVideoTextured(ScreenPtr pScreen) adapt->GetPortAttribute = I830GetPortAttribute; adapt->QueryBestSize = I830QueryBestSize; adapt->PutImage = I830PutImage; - adapt->QueryImageAttributes = I830QueryImageAttributesTextured; + adapt->QueryImageAttributes = I830QueryImageAttributes; for (i = 0; i < nports; i++) { I830PortPrivPtr pPriv = &portPrivs[i]; @@ -2554,7 +2552,7 @@ static int I830QueryImageAttributes(ScrnInfoPtr pScrn, int id, unsigned short *w, unsigned short *h, - int *pitches, int *offsets, Bool textured) + int *pitches, int *offsets) { I830Ptr pI830 = I830PTR(pScrn); int size, tmp; @@ -2635,24 +2633,6 @@ I830QueryImageAttributes(ScrnInfoPtr pScrn, return size; } -static int -I830QueryImageAttributesOverlay(ScrnInfoPtr pScrn, - int id, - unsigned short *w, unsigned short *h, - int *pitches, int *offsets) -{ - return I830QueryImageAttributes(pScrn, id, w, h, pitches, offsets, FALSE); -} - -static int -I830QueryImageAttributesTextured(ScrnInfoPtr pScrn, - int id, - unsigned short *w, unsigned short *h, - int *pitches, int *offsets) -{ - return I830QueryImageAttributes(pScrn, id, w, h, pitches, offsets, TRUE); -} - void I830VideoBlockHandler(int i, pointer blockData, pointer pTimeout, pointer pReadmask) |