mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
xv: Remove dead VIDEO_NO_CLIPPING from the xorg and kdrive DDXes.
As far as I can see, nothing has ever used this flag except possibly the i.mx6 xorg ddx debug during bringup. Signed-off-by: Eric Anholt <eric@anholt.net> Reviewed-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
@@ -664,18 +664,6 @@ KdXVReputVideo(XvPortRecPrivatePtr portPriv)
|
||||
goto CLIP_VIDEO_BAILOUT;
|
||||
}
|
||||
|
||||
/* bailout if we have to clip but the hardware doesn't support it */
|
||||
if (portPriv->AdaptorRec->flags & VIDEO_NO_CLIPPING) {
|
||||
BoxPtr clipBox = RegionRects(&ClipRegion);
|
||||
|
||||
if ((RegionNumRects(&ClipRegion) != 1) ||
|
||||
(clipBox->x1 != WinBox.x1) || (clipBox->x2 != WinBox.x2) ||
|
||||
(clipBox->y1 != WinBox.y1) || (clipBox->y2 != WinBox.y2)) {
|
||||
clippedAway = TRUE;
|
||||
goto CLIP_VIDEO_BAILOUT;
|
||||
}
|
||||
}
|
||||
|
||||
ret = (*portPriv->AdaptorRec->PutVideo) (portPriv->screen, portPriv->pDraw,
|
||||
portPriv->vid_x, portPriv->vid_y,
|
||||
WinBox.x1, WinBox.y1,
|
||||
@@ -752,18 +740,6 @@ KdXVReputImage(XvPortRecPrivatePtr portPriv)
|
||||
goto CLIP_VIDEO_BAILOUT;
|
||||
}
|
||||
|
||||
/* bailout if we have to clip but the hardware doesn't support it */
|
||||
if (portPriv->AdaptorRec->flags & VIDEO_NO_CLIPPING) {
|
||||
BoxPtr clipBox = RegionRects(&ClipRegion);
|
||||
|
||||
if ((RegionNumRects(&ClipRegion) != 1) ||
|
||||
(clipBox->x1 != WinBox.x1) || (clipBox->x2 != WinBox.x2) ||
|
||||
(clipBox->y1 != WinBox.y1) || (clipBox->y2 != WinBox.y2)) {
|
||||
clippedAway = TRUE;
|
||||
goto CLIP_VIDEO_BAILOUT;
|
||||
}
|
||||
}
|
||||
|
||||
ret =
|
||||
(*portPriv->AdaptorRec->ReputImage) (portPriv->screen, portPriv->pDraw,
|
||||
WinBox.x1, WinBox.y1, &ClipRegion,
|
||||
@@ -1251,17 +1227,6 @@ KdXVPutStill(ClientPtr client,
|
||||
goto PUT_STILL_BAILOUT;
|
||||
}
|
||||
|
||||
if (portPriv->AdaptorRec->flags & VIDEO_NO_CLIPPING) {
|
||||
BoxPtr clipBox = RegionRects(&ClipRegion);
|
||||
|
||||
if ((RegionNumRects(&ClipRegion) != 1) ||
|
||||
(clipBox->x1 != WinBox.x1) || (clipBox->x2 != WinBox.x2) ||
|
||||
(clipBox->y1 != WinBox.y1) || (clipBox->y2 != WinBox.y2)) {
|
||||
clippedAway = TRUE;
|
||||
goto PUT_STILL_BAILOUT;
|
||||
}
|
||||
}
|
||||
|
||||
ret = (*portPriv->AdaptorRec->PutStill) (portPriv->screen, pDraw,
|
||||
vid_x, vid_y, WinBox.x1, WinBox.y1,
|
||||
vid_w, vid_h, drw_w, drw_h,
|
||||
@@ -1541,17 +1506,6 @@ KdXVPutImage(ClientPtr client,
|
||||
goto PUT_IMAGE_BAILOUT;
|
||||
}
|
||||
|
||||
if (portPriv->AdaptorRec->flags & VIDEO_NO_CLIPPING) {
|
||||
BoxPtr clipBox = RegionRects(&ClipRegion);
|
||||
|
||||
if ((RegionNumRects(&ClipRegion) != 1) ||
|
||||
(clipBox->x1 != WinBox.x1) || (clipBox->x2 != WinBox.x2) ||
|
||||
(clipBox->y1 != WinBox.y1) || (clipBox->y2 != WinBox.y2)) {
|
||||
clippedAway = TRUE;
|
||||
goto PUT_IMAGE_BAILOUT;
|
||||
}
|
||||
}
|
||||
|
||||
ret = (*portPriv->AdaptorRec->PutImage) (portPriv->screen, pDraw,
|
||||
src_x, src_y, WinBox.x1, WinBox.y1,
|
||||
src_w, src_h, drw_w, drw_h,
|
||||
|
||||
@@ -50,7 +50,6 @@ of the copyright holder.
|
||||
|
||||
#include "../../Xext/xvdix.h"
|
||||
|
||||
#define VIDEO_NO_CLIPPING 0x00000001
|
||||
#define VIDEO_OVERLAID_IMAGES 0x00000004
|
||||
#define VIDEO_OVERLAID_STILLS 0x00000008
|
||||
#define VIDEO_CLIP_TO_VIEWPORT 0x00000010
|
||||
|
||||
Reference in New Issue
Block a user