xserver/hw
Eric Anholt 7bd0f79c38 glamor: Delay making pixmaps shareable until we need to.
If a pixmap isn't getting exported as a dmabuf, then we don't need to
make an EGLImage/GBM bo for it.  This should reduce normal pixmap
allocation overhead, and also lets the driver choose non-scanout
formats which may be much higher performance.

On Raspberry Pi, where scanout isn't usable as a texture source, this
improves x11perf -copypixwin100 from about 4300/sec to 5780/sec under
xcompmgr -a, because we no longer need to upload our x11perf window to
a tiled temporary in order to render it to the screen.

v2: Just use pixmap->usage_hint instead of a new field.  Drop the
    changes that started storing gbm_bos in the pixmap priv due to
    lifetime issues.
v3: Fix a missing gbm_bo_destroy() on the pixmap-from-fd success path.

[ajax: Restore glamor_egl_create_argb8888_based_texture for ABI reasons.
I'm not aware of any driver using it directly, but.]

Signed-off-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
(cherry picked from commit 51984dddfc)
2016-03-11 13:13:39 -05:00
..
dmx glxproxy: Silence shadowed-variable warnings 2015-12-09 10:45:50 -05:00
kdrive glamor: Use vertex array objects 2016-03-11 10:44:34 -05:00
vfb vfb: add randr support (v2) 2015-12-09 10:45:50 -05:00
xfree86 dri2: Sync i915_pci_ids.h and i965_pci_ids.h from mesa 2016-01-27 14:15:49 -05:00
xnest xnest: Fix needless build dependency on xcb-util-keysyms 2015-12-09 10:45:49 -05:00
xquartz XQuartz: Cleanup formatting of DarwinEQInit that was butchered by automation a few years ago 2015-10-19 09:06:22 -07:00
xwayland glamor: Delay making pixmaps shareable until we need to. 2016-03-11 13:13:39 -05:00
xwin dix: Restore PaintWindow screen hook 2015-07-08 16:41:28 -04:00
Makefile.am Xwayland DDX 2014-04-03 15:19:22 -07:00