mesa/src/gbm
Alex Villacís Lasso b2200514af gbm: gbm_bo_get_handle_for_plane fallback to nonplanar handle
Commit f9567ab435 (gbm: Export a getter for per
plane handles) contains an API version check that fails on i915 (API version 7
vs. check for minimum API version 13). Any client that migrates to the planar
API will start failing on i915 (see https://gitlab.gnome.org/GNOME/mutter/issues/127
for mutter, and https://bugs.freedesktop.org/show_bug.cgi?id=108487 for weston).

This commit adds a fallback for plane 0 when the API check fails and returns the
non-planar handle in this scenario, making the call equivalent to
gbm_bo_get_handle(). This is enough for weston 6.0.0 to start working again on an
i915 system.

Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=108487

Signed-off-by: Alex Villacís Lasso <a_villacis@palosanto.com>
Reviewed-by: Daniel Stone <daniels@collabora.com>
2019-05-15 18:27:30 +01:00
..
backends/dri gbm: gbm_bo_get_handle_for_plane fallback to nonplanar handle 2019-05-15 18:27:30 +01:00
main gbm: Improve documentation of BO import 2019-05-02 20:36:38 +00:00
Android.mk gbm: turn GBM_ALWAYS_SOFTWARE into a boolean 2017-09-12 13:53:11 +01:00
gbm-symbols-check gbm: add new entrypoint to symbols check 2018-11-15 16:25:42 +00:00
Makefile.sources gbm: remove unneeded gbm_drm_device abstraction 2017-05-29 16:49:47 +01:00
meson.build meson: make nm binary optional 2019-05-03 10:58:05 -07:00