mesa/src/gbm
James Jones c2550d1b7c gbm: Don't pass default usage flags on ABIs < 1
Older drivers will not expect any flags from the
GBM front-end when modifiers are in use, and will
likely fail the allocation or handle them
incorrectly as a result. Only specify usage flags
when allocating from a backend with an ABI >= 1,
as that's the ABI version that added support for
specifying usage flags along with modifiers.

Fixes: ad50b47a14 ("gbm: assume USE_SCANOUT in create_with_modifiers")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/5709
Signed-off-by: James Jones <jajones@nvidia.com>
Reviewed-by: Simon Ser <contact@emersion.fr>
Tested-by: Olivier Fourdan <ofourdan@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14049>
2021-12-08 09:49:47 +00:00
..
backends/dri gbm: add GBM_FORMAT_GR1616 and RG1616 2021-10-27 02:53:05 +00:00
main gbm: Don't pass default usage flags on ABIs < 1 2021-12-08 09:49:47 +00:00
gbm-symbols.txt gbm: add gbm_{bo,surface}_create_with_modifiers2 2021-10-01 00:02:32 +02:00
meson.build meson: Add a GBM backends search path build option 2021-07-06 16:57:59 +00:00