summaryrefslogtreecommitdiffstats
path: root/xorg/server/xrdpdev/xrdpdev.c
diff options
context:
space:
mode:
authorJay Sorg <jay.sorg@gmail.com>2014-10-16 20:22:01 -0700
committerJay Sorg <jay.sorg@gmail.com>2014-10-16 20:22:01 -0700
commite8c61af8384f33d3d9ef53983f35d6a6badc6cc3 (patch)
treed476d40770d50118e331cacd4a38054a9eba8eee /xorg/server/xrdpdev/xrdpdev.c
parent1de9164c0b906bdc9c61ed6eac67048b6e5b2157 (diff)
downloadxrdp-proprietary-e8c61af8384f33d3d9ef53983f35d6a6badc6cc3.tar.gz
xrdp-proprietary-e8c61af8384f33d3d9ef53983f35d6a6badc6cc3.zip
Xorg: simd changes
Diffstat (limited to 'xorg/server/xrdpdev/xrdpdev.c')
-rw-r--r--xorg/server/xrdpdev/xrdpdev.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/xorg/server/xrdpdev/xrdpdev.c b/xorg/server/xrdpdev/xrdpdev.c
index 9aa4ca2a..034e2fb4 100644
--- a/xorg/server/xrdpdev/xrdpdev.c
+++ b/xorg/server/xrdpdev/xrdpdev.c
@@ -436,7 +436,9 @@ rdpScreenInit(ScreenPtr pScreen, int argc, char **argv)
dev->bitsPerPixel = rdpBitsPerPixel(dev->depth);
dev->sizeInBytes = dev->paddedWidthInBytes * dev->height;
LLOGLN(0, ("rdpScreenInit: pfbMemory bytes %d", dev->sizeInBytes));
- dev->pfbMemory = (char *) g_malloc(dev->sizeInBytes, 1);
+ dev->pfbMemory_alloc = (char *) g_malloc(dev->sizeInBytes + 16, 1);
+ dev->pfbMemory = (char*) RDPALIGN(dev->pfbMemory_alloc, 16);
+ LLOGLN(0, ("rdpScreenInit: pfbMemory %p", dev->pfbMemory));
if (!fbScreenInit(pScreen, dev->pfbMemory,
pScrn->virtualX, pScrn->virtualY,
pScrn->xDpi, pScrn->yDpi, pScrn->displayWidth,