mesa/src/gbm
James Jones f98bcd2f5b gbm: Add gbm_core struct to export code to backends
The GBM core/loader code defines one helper
function used by both itself and the built-in DRI
backend. Presumably, external backend authors
would want to use such functions as well, so
package them into a single struct that will be
passed explicitly to externally loaded backends in
subsequent changes.

Another option considered was to simply export
the gbm_format_canonicalize() function directly,
optionally renaming it to better indicate it is
intended only for "internal" use first. However,
even with a rename, this would expose it to
potential use by applications as well, which is
not ideal, as it is not intended to be part of
the application-facing GBM ABI.

Signed-off-by: James Jones <jajones@nvidia.com>
Reviewed-by: Michel Dänzer <mdaenzer@redhat.com>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9902>
2021-07-06 16:57:59 +00:00
..
backends/dri gbm: Add gbm_core struct to export code to backends 2021-07-06 16:57:59 +00:00
main gbm: Add gbm_core struct to export code to backends 2021-07-06 16:57:59 +00:00
Android.mk gbm: turn GBM_ALWAYS_SOFTWARE into a boolean 2017-09-12 13:53:11 +01:00
gbm-symbols.txt gbm: add gbm_bo_get_fd_for_plane 2021-03-25 05:48:00 +00:00
Makefile.sources gbm: remove unneeded gbm_drm_device abstraction 2017-05-29 16:49:47 +01:00
meson.build meson: conditionally include -ldl in gbm pkg-config file 2020-08-31 09:14:57 +00:00