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.
This commit is contained in:
@@ -115,6 +115,8 @@ fbBresSolid (DrawablePtr pDrawable,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fbFinishAccess (pDrawable);
|
||||
}
|
||||
|
||||
void
|
||||
@@ -199,6 +201,8 @@ fbBresDash (DrawablePtr pDrawable,
|
||||
}
|
||||
FbDashStep (dashlen, even);
|
||||
}
|
||||
|
||||
fbFinishAccess (pDrawable);
|
||||
}
|
||||
|
||||
void
|
||||
@@ -399,6 +403,8 @@ fbBresSolid24RRop (DrawablePtr pDrawable,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fbFinishAccess (pDrawable);
|
||||
}
|
||||
|
||||
static void
|
||||
@@ -498,6 +504,8 @@ fbBresDash24RRop (DrawablePtr pDrawable,
|
||||
}
|
||||
FbDashStep (dashlen, even);
|
||||
}
|
||||
|
||||
fbFinishAccess (pDrawable);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user