From 3ba546b6998bf1c5d68ff0083017f804ffc48a93 Mon Sep 17 00:00:00 2001 From: Zhigang Gong Date: Fri, 23 Dec 2011 16:18:22 +0800 Subject: [PATCH] Code cleanup. Remove useless code, and after a fbCreatePixmap, we do not need to modify its header there. Signed-off-by: Zhigang Gong --- glamor/glamor.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/glamor/glamor.c b/glamor/glamor.c index 630df4f58..bbcf94258 100644 --- a/glamor/glamor.c +++ b/glamor/glamor.c @@ -156,17 +156,6 @@ glamor_create_pixmap(ScreenPtr screen, int w, int h, int depth, If we exceed such limitation, we have to use framebuffer. */ type = GLAMOR_MEMORY; pixmap = fbCreatePixmap(screen, w, h, depth, usage); - screen->ModifyPixmapHeader(pixmap, w, h, 0, 0, - (((w * - pixmap-> - drawable.bitsPerPixel + - 7) / 8) + 3) & ~3, NULL); -#if 0 - if (usage != GLAMOR_CREATE_PIXMAP_CPU) - glamor_fallback("choose cpu memory for pixmap %p ," - " %d x %d depth %d\n", pixmap, w, - h, depth); -#endif } else pixmap = fbCreatePixmap(screen, 0, 0, depth, usage);