projects
/
platform
/
upstream
/
freerdp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f24b112
)
Align scanline to multiple of 16, required for ASM
author
Armin Novak
<armin.novak@thincast.com>
Wed, 15 Feb 2017 10:56:50 +0000
(11:56 +0100)
committer
Armin Novak
<armin.novak@thincast.com>
Wed, 15 Feb 2017 11:08:32 +0000
(12:08 +0100)
client/X11/xf_gfx.c
patch
|
blob
|
history
diff --git
a/client/X11/xf_gfx.c
b/client/X11/xf_gfx.c
index
9b22905
..
1e47194
100644
(file)
--- a/
client/X11/xf_gfx.c
+++ b/
client/X11/xf_gfx.c
@@
-176,8
+176,9
@@
UINT xf_OutputExpose(xfContext* xfc, UINT32 x, UINT32 y,
return status;
}
-
static INLINE
UINT32 x11_pad_scanline(UINT32 scanline, UINT32 inPad)
+UINT32 x11_pad_scanline(UINT32 scanline, UINT32 inPad)
{
+ /* Ensure X11 alignment is met */
if (inPad > 0)
{
const UINT32 align = inPad / 8;
@@
-187,6
+188,10
@@
static INLINE UINT32 x11_pad_scanline(UINT32 scanline, UINT32 inPad)
scanline += pad;
}
+ /* 16 byte alingment is required for ASM optimized code */
+ if (scanline % 16)
+ scanline += 16 - scanline % 16;
+
return scanline;
}