Revert mistaken commit to exa_unaccel.c. Should have been to
exa_offscreen.c: Correct a typo in debug-only offscreen validation code. (Wang Zhenyu)
This commit is contained in:
parent
1a8167c1ba
commit
f480dc797b
|
@ -52,7 +52,7 @@ ExaOffscreenValidate (ScreenPtr pScreen)
|
||||||
for (area = pExaScr->info->offScreenAreas; area; area = area->next)
|
for (area = pExaScr->info->offScreenAreas; area; area = area->next)
|
||||||
{
|
{
|
||||||
assert (area->offset >= area->base_offset &&
|
assert (area->offset >= area->base_offset &&
|
||||||
area->offset < (area->base_offset -> area->size));
|
area->offset < (area->base_offset + area->size));
|
||||||
if (prev)
|
if (prev)
|
||||||
assert (prev->base_offset + prev->area.size == area->base_offset);
|
assert (prev->base_offset + prev->area.size == area->base_offset);
|
||||||
prev = area;
|
prev = area;
|
||||||
|
|
|
@ -29,39 +29,13 @@
|
||||||
* the accelerator is idle
|
* the accelerator is idle
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
|
||||||
* Calls exaPrepareAccess with EXA_PREPARE_SRC for the tile, if that is the
|
|
||||||
* current fill style.
|
|
||||||
*
|
|
||||||
* Solid doesn't use an extra pixmap source, and Stippled/OpaqueStippled are
|
|
||||||
* 1bpp and never in fb, so we don't worry about them.
|
|
||||||
*/
|
|
||||||
static void
|
|
||||||
exaPrepareAccessGC(GCPtr pGC)
|
|
||||||
{
|
|
||||||
if (pGC->fillStyle == FillTiled)
|
|
||||||
exaPrepareAccess(&pGC->tile.pixmap->drawable, EXA_PREPARE_SRC);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Finishes access to the tile in the GC, if used.
|
|
||||||
*/
|
|
||||||
static void
|
|
||||||
exaFinishAccessGC(GCPtr pGC)
|
|
||||||
{
|
|
||||||
if (pGC->fillStyle == FillTiled)
|
|
||||||
exaFinishAccess(&pGC->tile.pixmap->drawable, EXA_PREPARE_SRC);
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
void
|
||||||
ExaCheckFillSpans (DrawablePtr pDrawable, GCPtr pGC, int nspans,
|
ExaCheckFillSpans (DrawablePtr pDrawable, GCPtr pGC, int nspans,
|
||||||
DDXPointPtr ppt, int *pwidth, int fSorted)
|
DDXPointPtr ppt, int *pwidth, int fSorted)
|
||||||
{
|
{
|
||||||
EXA_FALLBACK(("to 0x%lx\n", (long)pDrawable));
|
EXA_FALLBACK(("to 0x%lx\n", (long)pDrawable));
|
||||||
exaPrepareAccess (pDrawable, EXA_PREPARE_DEST);
|
exaPrepareAccess (pDrawable, EXA_PREPARE_DEST);
|
||||||
exaPrepareAccessGC (pGC);
|
|
||||||
fbFillSpans (pDrawable, pGC, nspans, ppt, pwidth, fSorted);
|
fbFillSpans (pDrawable, pGC, nspans, ppt, pwidth, fSorted);
|
||||||
exaFinishAccessGC (pGC);
|
|
||||||
exaFinishAccess (pDrawable, EXA_PREPARE_DEST);
|
exaFinishAccess (pDrawable, EXA_PREPARE_DEST);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -138,13 +112,10 @@ ExaCheckPolylines (DrawablePtr pDrawable, GCPtr pGC,
|
||||||
|
|
||||||
if (pGC->lineWidth == 0) {
|
if (pGC->lineWidth == 0) {
|
||||||
exaPrepareAccess (pDrawable, EXA_PREPARE_DEST);
|
exaPrepareAccess (pDrawable, EXA_PREPARE_DEST);
|
||||||
exaPrepareAccessGC (pGC);
|
|
||||||
fbPolyLine (pDrawable, pGC, mode, npt, ppt);
|
fbPolyLine (pDrawable, pGC, mode, npt, ppt);
|
||||||
exaFinishAccessGC (pGC);
|
|
||||||
exaFinishAccess (pDrawable, EXA_PREPARE_DEST);
|
exaFinishAccess (pDrawable, EXA_PREPARE_DEST);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
/* fb calls mi functions in the lineWidth != 0 case. */
|
|
||||||
fbPolyLine (pDrawable, pGC, mode, npt, ppt);
|
fbPolyLine (pDrawable, pGC, mode, npt, ppt);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -155,16 +126,27 @@ ExaCheckPolySegment (DrawablePtr pDrawable, GCPtr pGC,
|
||||||
EXA_FALLBACK(("to 0x%lx\n", (long)pDrawable));
|
EXA_FALLBACK(("to 0x%lx\n", (long)pDrawable));
|
||||||
if (pGC->lineWidth == 0) {
|
if (pGC->lineWidth == 0) {
|
||||||
exaPrepareAccess (pDrawable, EXA_PREPARE_DEST);
|
exaPrepareAccess (pDrawable, EXA_PREPARE_DEST);
|
||||||
exaPrepareAccessGC (pGC);
|
|
||||||
fbPolySegment (pDrawable, pGC, nsegInit, pSegInit);
|
fbPolySegment (pDrawable, pGC, nsegInit, pSegInit);
|
||||||
exaFinishAccessGC (pGC);
|
|
||||||
exaFinishAccess (pDrawable, EXA_PREPARE_DEST);
|
exaFinishAccess (pDrawable, EXA_PREPARE_DEST);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
/* fb calls mi functions in the lineWidth != 0 case. */
|
|
||||||
fbPolySegment (pDrawable, pGC, nsegInit, pSegInit);
|
fbPolySegment (pDrawable, pGC, nsegInit, pSegInit);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
ExaCheckPolyRectangle (DrawablePtr pDrawable, GCPtr pGC,
|
||||||
|
int nrects, xRectangle *prect)
|
||||||
|
{
|
||||||
|
EXA_FALLBACK(("to 0x%lx\n", (long)pDrawable));
|
||||||
|
if (pGC->lineWidth == 0) {
|
||||||
|
exaPrepareAccess (pDrawable, EXA_PREPARE_DEST);
|
||||||
|
fbPolyRectangle (pDrawable, pGC, nrects, prect);
|
||||||
|
exaFinishAccess (pDrawable, EXA_PREPARE_DEST);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
fbPolyRectangle (pDrawable, pGC, nrects, prect);
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
ExaCheckPolyArc (DrawablePtr pDrawable, GCPtr pGC,
|
ExaCheckPolyArc (DrawablePtr pDrawable, GCPtr pGC,
|
||||||
int narcs, xArc *pArcs)
|
int narcs, xArc *pArcs)
|
||||||
|
@ -173,24 +155,42 @@ ExaCheckPolyArc (DrawablePtr pDrawable, GCPtr pGC,
|
||||||
if (pGC->lineWidth == 0)
|
if (pGC->lineWidth == 0)
|
||||||
{
|
{
|
||||||
exaPrepareAccess (pDrawable, EXA_PREPARE_DEST);
|
exaPrepareAccess (pDrawable, EXA_PREPARE_DEST);
|
||||||
exaPrepareAccessGC (pGC);
|
|
||||||
fbPolyArc (pDrawable, pGC, narcs, pArcs);
|
fbPolyArc (pDrawable, pGC, narcs, pArcs);
|
||||||
exaFinishAccessGC (pGC);
|
|
||||||
exaFinishAccess (pDrawable, EXA_PREPARE_DEST);
|
exaFinishAccess (pDrawable, EXA_PREPARE_DEST);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
miPolyArc (pDrawable, pGC, narcs, pArcs);
|
miPolyArc (pDrawable, pGC, narcs, pArcs);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if 0
|
||||||
|
void
|
||||||
|
ExaCheckFillPolygon (DrawablePtr pDrawable, GCPtr pGC,
|
||||||
|
int shape, int mode, int count, DDXPointPtr pPts)
|
||||||
|
{
|
||||||
|
EXA_FALLBACK(("to 0x%lx\n", (long)pDrawable));
|
||||||
|
exaPrepareAccess (pDrawable, EXA_PREPARE_DEST);
|
||||||
|
fbFillPolygon (pDrawable, pGC, mode, count, pPts);
|
||||||
|
exaFinishAccess (pDrawable, EXA_PREPARE_DEST);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
void
|
void
|
||||||
ExaCheckPolyFillRect (DrawablePtr pDrawable, GCPtr pGC,
|
ExaCheckPolyFillRect (DrawablePtr pDrawable, GCPtr pGC,
|
||||||
int nrect, xRectangle *prect)
|
int nrect, xRectangle *prect)
|
||||||
{
|
{
|
||||||
EXA_FALLBACK(("to 0x%lx\n", (long)pDrawable));
|
EXA_FALLBACK(("to 0x%lx\n", (long)pDrawable));
|
||||||
exaPrepareAccess (pDrawable, EXA_PREPARE_DEST);
|
exaPrepareAccess (pDrawable, EXA_PREPARE_DEST);
|
||||||
exaPrepareAccessGC (pGC);
|
|
||||||
fbPolyFillRect (pDrawable, pGC, nrect, prect);
|
fbPolyFillRect (pDrawable, pGC, nrect, prect);
|
||||||
exaFinishAccessGC (pGC);
|
exaFinishAccess (pDrawable, EXA_PREPARE_DEST);
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
ExaCheckPolyFillArc (DrawablePtr pDrawable, GCPtr pGC,
|
||||||
|
int narcs, xArc *pArcs)
|
||||||
|
{
|
||||||
|
EXA_FALLBACK(("to 0x%lx\n", (long)pDrawable));
|
||||||
|
exaPrepareAccess (pDrawable, EXA_PREPARE_DEST);
|
||||||
|
fbPolyFillArc (pDrawable, pGC, narcs, pArcs);
|
||||||
exaFinishAccess (pDrawable, EXA_PREPARE_DEST);
|
exaFinishAccess (pDrawable, EXA_PREPARE_DEST);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -201,9 +201,7 @@ ExaCheckImageGlyphBlt (DrawablePtr pDrawable, GCPtr pGC,
|
||||||
{
|
{
|
||||||
EXA_FALLBACK(("to 0x%lx\n", (long)pDrawable));
|
EXA_FALLBACK(("to 0x%lx\n", (long)pDrawable));
|
||||||
exaPrepareAccess (pDrawable, EXA_PREPARE_DEST);
|
exaPrepareAccess (pDrawable, EXA_PREPARE_DEST);
|
||||||
exaPrepareAccessGC (pGC);
|
|
||||||
fbImageGlyphBlt (pDrawable, pGC, x, y, nglyph, ppci, pglyphBase);
|
fbImageGlyphBlt (pDrawable, pGC, x, y, nglyph, ppci, pglyphBase);
|
||||||
exaFinishAccessGC (pGC);
|
|
||||||
exaFinishAccess (pDrawable, EXA_PREPARE_DEST);
|
exaFinishAccess (pDrawable, EXA_PREPARE_DEST);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -214,9 +212,7 @@ ExaCheckPolyGlyphBlt (DrawablePtr pDrawable, GCPtr pGC,
|
||||||
{
|
{
|
||||||
EXA_FALLBACK(("to 0x%lx\n", (long)pDrawable));
|
EXA_FALLBACK(("to 0x%lx\n", (long)pDrawable));
|
||||||
exaPrepareAccess (pDrawable, EXA_PREPARE_DEST);
|
exaPrepareAccess (pDrawable, EXA_PREPARE_DEST);
|
||||||
exaPrepareAccessGC (pGC);
|
|
||||||
fbPolyGlyphBlt (pDrawable, pGC, x, y, nglyph, ppci, pglyphBase);
|
fbPolyGlyphBlt (pDrawable, pGC, x, y, nglyph, ppci, pglyphBase);
|
||||||
exaFinishAccessGC (pGC);
|
|
||||||
exaFinishAccess (pDrawable, EXA_PREPARE_DEST);
|
exaFinishAccess (pDrawable, EXA_PREPARE_DEST);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -227,9 +223,7 @@ ExaCheckPushPixels (GCPtr pGC, PixmapPtr pBitmap,
|
||||||
{
|
{
|
||||||
EXA_FALLBACK(("from 0x%lx to 0x%lx\n", (long)pBitmap, (long)pDrawable));
|
EXA_FALLBACK(("from 0x%lx to 0x%lx\n", (long)pBitmap, (long)pDrawable));
|
||||||
exaPrepareAccess (pDrawable, EXA_PREPARE_DEST);
|
exaPrepareAccess (pDrawable, EXA_PREPARE_DEST);
|
||||||
exaPrepareAccessGC (pGC);
|
|
||||||
fbPushPixels (pGC, pBitmap, pDrawable, w, h, x, y);
|
fbPushPixels (pGC, pBitmap, pDrawable, w, h, x, y);
|
||||||
exaFinishAccessGC (pGC);
|
|
||||||
exaFinishAccess (pDrawable, EXA_PREPARE_DEST);
|
exaFinishAccess (pDrawable, EXA_PREPARE_DEST);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue