mirror of
https://github.com/X11Libre/xserver.git
synced 2026-10-01 22:03:09 +00:00
- Fix the exa pixmap offset/pitch alignment to deal with non-POT alignment
requirements. MGA, notably, uses a multiple of 3 in some cases.
- Rename the pixmap offset/pitch alignment fields to more clearly state
their meaning.
This commit is contained in:
parent
e3509c940f
commit
ebedc8bbb5
11 changed files with 28 additions and 25 deletions
|
|
@ -212,7 +212,8 @@ exaOffscreenAlloc (ScreenPtr pScreen, int size, int align,
|
|||
area->score = 0;
|
||||
|
||||
area->save_offset = area->offset;
|
||||
area->offset = (area->offset + align - 1) & ~(align - 1);
|
||||
area->offset = (area->offset + align - 1);
|
||||
area->offset -= area->offset % align;
|
||||
|
||||
ExaOffscreenValidate (pScreen);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue