mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-01-09 03:00:15 +01:00
Bug #9931: Fix linear allocations with a non-1-byte granularity.
This was introduced in 83080809f9. Instead of
aligning the offset, it doubled it. Results were appropriately spectacular.
This commit is contained in:
parent
9d94c13759
commit
024bbc7cbb
1 changed files with 1 additions and 1 deletions
|
|
@ -968,7 +968,7 @@ localAllocateOffscreenLinear(
|
|||
linear->size = h * w;
|
||||
linear->offset = (pitch * area->box.y1) + area->box.x1;
|
||||
if (gran > 1)
|
||||
linear->offset += ((linear->offset + gran - 1) / gran) * gran;
|
||||
linear->offset = ((linear->offset + gran - 1) / gran) * gran;
|
||||
linear->granularity = gran;
|
||||
linear->MoveLinearCallback = moveCB;
|
||||
linear->RemoveLinearCallback = removeCB;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue