Wrap libwfb memory access.
Use the READ and WRITE macros to wrap memory accesses that could be in video memory. Add MEMCPY_WRAPPED and MEMSET_WRAPPED macros to wrap memcpy and memset, respectively.
This commit is contained in:
@@ -58,7 +58,7 @@ fbPushPattern (DrawablePtr pDrawable,
|
||||
w = width;
|
||||
s = src;
|
||||
src += srcStride;
|
||||
bits = *s++;
|
||||
bits = READ(s++);
|
||||
xspan = x;
|
||||
while (w)
|
||||
{
|
||||
@@ -73,7 +73,7 @@ fbPushPattern (DrawablePtr pDrawable,
|
||||
bitsMask = FbStipRight (bitsMask, 1);
|
||||
if (!bitsMask)
|
||||
{
|
||||
bits = *s++;
|
||||
bits = READ(s++);
|
||||
bitsMask = FbBitsMask(0,1);
|
||||
}
|
||||
} while (bits & bitsMask);
|
||||
@@ -92,7 +92,7 @@ fbPushPattern (DrawablePtr pDrawable,
|
||||
bitsMask = FbStipRight (bitsMask, 1);
|
||||
if (!bitsMask)
|
||||
{
|
||||
bits = *s++;
|
||||
bits = READ(s++);
|
||||
bitsMask = FbBitsMask(0,1);
|
||||
}
|
||||
} while (!(bits & bitsMask));
|
||||
|
||||
Reference in New Issue
Block a user