mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-23 10:48:08 +02:00
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 <robh@kernel.org> [Emil Velikov: drop no longer relevant hunk from commit message.] Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by: Eric Anholt <eric@anholt.net>
55 lines
1.1 KiB
Makefile
55 lines
1.1 KiB
Makefile
include Makefile.sources
|
|
|
|
pkgconfigdir = $(libdir)/pkgconfig
|
|
pkgconfig_DATA = main/gbm.pc
|
|
|
|
AM_CFLAGS = \
|
|
-D_OS_UNIX=1 \
|
|
-DMODULEDIR='"$(libdir)/gbm"' \
|
|
-I$(top_srcdir)/include \
|
|
-I$(top_srcdir)/src/loader \
|
|
-I$(top_srcdir)/src/gbm/main \
|
|
$(DLOPEN_CFLAGS) \
|
|
$(DEFINES) \
|
|
$(VISIBILITY_CFLAGS)
|
|
|
|
lib_LTLIBRARIES = libgbm.la
|
|
include_HEADERS = main/gbm.h
|
|
|
|
libgbm_la_SOURCES = \
|
|
$(gbm_core_FILES)
|
|
|
|
libgbm_la_LDFLAGS = \
|
|
-no-undefined \
|
|
-version-info 1:0 \
|
|
$(GC_SECTIONS) \
|
|
$(LD_NO_UNDEFINED)
|
|
|
|
libgbm_la_LIBADD = \
|
|
$(top_builddir)/src/loader/libloader.la \
|
|
$(DLOPEN_LIBS)
|
|
|
|
if HAVE_PLATFORM_WAYLAND
|
|
AM_CPPFLAGS = -DHAVE_WAYLAND_PLATFORM
|
|
AM_CFLAGS += $(WAYLAND_CFLAGS)
|
|
libgbm_la_LIBADD += $(top_builddir)/src/egl/wayland/wayland-drm/libwayland-drm.la $(WAYLAND_LIBS)
|
|
endif
|
|
|
|
if HAVE_DRI2
|
|
libgbm_la_SOURCES += \
|
|
$(gbm_dri_FILES)
|
|
|
|
AM_CFLAGS += \
|
|
-DDEFAULT_DRIVER_DIR='"$(DRI_DRIVER_SEARCH_DIR)"' \
|
|
$(LIBDRM_CFLAGS) \
|
|
$(PTHREADSTUBS_CFLAGS)
|
|
|
|
libgbm_la_LIBADD += \
|
|
$(LIBDRM_LIBS) \
|
|
$(PTHREADSTUBS_LIBS)
|
|
endif
|
|
|
|
TESTS = gbm-symbols-check
|
|
EXTRA_DIST = gbm-symbols-check
|
|
|
|
include $(top_srcdir)/install-lib-links.mk
|