From 6352e65b9cd635e9f266e0e9ed64c5beae9e5c44 Mon Sep 17 00:00:00 2001 From: Alan Hourihane Date: Thu, 10 Feb 2005 10:41:20 +0000 Subject: [PATCH] Fix pixmap cache corruption when Xv was in use due to a memory allocator calculation problem. --- src/i830_video.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/i830_video.c b/src/i830_video.c index 7b977174..6b867b0a 100644 --- a/src/i830_video.c +++ b/src/i830_video.c @@ -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;