Debian patch: 216_page_size.diff
--HG-- branch : SDL-1.2 extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%404030
This commit is contained in:
parent
bca21936a4
commit
dd4a6eaa0d
1 changed files with 1 additions and 1 deletions
|
@ -180,7 +180,7 @@ SDL_Overlay *GS_CreateYUVOverlay(_THIS, int width, int height, Uint32 format, SD
|
||||||
|
|
||||||
/* Allocate a DMA area for pixel conversion */
|
/* Allocate a DMA area for pixel conversion */
|
||||||
bpp = this->screen->format->BytesPerPixel;
|
bpp = this->screen->format->BytesPerPixel;
|
||||||
map_offset = (mapped_len + (PAGE_SIZE - 1)) & ~(PAGE_SIZE - 1);
|
map_offset = (mapped_len + (sysconf(_SC_PAGESIZE) - 1)) & ~(sysconf(_SC_PAGESIZE) - 1);
|
||||||
hwdata->dma_len = hwdata->macroblocks * (16 * 16 + 8 * 8 + 8 * 8) +
|
hwdata->dma_len = hwdata->macroblocks * (16 * 16 + 8 * 8 + 8 * 8) +
|
||||||
width * height * bpp +
|
width * height * bpp +
|
||||||
hwdata->macroblocks * (16 * sizeof(long long)) +
|
hwdata->macroblocks * (16 * sizeof(long long)) +
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue