summaryrefslogtreecommitdiff
path: root/src/i830_video.c
diff options
context:
space:
mode:
authorAlan Hourihane <alanh@fairlite.demon.co.uk>2005-02-10 10:41:20 +0000
committerAlan Hourihane <alanh@fairlite.demon.co.uk>2005-02-10 10:41:20 +0000
commit6352e65b9cd635e9f266e0e9ed64c5beae9e5c44 (patch)
tree3ddbeb3d657f7b9da55717b1e9f5cf4dbff3cb67 /src/i830_video.c
parentf691f959213d3eb5c365edaf5a5a53fa96300491 (diff)
Fix pixmap cache corruption when Xv was in use due to a memory allocator
calculation problem.
Diffstat (limited to 'src/i830_video.c')
-rw-r--r--src/i830_video.c4
1 files changed, 0 insertions, 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;