Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Merged r5016:5017 from branches/SDL-1.2: PS2 DMA mapping fix.
Browse files Browse the repository at this point in the history
I assume this video target is slated for removal in 1.3, but I merged this,
just in case.
  • Loading branch information
icculus committed Jan 10, 2010
1 parent 77ecf95 commit ff73ee4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/video/ps2gs/SDL_gsyuv.c
Expand Up @@ -184,7 +184,7 @@ GS_CreateYUVOverlay(_THIS, int width, int height, Uint32 format,

/* Allocate a DMA area for pixel conversion */
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) +
width * height * bpp +
hwdata->macroblocks * (16 * sizeof(long long)) +
Expand Down

0 comments on commit ff73ee4

Please sign in to comment.