mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 13:00:09 +01:00
dri/common: remove unused drm_version variable
As of last commit the only user of it (radeon/r200) no longer uses it. As such let's remove it and cleanup the nasty hacks that we had in place to support this. v2: Leave LIBDRM_CFLAGS around. Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by: Michel Dänzer <michel.daenzer@amd.com> (v1) Reviewed-by: Marek Olšák <marek.olsak@amd.com> (v1)
This commit is contained in:
parent
5284e9e2c4
commit
ce2a4bd541
6 changed files with 1 additions and 55 deletions
21
configure.ac
21
configure.ac
|
|
@ -1375,26 +1375,6 @@ if test "x$enable_dri" = xyes; then
|
|||
[AC_MSG_ERROR([Expat library required for DRI not found])])
|
||||
EXPAT_LIBS="-lexpat"])
|
||||
|
||||
DRICOMMON_NEED_LIBDRM=no
|
||||
# If we are building any DRI driver other than swrast.
|
||||
if test -n "$with_dri_drivers"; then
|
||||
if test "x$with_dri_drivers" != xswrast; then
|
||||
# ... libdrm is required
|
||||
if test "x$have_libdrm" != xyes; then
|
||||
AC_MSG_ERROR([DRI drivers requires libdrm >= $LIBDRM_REQUIRED])
|
||||
fi
|
||||
DRICOMMON_NEED_LIBDRM=yes
|
||||
fi
|
||||
fi
|
||||
|
||||
# If we're building any gallium DRI driver other than swrast
|
||||
if test -n "$with_gallium_drivers" -a "x$DRICOMMON_NEED_LIBDRM" = xno; then
|
||||
if test "x$with_gallium_drivers" != xswrast; then
|
||||
# ... build a libdrm aware dricommon
|
||||
DRICOMMON_NEED_LIBDRM=yes
|
||||
fi
|
||||
fi
|
||||
|
||||
# put all the necessary libs together
|
||||
DRI_LIB_DEPS="$DRI_LIB_DEPS $SELINUX_LIBS $LIBDRM_LIBS $EXPAT_LIBS -lm $PTHREAD_LIBS $DLOPEN_LIBS"
|
||||
fi
|
||||
|
|
@ -2264,7 +2244,6 @@ fi
|
|||
|
||||
AC_SUBST([ELF_LIB])
|
||||
|
||||
AM_CONDITIONAL(DRICOMMON_NEED_LIBDRM, test "x$DRICOMMON_NEED_LIBDRM" = xyes)
|
||||
AM_CONDITIONAL(HAVE_LIBDRM, test "x$have_libdrm" = xyes)
|
||||
AM_CONDITIONAL(HAVE_X11_DRIVER, test "x$enable_xlib_glx" = xyes)
|
||||
AM_CONDITIONAL(HAVE_OSMESA, test "x$enable_osmesa" = xyes)
|
||||
|
|
|
|||
|
|
@ -43,11 +43,6 @@ LOCAL_EXPORT_C_INCLUDE_DIRS := \
|
|||
$(LOCAL_PATH) \
|
||||
$(intermediates)
|
||||
|
||||
ifneq ($(filter-out swrast,$(MESA_GPU_DRIVERS)),)
|
||||
LOCAL_CFLAGS := -DHAVE_LIBDRM
|
||||
LOCAL_SHARED_LIBRARIES := libdrm
|
||||
endif
|
||||
|
||||
LOCAL_SRC_FILES := \
|
||||
$(DRI_COMMON_FILES) \
|
||||
$(XMLCONFIG_FILES)
|
||||
|
|
|
|||
|
|
@ -32,6 +32,7 @@ AM_CFLAGS = \
|
|||
-I$(top_srcdir)/src/mesa/ \
|
||||
-I$(top_srcdir)/src/gallium/include \
|
||||
-I$(top_srcdir)/src/gallium/auxiliary \
|
||||
$(LIBDRM_CFLAGS) \
|
||||
$(DEFINES) \
|
||||
$(VISIBILITY_CFLAGS)
|
||||
|
||||
|
|
@ -53,10 +54,3 @@ libdri_test_stubs_la_CFLAGS = $(AM_CFLAGS) -DNO_MAIN
|
|||
libmegadriver_stub_la_SOURCES = $(megadriver_stub_FILES)
|
||||
|
||||
sysconf_DATA = drirc
|
||||
|
||||
if DRICOMMON_NEED_LIBDRM
|
||||
AM_CFLAGS += $(LIBDRM_CFLAGS)
|
||||
libdricommon_la_LIBADD = $(LIBDRM_LIBS)
|
||||
else
|
||||
AM_CFLAGS += -UHAVE_LIBDRM
|
||||
endif
|
||||
|
|
|
|||
|
|
@ -32,8 +32,6 @@ drienv.AppendUnique(LIBS = [
|
|||
'expat',
|
||||
])
|
||||
|
||||
drienv.PkgUseModules('DRM')
|
||||
|
||||
sources = drienv.ParseSourceList('Makefile.sources', ['DRI_COMMON_FILES', 'XMLCONFIG_FILES' ])
|
||||
|
||||
dri_common = drienv.ConvenienceLibrary(
|
||||
|
|
|
|||
|
|
@ -40,9 +40,6 @@
|
|||
|
||||
|
||||
#include <stdbool.h>
|
||||
#ifdef HAVE_LIBDRM
|
||||
#include <xf86drm.h>
|
||||
#endif
|
||||
#include "dri_util.h"
|
||||
#include "utils.h"
|
||||
#include "xmlpool.h"
|
||||
|
|
@ -137,18 +134,6 @@ driCreateNewScreen2(int scrn, int fd,
|
|||
|
||||
setupLoaderExtensions(psp, extensions);
|
||||
|
||||
#ifdef HAVE_LIBDRM
|
||||
if (fd != -1) {
|
||||
drmVersionPtr version = drmGetVersion(fd);
|
||||
if (version) {
|
||||
psp->drm_version.major = version->version_major;
|
||||
psp->drm_version.minor = version->version_minor;
|
||||
psp->drm_version.patch = version->version_patchlevel;
|
||||
drmFreeVersion(version);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
psp->loaderPrivate = data;
|
||||
|
||||
psp->extensions = emptyExtensionList;
|
||||
|
|
|
|||
|
|
@ -148,11 +148,6 @@ struct __DRIscreenRec {
|
|||
*/
|
||||
int fd;
|
||||
|
||||
/**
|
||||
* DRM (kernel module) version information.
|
||||
*/
|
||||
__DRIversion drm_version;
|
||||
|
||||
/**
|
||||
* Device-dependent private information (not stored in the SAREA).
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue