summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;