mesa/src/gbm/main
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
..
backend.c gbm: Load backend based on DRM device driver name 2021-07-06 16:58:00 +00:00
backend.h gbm: Give gbm_device a reference to its backend 2021-07-06 16:57:59 +00:00
gbm.c gbm: Don't pass default usage flags on ABIs < 1 2021-12-08 09:49:47 +00:00
gbm.h gbm: add GBM_FORMAT_GR1616 and RG1616 2021-10-27 02:53:05 +00:00
gbm_abi_check.c gbm: assume USE_SCANOUT in create_with_modifiers 2021-10-01 00:02:36 +02:00
gbm_backend_abi.h gbm: assume USE_SCANOUT in create_with_modifiers 2021-10-01 00:02:36 +02:00
gbmint.h gbm: Move majority of gbmint.h to gbm_backend_abi.h 2021-07-06 16:57:59 +00:00