configure.ac: bump version to 2.4.56 for release
configure: Support symbol visibility when available

Checks whether or not the compiler supports the -fvisibility option. If
so it sets the VISIBILITY_CFLAGS variable which can be added to the per
directory AM_CFLAGS where appropriate.

By default all symbols will be hidden via the VISIBILITY_CFLAGS. The
drm_public macro can be used to mark symbols that should be exported.

Reviewed-by: Maarten Lankhorst <maarten.lankhorst@canonical.com>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
nouveau: Only export public functions.

This hides all the abi16_* functions and the nouveau_debug variable,
they should have been private to begin with.

Signed-off-by: Maarten Lankhorst <maarten.lankhorst@canonical.com>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
radeon: Use symbol visibility.

All the bof_* symbols are now no longer exported.

Signed-off-by: Maarten Lankhorst <maarten.lankhorst@canonical.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
intel: Use symbol visibility.

No exports changed for this driver.

Signed-off-by: Maarten Lankhorst <maarten.lankhorst@canonical.com>
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drm: Implement drmCheckModesettingSupported() for DragonFly

For the sake of simplicity, KMS support can always be considered
present on DragonFly.

If some particular version doesn't support KMS yet, appropriate
checks are already done in Dports's x11-drivers/ Makefiles and
KMS-enabled driver packages don't get built.

Signed-off-by: François Tigeot <ftigeot@wolfpond.org>
Signed-off-by: Maarten Lankhorst <dev@mblankhorst.nl>
omap: Use symbol visibility.

No changes to exported symbols.

Signed-off-by: Maarten Lankhorst <maarten.lankhorst@canonical.com>
freedreno: Use symbol visibility.

Hiding fd_device_del_locked, and fd_cleanup_bo_cache.

Signed-off-by: Maarten Lankhorst <maarten.lankhorst@canonical.com>
exynos: Use symbol visibility.

No changes to exported symbols.

Signed-off-by: Maarten Lankhorst <maarten.lankhorst@canonical.com>
freedreno: Implement support for OpenFIMG DRM interface

This patch adds support for OpenFIMG DRM interface to Freedreno libdrm
code to reduce code duplication between Freedreno and OpenFIMG
projects, because semantics used by kernel side of both are nearly
identical.

Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>
freedreno: of: Use local DRM API header

Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>
freedreno: Allow back-end specific mapping

Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>
freedreno: of: Override mapping method with exynos-drm-specific one

Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>
freedreno: Disable BO caching for now

Somehow it ends up doing more bad than good. Let's disable it until the
cause is found.

Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>
freedreno: of: Allocate uncached BOs

Until proper synchronization is added, to ensure coherency, disable
caching of BOs and use write-combine mapping.

Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>
freedreno: of: Disable prep/fini until it gets implemented

At the moment Exynos DRM does not support cpu_prep/fini calls, so this
code does not have any effect. Disable it until it becomes of any use.

Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>
freedreno: of: Remove unused definitions

They are no longer part of the public interface and so they should not
be present in this header.

Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>
freedreno: of: Add support for 2D pipe

This will be used to submit ring buffers for 2D accelerator.

Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>