aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver/hw/nxagent
diff options
context:
space:
mode:
Diffstat (limited to 'nx-X11/programs/Xserver/hw/nxagent')
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/Render.c219
1 files changed, 0 insertions, 219 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Render.c b/nx-X11/programs/Xserver/hw/nxagent/Render.c
index 5bd78eff0..6113a419a 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Render.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Render.c
@@ -161,20 +161,8 @@ void nxagentTrapezoids(CARD8 op, PicturePtr pSrc, PicturePtr pDst,
PictFormatPtr maskFormat, INT16 xSrc, INT16 ySrc,
int ntrap, xTrapezoid *traps);
-void nxagentTriangles(CARD8 op, PicturePtr pSrc, PicturePtr pDst,
- PictFormatPtr maskFormat, INT16 xSrc, INT16 ySrc,
- int ntri, xTriangle *tris);
-
-void nxagentTriStrip(CARD8 op, PicturePtr pSrc, PicturePtr pDst,
- PictFormatPtr maskFormat, INT16 xSrc, INT16 ySrc,
- int npoint, xPointFixed *points);
-
void nxagentChangePicture(PicturePtr pPicture, Mask mask);
-void nxagentTriFan(CARD8 op, PicturePtr pSrc, PicturePtr pDst,
- PictFormatPtr maskFormat, INT16 xSrc, INT16 ySrc,
- int npoint, xPointFixed *points);
-
void nxagentReferenceGlyphSet(GlyphSetPtr glyphSet);
void nxagentFreeGlyphs(GlyphSetPtr glyphSet, CARD32 *gids, int nglyph);
@@ -1877,213 +1865,6 @@ FIXME: Is this useful or just a waste of bandwidth?
#endif
}
-void nxagentTriangles(CARD8 op, PicturePtr pSrc, PicturePtr pDst,
- PictFormatPtr maskFormat, INT16 xSrc, INT16 ySrc,
- int ntri, xTriangle *tris)
-{
- #ifdef DEBUG
- fprintf(stderr, "nxagentTriangles: Source [%p] Destination [%p] Coordinates [%d,%d] Elements [%d].\n",
- (void *) pSrc, (void *) pDst, xSrc, ySrc, ntri);
- #endif
-
- if (pSrc == NULL || pDst == NULL)
- {
- return;
- }
-
- XRenderPictFormat *pForm = NULL;
-
- if (maskFormat != NULL)
- {
- pForm = nxagentMatchingFormats(maskFormat);
- nxagentPrintFormat(pForm);
-
- if (pForm == NULL)
- {
- return;
- }
- }
-
- /*
- * If the X_RenderCompositeTriangles requests
- * increment the traffic, we can defer the
- * operation like nxagentTrapezoids() does.
- */
-
- if (pSrc -> pDrawable != NULL &&
- nxagentDrawableStatus(pSrc -> pDrawable) == NotSynchronized)
- {
- #ifdef TEST
- fprintf(stderr, "nxagentTriangles: Going to synchronize the source drawable at [%p].\n",
- (void *) pSrc -> pDrawable);
- #endif
-
- nxagentSynchronizeDrawable(pSrc -> pDrawable, DO_WAIT, NEVER_BREAK, NULL);
- }
-
- if (nxagentDrawableStatus(pDst -> pDrawable) == NotSynchronized)
- {
- #ifdef TEST
- fprintf(stderr, "nxagentTriangles: Going to synchronize the destination drawable at [%p].\n",
- (void *) pDst -> pDrawable);
- #endif
-
- nxagentSynchronizeDrawable(pDst -> pDrawable, DO_WAIT, NEVER_BREAK, NULL);
- }
-
- XRenderCompositeTriangles(nxagentDisplay,
- op,
- nxagentPicturePriv(pSrc) -> picture,
- nxagentPicturePriv(pDst) -> picture,
- pForm,
- xSrc,
- ySrc,
- (XTriangle*)tris,
- ntri);
-
- #ifdef DEBUG
- XSync(nxagentDisplay, 0);
- #endif
-}
-
-void nxagentTriStrip(CARD8 op, PicturePtr pSrc, PicturePtr pDst,
- PictFormatPtr maskFormat, INT16 xSrc, INT16 ySrc,
- int npoint, xPointFixed *points)
-{
- #ifdef DEBUG
- fprintf(stderr, "nxagentTriStrip: Source [%p] Destination [%p] Coordinates [%d,%d] Elements [%d].\n",
- (void *) pSrc, (void *) pDst, xSrc, ySrc, npoint);
- #endif
-
- if (pSrc == NULL || pDst == NULL)
- {
- return;
- }
-
- XRenderPictFormat *pForm = NULL;
-
- if (maskFormat != NULL)
- {
- pForm = nxagentMatchingFormats(maskFormat);
- nxagentPrintFormat(pForm);
-
- if (pForm == NULL)
- {
- return;
- }
- }
-
- /*
- * If the X_RenderCompositeTriStrip requests
- * increment the traffic, we can defer the
- * operation like nxagentTrapezoids() does.
- */
-
- if (pSrc -> pDrawable != NULL &&
- nxagentDrawableStatus(pSrc -> pDrawable) == NotSynchronized)
- {
- #ifdef TEST
- fprintf(stderr, "nxagentTriStrip: Going to synchronize the source drawable at [%p].\n",
- (void *) pSrc -> pDrawable);
- #endif
-
- nxagentSynchronizeDrawable(pSrc -> pDrawable, DO_WAIT, NEVER_BREAK, NULL);
- }
-
- if (nxagentDrawableStatus(pDst -> pDrawable) == NotSynchronized)
- {
- #ifdef TEST
- fprintf(stderr, "nxagentTriStrip: Going to synchronize the destination drawable at [%p].\n",
- (void *) pDst -> pDrawable);
- #endif
-
- nxagentSynchronizeDrawable(pDst -> pDrawable, DO_WAIT, NEVER_BREAK, NULL);
- }
-
- XRenderCompositeTriStrip(nxagentDisplay,
- op,
- nxagentPicturePriv(pSrc) -> picture,
- nxagentPicturePriv(pDst) -> picture,
- pForm,
- xSrc,
- ySrc,
- (XPointFixed*)points,
- npoint);
-
- #ifdef DEBUG
- XSync(nxagentDisplay, 0);
- #endif
-}
-
-void nxagentTriFan(CARD8 op, PicturePtr pSrc, PicturePtr pDst,
- PictFormatPtr maskFormat, INT16 xSrc, INT16 ySrc,
- int npoint, xPointFixed *points)
-{
- #ifdef DEBUG
- fprintf(stderr, "nxagentTriFan: Source [%p] Destination [%p] Coordinates [%d,%d] Elements [%d].\n",
- (void *) pSrc, (void *) pDst, xSrc, ySrc, npoint);
- #endif
-
- if (pSrc == NULL || pDst == NULL)
- {
- return;
- }
-
- XRenderPictFormat *pForm = NULL;
-
- if (maskFormat != NULL)
- {
- pForm = nxagentMatchingFormats(maskFormat);
- nxagentPrintFormat(pForm);
-
- if (pForm == NULL)
- {
- return;
- }
- }
-
- /*
- * If the X_RenderCompositeTriFan requests
- * increment the traffic, we can defer the
- * operation like nxagentTrapezoids() does.
- */
-
- if (pSrc -> pDrawable != NULL &&
- nxagentDrawableStatus(pSrc -> pDrawable) == NotSynchronized)
- {
- #ifdef TEST
- fprintf(stderr, "nxagentTriFan: Going to synchronize the source drawable at [%p].\n",
- (void *) pSrc -> pDrawable);
- #endif
-
- nxagentSynchronizeDrawable(pSrc -> pDrawable, DO_WAIT, NEVER_BREAK, NULL);
- }
-
- if (nxagentDrawableStatus(pDst -> pDrawable) == NotSynchronized)
- {
- #ifdef TEST
- fprintf(stderr, "nxagentTriFan: Going to synchronize the destination drawable at [%p].\n",
- (void *) pDst -> pDrawable);
- #endif
-
- nxagentSynchronizeDrawable(pDst -> pDrawable, DO_WAIT, NEVER_BREAK, NULL);
- }
-
- XRenderCompositeTriFan(nxagentDisplay,
- op,
- nxagentPicturePriv(pSrc) -> picture,
- nxagentPicturePriv(pDst) -> picture,
- pForm,
- xSrc,
- ySrc,
- (XPointFixed*)points,
- npoint);
-
- #ifdef DEBUG
- XSync(nxagentDisplay, 0);
- #endif
-}
-
void nxagentQueryFormats(void)
{
#ifdef DEBUG