i830: Never create a bo for depth=1 pixmaps.
As we can not accelerate these either as a destination or a source, don't bother allocating a buffer object for them. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
5b7efe375a
commit
dfbaf9aab8
|
|
@ -914,6 +914,8 @@ i830_uxa_create_pixmap(ScreenPtr screen, int w, int h, int depth,
|
|||
if (w > 32767 || h > 32767)
|
||||
return NullPixmap;
|
||||
|
||||
if (depth == 1)
|
||||
return fbCreatePixmap(screen, w, h, depth, usage);
|
||||
if (usage == CREATE_PIXMAP_USAGE_GLYPH_PICTURE && w <= 32 && h <= 32)
|
||||
return fbCreatePixmap(screen, w, h, depth, usage);
|
||||
|
||||
|
|
@ -956,7 +958,7 @@ i830_uxa_create_pixmap(ScreenPtr screen, int w, int h, int depth,
|
|||
return NullPixmap;
|
||||
}
|
||||
|
||||
/* Perform a premilinary search for an in-flight bo */
|
||||
/* Perform a preliminary search for an in-flight bo */
|
||||
if (usage != UXA_CREATE_PIXMAP_FOR_MAP) {
|
||||
int aligned_h;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue