Code cleanup.
Remove useless code, and after a fbCreatePixmap, we do not need to modify its header there. Signed-off-by: Zhigang Gong <zhigang.gong@linux.intel.com>
This commit is contained in:
parent
2583620c6c
commit
3ba546b699
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user