gallium: Make all drm drivers use the new drm compat helper
This commit is contained in:
@@ -13,6 +13,7 @@ PIPE_DRIVERS = \
|
||||
$(TOP)/src/gallium/drivers/i915/libi915.a
|
||||
|
||||
C_SOURCES = \
|
||||
target.c \
|
||||
$(COMMON_GALLIUM_SOURCES) \
|
||||
$(DRIVER_SOURCES)
|
||||
|
||||
|
||||
@@ -22,6 +22,6 @@ env.Prepend(LIBS = [
|
||||
|
||||
env.LoadableModule(
|
||||
target = 'i915_dri.so',
|
||||
source = 'dummy.c',
|
||||
source = 'target.c',
|
||||
SHLIBPREFIX = '',
|
||||
)
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
|
||||
#include "target-helpers/drm_api_compat.h"
|
||||
|
||||
DRM_API_COMPAT_STRUCT("i915", "i915")
|
||||
@@ -15,6 +15,7 @@ PIPE_DRIVERS = \
|
||||
$(TOP)/src/gallium/drivers/i965/libi965.a
|
||||
|
||||
C_SOURCES = \
|
||||
target.c \
|
||||
$(COMMON_GALLIUM_SOURCES) \
|
||||
$(DRIVER_SOURCES)
|
||||
|
||||
|
||||
@@ -24,6 +24,6 @@ env.Prepend(LIBS = [
|
||||
|
||||
env.LoadableModule(
|
||||
target = 'i965_dri.so',
|
||||
source = 'dummy.c',
|
||||
source = 'target.c',
|
||||
SHLIBPREFIX = '',
|
||||
)
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
|
||||
#include "target-helpers/drm_api_compat.h"
|
||||
|
||||
DRM_API_COMPAT_STRUCT("i965", "i915")
|
||||
@@ -11,6 +11,7 @@ PIPE_DRIVERS = \
|
||||
$(TOP)/src/gallium/drivers/nouveau/libnouveau.a
|
||||
|
||||
C_SOURCES = \
|
||||
target.c \
|
||||
$(COMMON_GALLIUM_SOURCES) \
|
||||
$(DRIVER_SOURCES)
|
||||
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
|
||||
#include "target-helpers/drm_api_compat.h"
|
||||
|
||||
DRM_API_COMPAT_STRUCT("nouveau", "nouveau")
|
||||
@@ -12,6 +12,7 @@ PIPE_DRIVERS = \
|
||||
$(TOP)/src/gallium/drivers/r600/libr600.a
|
||||
|
||||
C_SOURCES = \
|
||||
target.c \
|
||||
$(COMMON_GALLIUM_SOURCES) \
|
||||
$(DRIVER_SOURCES)
|
||||
|
||||
|
||||
@@ -22,6 +22,6 @@ env.Prepend(LIBS = [
|
||||
|
||||
env.SharedLibrary(
|
||||
target ='r600_dri.so',
|
||||
source = 'dummy.c',
|
||||
source = 'target.c',
|
||||
SHLIBPREFIX = '',
|
||||
)
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
|
||||
#include "target-helpers/drm_api_compat.h"
|
||||
|
||||
DRM_API_COMPAT_STRUCT("r600", "radeon")
|
||||
@@ -12,6 +12,7 @@ PIPE_DRIVERS = \
|
||||
$(TOP)/src/gallium/drivers/r300/libr300.a
|
||||
|
||||
C_SOURCES = \
|
||||
target.c \
|
||||
$(COMMON_GALLIUM_SOURCES) \
|
||||
$(DRIVER_SOURCES)
|
||||
|
||||
|
||||
@@ -22,6 +22,6 @@ env.Prepend(LIBS = [
|
||||
|
||||
env.SharedLibrary(
|
||||
target ='radeon_dri.so',
|
||||
source = 'dummy.c',
|
||||
source = 'target.c',
|
||||
SHLIBPREFIX = '',
|
||||
)
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
|
||||
#include "target-helpers/drm_api_compat.h"
|
||||
|
||||
DRM_API_COMPAT_STRUCT("radeon", "radeon")
|
||||
@@ -11,6 +11,7 @@ PIPE_DRIVERS = \
|
||||
$(TOP)/src/gallium/drivers/svga/libsvga.a
|
||||
|
||||
C_SOURCES = \
|
||||
target.c \
|
||||
$(COMMON_GALLIUM_SOURCES)
|
||||
|
||||
include ../Makefile.dri
|
||||
|
||||
@@ -20,6 +20,6 @@ env.Prepend(LIBS = [
|
||||
|
||||
env.LoadableModule(
|
||||
target = 'vmwgfx_dri.so',
|
||||
source = 'dummy.c',
|
||||
source = 'target.c',
|
||||
SHLIBPREFIX = '',
|
||||
)
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
|
||||
#include "target-helpers/drm_api_compat.h"
|
||||
|
||||
DRM_API_COMPAT_STRUCT("vmwgfx", "vmwgfx")
|
||||
@@ -2,7 +2,7 @@ TOP = ../../../..
|
||||
include $(TOP)/configs/current
|
||||
|
||||
EGL_DRIVER_NAME = i915
|
||||
EGL_DRIVER_SOURCES = dummy.c
|
||||
EGL_DRIVER_SOURCES = target.c
|
||||
EGL_DRIVER_LIBS = -ldrm_intel
|
||||
|
||||
EGL_DRIVER_PIPES = \
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
|
||||
#include "target-helpers/drm_api_compat.h"
|
||||
|
||||
DRM_API_COMPAT_STRUCT("i915", "i915")
|
||||
|
||||
/* A poor man's --whole-archive for EGL drivers */
|
||||
void *_eglMain(void *);
|
||||
void *_eglWholeArchive = (void *) _eglMain;
|
||||
@@ -2,7 +2,7 @@ TOP = ../../../..
|
||||
include $(TOP)/configs/current
|
||||
|
||||
EGL_DRIVER_NAME = i965
|
||||
EGL_DRIVER_SOURCES = dummy.c
|
||||
EGL_DRIVER_SOURCES = target.c
|
||||
EGL_DRIVER_LIBS = -ldrm_intel
|
||||
|
||||
EGL_DRIVER_PIPES = \
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
|
||||
#include "target-helpers/drm_api_compat.h"
|
||||
|
||||
DRM_API_COMPAT_STRUCT("i965", "i915")
|
||||
|
||||
/* A poor man's --whole-archive for EGL drivers */
|
||||
void *_eglMain(void *);
|
||||
void *_eglWholeArchive = (void *) _eglMain;
|
||||
@@ -2,7 +2,7 @@ TOP = ../../../..
|
||||
include $(TOP)/configs/current
|
||||
|
||||
EGL_DRIVER_NAME = nouveau
|
||||
EGL_DRIVER_SOURCES = dummy.c
|
||||
EGL_DRIVER_SOURCES = target.c
|
||||
EGL_DRIVER_LIBS = -ldrm_nouveau
|
||||
|
||||
EGL_DRIVER_PIPES = \
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
|
||||
#include "target-helpers/drm_api_compat.h"
|
||||
|
||||
DRM_API_COMPAT_STRUCT("nouveau", "nouveau")
|
||||
|
||||
/* A poor man's --whole-archive for EGL drivers */
|
||||
void *_eglMain(void *);
|
||||
void *_eglWholeArchive = (void *) _eglMain;
|
||||
@@ -2,7 +2,7 @@ TOP = ../../../..
|
||||
include $(TOP)/configs/current
|
||||
|
||||
EGL_DRIVER_NAME = radeon
|
||||
EGL_DRIVER_SOURCES = dummy.c
|
||||
EGL_DRIVER_SOURCES = target.c
|
||||
EGL_DRIVER_LIBS = -ldrm_radeon
|
||||
|
||||
EGL_DRIVER_PIPES = \
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
|
||||
#include "target-helpers/drm_api_compat.h"
|
||||
|
||||
DRM_API_COMPAT_STRUCT("radeon", "radeon")
|
||||
|
||||
/* A poor man's --whole-archive for EGL drivers */
|
||||
void *_eglMain(void *);
|
||||
void *_eglWholeArchive = (void *) _eglMain;
|
||||
@@ -2,7 +2,7 @@ TOP = ../../../..
|
||||
include $(TOP)/configs/current
|
||||
|
||||
EGL_DRIVER_NAME = vmwgfx
|
||||
EGL_DRIVER_SOURCES = dummy.c
|
||||
EGL_DRIVER_SOURCES = target.c
|
||||
EGL_DRIVER_LIBS =
|
||||
|
||||
EGL_DRIVER_PIPES = \
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
/* A poor man's --whole-archive for EGL drivers */
|
||||
void *_eglMain(void *);
|
||||
void *_eglWholeArchive = (void *) _eglMain;
|
||||
@@ -1,3 +1,7 @@
|
||||
#include "target-helpers/drm_api_compat.h"
|
||||
|
||||
DRM_API_COMPAT_STRUCT("vmwgfx", "vmwgfx")
|
||||
|
||||
/* A poor man's --whole-archive for EGL drivers */
|
||||
void *_eglMain(void *);
|
||||
void *_eglWholeArchive = (void *) _eglMain;
|
||||
@@ -4,6 +4,7 @@ include $(TOP)/configs/current
|
||||
LIBNAME = modesetting_drv.so
|
||||
|
||||
C_SOURCES = \
|
||||
intel_target.c \
|
||||
intel_xorg.c
|
||||
|
||||
DRIVER_DEFINES = \
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
|
||||
#include "target-helpers/drm_api_compat.h"
|
||||
|
||||
DRM_API_COMPAT_STRUCT("modesetting", "i915")
|
||||
@@ -4,6 +4,7 @@ include $(TOP)/configs/current
|
||||
LIBNAME = i965g_drv.so
|
||||
|
||||
C_SOURCES = \
|
||||
intel_target.c \
|
||||
intel_xorg.c
|
||||
|
||||
DRIVER_DEFINES = \
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
|
||||
#include "target-helpers/drm_api_compat.h"
|
||||
|
||||
DRM_API_COMPAT_STRUCT("i965g", "i915")
|
||||
@@ -4,6 +4,7 @@ include $(TOP)/configs/current
|
||||
LIBNAME = modesetting_drv.so
|
||||
|
||||
C_SOURCES = \
|
||||
nouveau_target.c \
|
||||
nouveau_xorg.c
|
||||
|
||||
DRIVER_DEFINES = \
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
|
||||
#include "target-helpers/drm_api_compat.h"
|
||||
|
||||
DRM_API_COMPAT_STRUCT("nouveau", "nouveau")
|
||||
@@ -0,0 +1,4 @@
|
||||
|
||||
#include "target-helpers/drm_api_compat.h"
|
||||
|
||||
DRM_API_COMPAT_STRUCT("radeon", "radeon")
|
||||
@@ -8,6 +8,7 @@ C_SOURCES = \
|
||||
vmw_video.c \
|
||||
vmw_ioctl.c \
|
||||
vmw_ctrl.c \
|
||||
vmw_target.c \
|
||||
vmw_screen.c
|
||||
|
||||
DRIVER_INCLUDES = \
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
|
||||
#include "target-helpers/drm_api_compat.h"
|
||||
|
||||
DRM_API_COMPAT_STRUCT("vmwgfx", "vmwgfx")
|
||||
Reference in New Issue
Block a user