diff options
author | Aaron Plattner <aplattner@nvidia.com> | 2006-07-10 18:58:09 -0700 |
---|---|---|
committer | Aaron Plattner <aplattner@nvidia.com> | 2006-07-26 15:48:51 -0700 |
commit | a4005c15fbb48231cb958c32b2c791a2d23a135a (patch) | |
tree | 247ce0d86b1f62e69f188ff352cd424bd032284b /fb/fbbits.h | |
parent | 319efac445cebda5a2ac1db67efebe54bc47ba9d (diff) |
Add framebuffer access wrapper infrastructure.
Create fbPrepareAccess macros to call into the driver to set up the
wfbReadMemory and wfbWriteWemory pointers. Call these from fbGetDrawable and
fbGetStipDrawable.
Add the READ and WRITE macros, which expand to simple memory accesses for fb,
and calls through the function pointers for wfb.
Add fbFinishAccess macro to give the driver an opportunity to clean up. Add
calls to this in the appropriate places.
Diffstat (limited to 'fb/fbbits.h')
-rw-r--r-- | fb/fbbits.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/fb/fbbits.h b/fb/fbbits.h index e5c006dbb..e99a297b5 100644 --- a/fb/fbbits.h +++ b/fb/fbbits.h @@ -119,6 +119,8 @@ BRESSOLID (DrawablePtr pDrawable, e += e3; } } + + fbFinishAccess (pDrawable); } #endif @@ -263,6 +265,8 @@ onOffOdd: dashlen = len; } } + + fbFinishAccess (pDrawable); } #endif @@ -710,8 +714,10 @@ POLYLINE (DrawablePtr pDrawable, intToX(pt2) + xoff, intToY(pt2) + yoff, npt == 0 && pGC->capStyle != CapNotLast, &dashoffset); - if (!npt) + if (!npt) { + fbFinishAccess (pDrawable); return; + } pt1 = pt2; pt2 = *pts++; npt--; @@ -776,6 +782,7 @@ POLYLINE (DrawablePtr pDrawable, { RROP(bits,and,xor); } + fbFinishAccess (pDrawable); return; } pt1 = pt2; @@ -786,6 +793,8 @@ POLYLINE (DrawablePtr pDrawable, } } } + + fbFinishAccess (pDrawable); } #endif @@ -950,6 +959,8 @@ POLYSEGMENT (DrawablePtr pDrawable, } } } + + fbFinishAccess (pDrawable); } #endif |