... |
... |
@@ -32,21 +32,25 @@ endif |
32
|
32
|
|
33
|
33
|
DRI_DRIVERS =
|
34
|
34
|
EGL_PLATFORMS = x11
|
35
|
|
-GALLIUM_DRIVERS =
|
|
35
|
+GALLIUM_DRIVERS = swrast
|
36
|
36
|
VULKAN_DRIVERS =
|
37
|
37
|
|
38
|
38
|
confflags_DRI3 = -Ddri3=disabled
|
|
39
|
+confflags_OSMESA = -Dosmesa=gallium
|
39
|
40
|
|
40
|
41
|
# hurd doesn't do direct rendering
|
41
|
42
|
ifeq ($(DEB_HOST_ARCH_OS), hurd)
|
42
|
|
- DRI_DRIVERS = swrast
|
43
|
|
-
|
44
|
43
|
confflags_DIRECT_RENDERING = -Dglx-direct=false
|
45
|
44
|
confflags_GBM = -Dgbm=disabled
|
46
|
|
- confflags_OSMESA = -Dosmesa=classic
|
47
|
45
|
else
|
48
|
|
- DRI_DRIVERS += r200,r100
|
49
|
|
- GALLIUM_DRIVERS += r600,r300
|
|
46
|
+ DRI_DRIVERS += r100 r200
|
|
47
|
+ GALLIUM_DRIVERS += r300 r600
|
|
48
|
+
|
|
49
|
+ confflags_DIRECT_RENDERING = -Dglx-direct=true
|
|
50
|
+ confflags_GBM = -Dgbm=enabled
|
|
51
|
+ confflags_GALLIUM += -Dgallium-extra-hud=true
|
|
52
|
+ confflags_GALLIUM += -Dgallium-vdpau=enabled
|
|
53
|
+ confflags_GALLIUM += -Dlmsensors=enabled
|
50
|
54
|
|
51
|
55
|
# radv needs LLVM and the Vulkan loader, so only build on the subset of
|
52
|
56
|
# arches where we have LLVM enabled and where the Vulkan loader is built.
|
... |
... |
@@ -56,26 +60,26 @@ else |
56
|
60
|
|
57
|
61
|
ifeq ($(DEB_HOST_ARCH_OS), linux)
|
58
|
62
|
confflags_DRI3 = -Ddri3=true
|
59
|
|
- DRI_DRIVERS += ,nouveau
|
|
63
|
+ DRI_DRIVERS += nouveau
|
60
|
64
|
# Gallium drivers which require kernel support, not yet ported to non-Linux
|
61
|
|
- GALLIUM_DRIVERS += ,nouveau,virgl
|
|
65
|
+ GALLIUM_DRIVERS += nouveau virgl
|
62
|
66
|
|
63
|
67
|
# Freedreno requires arm in addition
|
64
|
68
|
ifneq (,$(filter arm arm64,$(DEB_HOST_ARCH_CPU)))
|
65
|
|
- GALLIUM_DRIVERS += ,freedreno
|
|
69
|
+ GALLIUM_DRIVERS += freedreno
|
66
|
70
|
endif
|
67
|
71
|
|
68
|
72
|
# etnaviv, kmsro, tegra, vc4 and v3d kernel support are only available on armhf and arm64
|
69
|
73
|
ifneq (,$(filter $(DEB_HOST_ARCH), armhf arm64))
|
70
|
|
- GALLIUM_DRIVERS += ,etnaviv,kmsro,lima,panfrost,tegra,vc4,v3d
|
71
|
|
- VULKAN_DRIVERS += ,broadcom
|
|
74
|
+ GALLIUM_DRIVERS += etnaviv kmsro lima panfrost tegra vc4 v3d
|
|
75
|
+ VULKAN_DRIVERS += broadcom
|
72
|
76
|
endif
|
73
|
77
|
|
74
|
78
|
ifneq (,$(filter $(DEB_HOST_ARCH), amd64 i386 x32))
|
75
|
|
- GALLIUM_DRIVERS += ,svga
|
|
79
|
+ GALLIUM_DRIVERS += svga
|
76
|
80
|
# svga needs xa state tracker
|
77
|
81
|
confflags_GALLIUM += -Dgallium-xa=enabled
|
78
|
|
- VULKAN_DRIVERS += ,intel
|
|
82
|
+ VULKAN_DRIVERS += intel
|
79
|
83
|
endif
|
80
|
84
|
|
81
|
85
|
# Non-Linux ports also lack *_CLOEXEC and epoll, so wayland isn't ready yet:
|
... |
... |
@@ -88,55 +92,57 @@ else |
88
|
92
|
|
89
|
93
|
# Build intel drivers on archs where libdrm-intel is installed
|
90
|
94
|
ifneq (,$(filter $(DEB_HOST_ARCH),amd64 i386 kfreebsd-amd64 kfreebsd-i386 x32))
|
91
|
|
- DRI_DRIVERS += ,i915, i965
|
92
|
|
- GALLIUM_DRIVERS += ,iris
|
|
95
|
+ DRI_DRIVERS += i915 i965
|
|
96
|
+ GALLIUM_DRIVERS += iris
|
93
|
97
|
endif
|
94
|
98
|
|
95
|
99
|
# LLVM is required for building r300g, radeonsi and llvmpipe drivers.
|
96
|
100
|
# It's also required for building OpenCL support.
|
97
|
|
- ifneq (,$(filter $(DEB_HOST_ARCH), amd64 arm64 armel armhf i386 kfreebsd-amd64 kfreebsd-i386 mips64el mipsel powerpc ppc64 ppc64el s390x sparc64))
|
98
|
|
- GALLIUM_DRIVERS += ,radeonsi,swrast
|
|
101
|
+ ifneq (,$(filter $(DEB_HOST_ARCH), amd64 arm64 armel armhf i386 mips64el mipsel powerpc ppc64 ppc64el s390x sparc64))
|
|
102
|
+ GALLIUM_DRIVERS += radeonsi
|
99
|
103
|
confflags_GALLIUM += -Dllvm=enabled
|
100
|
104
|
confflags_GALLIUM += -Dgallium-opencl=icd
|
101
|
|
- confflags_OSMESA = -Dosmesa=gallium
|
102
|
105
|
|
103
|
106
|
# nine makes sense only on archs that build wine
|
104
|
|
- ifneq (,$(filter $(DEB_HOST_ARCH), amd64 arm64 armel armhf i386 kfreebsd-i386 powerpc))
|
|
107
|
+ ifneq (,$(filter $(DEB_HOST_ARCH), amd64 arm64 armel armhf i386 powerpc))
|
105
|
108
|
confflags_GALLIUM += -Dgallium-nine=true
|
106
|
109
|
endif
|
107
|
110
|
else
|
108
|
|
- DRI_DRIVERS += ,swrast
|
109
|
111
|
confflags_GALLIUM += -Dllvm=disabled
|
110
|
|
- confflags_OSMESA = -Dosmesa=classic
|
111
|
112
|
endif
|
112
|
113
|
|
113
|
114
|
# build vulkan layers where Vulkan loader is available
|
114
|
115
|
ifneq (,$(filter $(DEB_HOST_ARCH), amd64 arm64 armel armhf i386 mips64el mipsel powerpc ppc64 ppc64el s390x sparc64 x32))
|
115
|
|
- GALLIUM_DRIVERS += ,zink
|
|
116
|
+ GALLIUM_DRIVERS += zink
|
116
|
117
|
confflags_VULKAN += -Dvulkan-device-select-layer=true
|
117
|
118
|
confflags_VULKAN += -Dvulkan-overlay-layer=true
|
118
|
119
|
endif
|
119
|
120
|
|
120
|
|
- confflags_DIRECT_RENDERING = -Dglx-direct=true
|
121
|
|
- confflags_GBM = -Dgbm=enabled
|
122
|
|
- confflags_GALLIUM += -Dgallium-extra-hud=true
|
123
|
|
- confflags_GALLIUM += -Dgallium-vdpau=enabled
|
124
|
|
- confflags_GALLIUM += -Dlmsensors=enabled
|
125
|
|
-
|
126
|
121
|
ifeq (,$(filter pkg.mesa.nolibva,$(DEB_BUILD_PROFILES)))
|
127
|
|
- confflags_GALLIUM += -Dgallium-va=enabled
|
|
122
|
+ confflags_GALLIUM += -Dgallium-va=enabled
|
128
|
123
|
endif
|
129
|
124
|
endif
|
130
|
125
|
|
|
126
|
+
|
|
127
|
+empty:=
|
|
128
|
+space := $(empty) $(empty)
|
|
129
|
+comma := ,
|
|
130
|
+DRI_DRIVERS := $(patsubst %,'%',$(DRI_DRIVERS))
|
|
131
|
+DRI_DRIVERS_LIST := $(subst $(space),$(comma),$(DRI_DRIVERS))
|
|
132
|
+GALLIUM_DRIVERS := $(patsubst %,'%',$(GALLIUM_DRIVERS))
|
|
133
|
+GALLIUM_DRIVERS_LIST := $(subst $(space),$(comma),$(GALLIUM_DRIVERS))
|
|
134
|
+VULKAN_DRIVERS := $(patsubst %,'%',$(VULKAN_DRIVERS))
|
|
135
|
+VULKAN_DRIVERS_LIST := $(subst $(space),$(comma),$(VULKAN_DRIVERS))
|
|
136
|
+
|
131
|
137
|
confflags_EGL = -Dplatforms="$(EGL_PLATFORMS)"
|
132
|
138
|
confflags_GLES = -Dgles1=disabled -Dgles2=enabled
|
133
|
|
-confflags_GALLIUM += -Dgallium-drivers="$(GALLIUM_DRIVERS)"
|
|
139
|
+confflags_GALLIUM += -Dgallium-drivers="[$(GALLIUM_DRIVERS_LIST)]"
|
134
|
140
|
|
135
|
141
|
confflags += \
|
136
|
|
- -Ddri-drivers="$(DRI_DRIVERS)" \
|
|
142
|
+ -Ddri-drivers="[$(DRI_DRIVERS_LIST)]" \
|
137
|
143
|
-Ddri-drivers-path=/usr/lib/$(DEB_HOST_MULTIARCH)/dri \
|
138
|
144
|
-Ddri-search-path='/usr/lib/$(DEB_HOST_MULTIARCH)/dri:\$$$${ORIGIN}/dri:/usr/lib/dri' \
|
139
|
|
- -Dvulkan-drivers="$(VULKAN_DRIVERS)" \
|
|
145
|
+ -Dvulkan-drivers="[$(VULKAN_DRIVERS_LIST)]" \
|
140
|
146
|
-Dglvnd=true \
|
141
|
147
|
-Dshared-glapi=enabled \
|
142
|
148
|
-Dgallium-xvmc=disabled \
|