Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Merged r5016:5017 from branches/SDL-1.2: PS2 DMA mapping fix.

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 ff73ee4a83cfee84247a376756c0c4d71c03d847
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/video/ps2gs/SDL_gsyuv.c
@@ -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)) +

0 comments on commit ff73ee4

Please sign in to comment.