mirror of
https://github.com/X11Libre/xf86-video-intel.git
synced 2026-03-24 01:24:12 +00:00
Fix pixmap cache corruption when Xv was in use due to a memory allocator
calculation problem.
This commit is contained in:
@@ -1430,13 +1430,9 @@ I830AllocateMemory(ScrnInfoPtr pScrn, FBLinearPtr linear, int size)
|
||||
{
|
||||
ScreenPtr pScreen;
|
||||
FBLinearPtr new_linear;
|
||||
int bytespp = pScrn->bitsPerPixel >> 3;
|
||||
|
||||
DPRINTF(PFX, "I830AllocateMemory\n");
|
||||
|
||||
/* convert size in bytes into number of pixels */
|
||||
size = (size + bytespp - 1) / bytespp;
|
||||
|
||||
if (linear) {
|
||||
if (linear->size >= size)
|
||||
return linear;
|
||||
|
||||
Reference in New Issue
Block a user