mirror of
https://github.com/X11Libre/xserver.git
synced 2026-09-26 21:12:25 +00:00
Merge remote-tracking branch 'krh/xwayland-for-keithp'
This commit is contained in:
commit
b4d0bec22c
29 changed files with 2743 additions and 69 deletions
|
|
@ -182,7 +182,15 @@ glamor_create_pixmap(ScreenPtr screen, int w, int h, int depth,
|
|||
pitch = (((w * pixmap->drawable.bitsPerPixel + 7) / 8) + 3) & ~3;
|
||||
screen->ModifyPixmapHeader(pixmap, w, h, 0, 0, pitch, NULL);
|
||||
|
||||
if (type == GLAMOR_MEMORY_MAP || usage == GLAMOR_CREATE_NO_LARGE ||
|
||||
if (usage == GLAMOR_CREATE_PIXMAP_NO_TEXTURE) {
|
||||
pixmap_priv->type = GLAMOR_TEXTURE_ONLY;
|
||||
pixmap_priv->base.box.x1 = 0;
|
||||
pixmap_priv->base.box.y1 = 0;
|
||||
pixmap_priv->base.box.x2 = w;
|
||||
pixmap_priv->base.box.y2 = h;
|
||||
return pixmap;
|
||||
}
|
||||
else if (type == GLAMOR_MEMORY_MAP || usage == GLAMOR_CREATE_NO_LARGE ||
|
||||
glamor_check_fbo_size(glamor_priv, w, h))
|
||||
{
|
||||
pixmap_priv->type = type;
|
||||
|
|
|
|||
Loading…
Reference in a new issue