From 4e409ea44180f7ef2780d70c9d2f54629bbd0fc3 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Wed, 19 Jul 2006 15:57:09 -0400 Subject: [PATCH] The map bits per pixel must come from the drawable, not the visible screen. --- src/i915_exa_render.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/i915_exa_render.c b/src/i915_exa_render.c index 181fb89b..0b20e66d 100644 --- a/src/i915_exa_render.c +++ b/src/i915_exa_render.c @@ -260,9 +260,9 @@ I915TextureSetup(PicturePtr pPict, PixmapPtr pPix, int unit) { CARD32 ms3; - if (pI830->cpp == 1) + if (pPix->drawable.bitsPerPixel == 8) format |= MAPSURF_8BIT; - else if (pI830->cpp == 2) + else if (pPix->drawable.bitsPerPixel == 16) format |= MAPSURF_16BIT; else format |= MAPSURF_32BIT;