path: root/src/gbm/
AgeCommit message (Collapse)AuthorFilesLines
2016-11-21gbm: automake: remove unused definesEmil Velikov1-2/+0
Signed-off-by: Emil Velikov <> Reviewed-by: Eduardo Lima Mitev <>
2016-05-23gbm: Add map/unmap functionsRob Herring1-2/+4
This adds map and unmap functions to GBM utilizing the DRIimage extension mapImage/unmapImage functions or existing internal mapping for dumb buffers. Unlike prior attempts, this version provides a region to map and usage flags for the mapping. The operation follows the same semantics as the gallium transfer_map() function. This was tested with GBM based gralloc on Android. Signed-off-by: Rob Herring <> [Emil Velikov: drop no longer relevant hunk from commit message.] Reviewed-by: Emil Velikov <> Reviewed-by: Eric Anholt <>
2016-05-23gbm: split out source file to Makefile.sourcesRob Herring1-8/+4
In preparation to add Android build support, split out the source file lists to Makefile.sources Signed-off-by: Rob Herring <> Reviewed-by: Eric Anholt <> [Emil Velikov: Whitespace cleanup.] Signed-off-by: Emil Velikov <>
2016-05-01automake: drop "EGL_" from HAVE_EGL_PLATFORM_WAYLANDEmil Velikov1-1/+1
Analogous to previous commit. Signed-off-by: Emil Velikov <>
2015-07-22gbm: do not build intermittent libgbm_dri static libraryEmil Velikov1-5/+2
The only user of it ( immediately links it. Just build it directly into the library. Signed-off-by: Emil Velikov <> Reviewed-by: Matt Turner <>
2015-06-26mesa: Enable subdir-objects globally.Matt Turner1-2/+0
Reviewed-by: Emil Velikov <>
2015-06-23gbm: do not (over)link against libglapi.soEmil Velikov1-1/+2
The whole of GBM does not rely on even a single symbol from the GL dispatch library, unsuprisingly. The only need for it comes from the unresolved symbols in the DRI modules, which are now correctly handled with Frank's commit. Cc: "10.5 10.6" <> Signed-off-by: Emil Velikov <>
2014-12-12egl+gbm: Add symbols-check tests to distribution.Matt Turner1-0/+1
2014-05-23Make DRI dependencies and build depend on the targetJon TURNEY1-1/+1
- Don't require xcb-dri[23] etc. if we aren't building for a target with DRM, as we won't be using dri[23] - Enable a more fine-grained control of what DRI code is built, so that a libGL using direct swrast can be built on targets which don't have DRM. The HAVE_DRI automake conditional is retired in favour of a number of other conditionals: HAVE_DRI2 enables building of code using the DRI2 interface (and possibly DRI3 with HAVE_DRI3) HAVE_DRISW enables building of DRI swrast HAVE_DRICOMMON enables building of target-independent DRI code, and also enables some makefile cases where a more detailled decision is made at a lower level. HAVE_APPLEDRI enables building of an Apple-specific direct rendering interface, still which requires additional fixing up to build properly. v2: Place xfont.c and drisw_glx.c into correct categories. Update 'make check' as well Signed-off-by: Jon TURNEY <> Reviewed-by: Jeremy Huddleston Sequoia <> Reviewed-by: Emil Velikov <>
2014-04-07gbm/build: Add headers to distribution.Matt Turner1-2/+8
Acked-by: Emil Velikov <>
2014-04-05automake: don't enable -Wl,--no-undefined on OpenBSDJonathan Gray1-1/+1
OpenBSD does not have DT_NEEDED entries for libc by design, over concerns how the symbols would be referenced after changing the major version of the library. So avoid -no-undefined checks on OpenBSD as they will fail. v2: don't include the -no-undefined libtool option in the variable and change -Wl,--no-undefined references in as well. Bugzilla: Signed-off-by: Jonathan Gray <> Reviewed-by: Emil Velikov <> Reviewed-by: Matt Turner <>
2014-03-31automake: ask the linker to do garbage collectionEmil Velikov1-0/+1
By doing GC the linker removes all the symbols that are not referenced and/or used by the final library. This results in a saving of ~100K up-to ~600K per (stripped) binary (classic vs gallium drivers). If interested one can ask the compiler to print the sections that are removed using -Wl,--print-gc-sections. v2: Check if ld supports the flag before using it. Signed-off-by: Emil Velikov <> Acked-by: Matt Turner <> (v1)
2014-03-31automake: add -Wl,--no-undefined to all librariesEmil Velikov1-1/+3
... apart from the dri drivers. With this final change we can build mesa without fear that the resulting libraries will have unresolved symbols. Signed-off-by: Emil Velikov <> Reviewed-by: Matt Turner <>
2014-03-31automake: consistently use -no-undefinedEmil Velikov1-1/+3
Set the flag for all but the dri targets. They have missing glapi symbols which are required for the normal operation with the X server. Jon, I fear that you'll need to carry the "no-undefined" hunk locally when building the dri drivers under cygwin. Cc: Jon TURNEY <> Signed-off-by: Emil Velikov <> Reviewed-by: Matt Turner <>
2014-02-18automake: remove leftover XORG and LIBKMS variablesEmil Velikov1-2/+0
No longer set or used since the removal of st/xorg. Signed-off-by: Emil Velikov <> Reviewed-by: Matt Turner <>
2014-02-11gbm: automake: add symbol testsEmil Velikov1-0/+2
Signed-off-by: Emil Velikov <>
2014-02-11gbm: automake: addEmil Velikov1-1/+2
VISIBILITY_CFLAGS Currently the library exports every symbol imaginable, rather than the ones defined by the API. Note: This may cause issues for libraries that are linking agaist libgbm's internals. Cc: Kristian Høgsberg <> Signed-off-by: Emil Velikov <> Reviewed-by: Matt Turner <>
2014-02-11gbm: drop unneeded dependency of libudevEmil Velikov1-2/+0
As of recently we dlopen the library, additionally the only code that is including the libudev.h header, is the loader. Signed-off-by: Emil Velikov <>
2014-01-29build: Share the all-local rule for linking libraries into the build dirKristian Høgsberg1-4/+1
This consolidates how we link the libraries into the build directory. It works for lib_LTLIBRARIES but not custom shared libraries like DRI drivers or gallium state trackers which needs special casing (cf dri mega drivers, for example) Signed-off-by: Kristian Høgsberg <> Reviewed-by: Matt Turner <>
2014-01-28gbm: Make symlink.Matt Turner1-0/+1
Reviewed-by: Kenneth Graunke <>
2014-01-18gbm: use the loader util libEmil Velikov1-4/+3
Additionally this commit removes the following exported functions _gbm_udev_device_new_from_fd() _gbm_fd_get_device_name() _gbm_log() All three were erroneously marked as exported since their inception. Neither of them has ever been a part of the API thus there should be no users of them. Cc: Chad Versace <> Cc: Kristian Høgsberg <> Signed-off-by: Emil Velikov <> Reviewed-by: Rob Clark <> Reviewed-by: Kristian Høgsberg <> Reviewed-by: Ian Romanick <>
2014-01-18loader: introduce the loader util libEmil Velikov1-1/+5
All the various window system integration layers duplicate roughly the same code for figuring out device and driver name, pci-id's, etc. Which is sad. So extract it out into a loader util lib. v2 (Emil) * Separate the introduction of libloader from the code de-duplication. * Strip out non-pci devices support. * Add scons + Android build system support. * Add VISIBILITY_CFLAGS to avoid exporting the loader funcs. v3 (Emil) * PIPE_OS_ANDROID is undefined at this scope, use ANDROID * Make sure we define _EGL_NO_DRM when building only swrast Signed-off-by: Rob Clark <> Signed-off-by: Emil Velikov <> Reviewed-by: Rob Clark <> Reviewed-by: Kristian Høgsberg <> Reviewed-by: Ian Romanick <>
2013-11-16gbm: enable subdir-objects to prevent automake warningsEmil Velikov1-0/+2
Reviewed-by: Matt Turner <> Signed-off-by: Emil Velikov <>
2013-08-12gbm: Link to libwayland-drm if Wayland EGL platform is enabledArmin K1-1/+2
We were relying on libEGL to pull in libwayland-client symbols, but with commit 2c2e64edaba0f6aeb181ca5b51eb8dea8e9b39f9 cleaned up the symbol leak.
2012-08-26gbm: Use libkms to replace DRI cursor imagesJakob Bornecrantz1-1/+2
Uses libkms instead of dri image cursor. Since this is the only user of the DRI cursor and write interface we can remove cursor surfaces entirely from the DRI interface and as a consequence also from the Gallium interface as well. Tho to make everybody happy with this it would probably should add a kms_bo_write function, but that is probably wise in anyways. The only downside is that it adds a dependancy on libkms, this could how ever be replaced with the dumb_bo drm ioctl interface. Tested-by: Scott Moreau <> Signed-off-by: Jakob Bornecrantz <>
2012-07-30gbm: Fix build for wayland includeElvis Lee1-0/+1
backends/gbm_dri.c fails to find wayland-server.h. Signed-off-by: Elvis Lee <>
2012-07-16gbm: Add new gbm_bo_import entry pointKristian Høgsberg1-0/+4
This generalizes and replaces gbm_bo_create_for_egl_image. gbm_bo_import will create a gbm_bo from either an EGLImage or a struct wl_buffer.
2012-03-19shared-glapi: Convert to automakeKristian Høgsberg1-2/+2
This fixes a build problem where EGL links to, which encodes a relative path to it's dependency. The relative path breaks when the linker tries to resolve it from src/egl/main instead of src/gbm. Typically we silently fall back to the system, which is wrong and breaks when there isn't one. Morale of the story: don't mix mklib and libtool.
2012-01-26gbm: Add back link flags for udev, dl and glapiBenjamin Franzke1-1/+3
They were left out when migrating to automake.
2012-01-24gbm: install into libMatt Turner1-0/+4
This partially reverts commit 90e256853418eaaba3717f930cc6a331e4099056.
2012-01-23automake: src/gbmMatt Turner1-0/+34 (instead of is installed now along with (no change).