Diff mesa-25.2.8 with a mesa-9999

/usr/portage/media-libs/mesa/mesa-9999.ebuild 2025-11-26 18:18:03.460014740 +0300
3 3

  
4 4
EAPI=8
5 5

  
6
LLVM_COMPAT=( {18..20} )
6
LLVM_COMPAT=( {18..21} )
7 7
LLVM_OPTIONAL=1
8 8
CARGO_OPTIONAL=1
9 9
PYTHON_COMPAT=( python3_{11..14} )
......
21 21
	unicode-ident@1.0.12
22 22
"
23 23

  
24
RUST_MIN_VER="1.78.0"
24
RUST_MIN_VER="1.82.0"
25 25
RUST_MULTILIB=1
26 26
RUST_OPTIONAL=1
27 27

  
......
53 53
LICENSE="MIT SGI-B-2.0"
54 54
SLOT="0"
55 55

  
56
RADEON_CARDS="r300 r600 radeon radeonsi"
57
VIDEO_CARDS="${RADEON_CARDS}
58
	asahi d3d12 freedreno intel lavapipe lima nouveau nvk panfrost v3d vc4 virgl
59
	vivante vmware zink"
56
VIDEO_CARDS="
57
	asahi d3d12 freedreno i915 imagination intel lavapipe lima nouveau nvk
58
	panfrost r300 r600 radeon radeonsi v3d vc4 virgl vivante vmware zink"
60 59
for card in ${VIDEO_CARDS}; do
61 60
	IUSE_VIDEO_CARDS+=" video_cards_${card}"
62 61
done
......
64 63
IUSE="${IUSE_VIDEO_CARDS}
65 64
	cpu_flags_x86_sse2 debug +llvm
66 65
	lm-sensors opencl +opengl +proprietary-codecs
67
	sysprof test unwind vaapi valgrind vdpau vulkan
66
	sysprof test unwind vaapi valgrind vulkan
68 67
	wayland +X +zstd"
69 68
RESTRICT="!test? ( test )"
70 69
REQUIRED_USE="
71 70
	llvm? ( ${LLVM_REQUIRED_USE} )
71
	video_cards_i915? ( llvm )
72 72
	video_cards_lavapipe? ( llvm vulkan )
73 73
	video_cards_radeon? ( x86? ( llvm ) amd64? ( llvm ) )
74 74
	video_cards_r300?   ( x86? ( llvm ) amd64? ( llvm ) )
75 75
	video_cards_zink? ( vulkan opengl )
76 76
	video_cards_nvk? ( vulkan video_cards_nouveau )
77
	vdpau? ( X )
78 77
"
79 78

  
80 79
LIBDRM_DEPSTRING=">=x11-libs/libdrm-2.4.121"
81 80
RDEPEND="
81
	${LIBDRM_DEPSTRING}[${MULTILIB_USEDEP}]
82 82
	>=dev-libs/expat-2.1.0-r3[${MULTILIB_USEDEP}]
83 83
	>=dev-util/spirv-tools-1.3.231.0[${MULTILIB_USEDEP}]
84 84
	>=media-libs/libglvnd-1.3.2[X?,${MULTILIB_USEDEP}]
......
109 109
	vaapi? (
110 110
		>=media-libs/libva-1.7.3:=[${MULTILIB_USEDEP}]
111 111
	)
112
	vdpau? ( >=x11-libs/libvdpau-1.5:=[${MULTILIB_USEDEP}] )
113
	video_cards_radeonsi? ( virtual/libelf:0=[${MULTILIB_USEDEP}] )
112
	video_cards_i915? (
113
		${LIBDRM_DEPSTRING}[video_cards_intel]
114
	)
115
	video_cards_radeonsi? (
116
		${LIBDRM_DEPSTRING}[video_cards_amdgpu]
117
		virtual/libelf:0=[${MULTILIB_USEDEP}]
118
	)
114 119
	video_cards_zink? ( media-libs/vulkan-loader:=[${MULTILIB_USEDEP}] )
115
	vulkan? ( virtual/libudev:= )
120
	vulkan? (
121
		media-libs/libdisplay-info:=[${MULTILIB_USEDEP}]
122
		virtual/libudev:=
123
	)
116 124
	wayland? ( >=dev-libs/wayland-1.18.0[${MULTILIB_USEDEP}] )
117
	${LIBDRM_DEPSTRING}[video_cards_freedreno?,video_cards_intel?,video_cards_nouveau?,video_cards_vc4?,video_cards_vivante?,video_cards_vmware?,${MULTILIB_USEDEP}]
118 125
	X? (
119 126
		>=x11-libs/libX11-1.8[${MULTILIB_USEDEP}]
120 127
		>=x11-libs/libxshmfence-1.1[${MULTILIB_USEDEP}]
......
126 133
	)
127 134
	zstd? ( app-arch/zstd:=[${MULTILIB_USEDEP}] )
128 135
"
129
for card in ${RADEON_CARDS}; do
130
	RDEPEND="${RDEPEND}
131
		video_cards_${card}? ( ${LIBDRM_DEPSTRING}[video_cards_radeon] )
132
	"
133
done
134
RDEPEND="${RDEPEND}
135
	video_cards_radeonsi? ( ${LIBDRM_DEPSTRING}[video_cards_amdgpu] )
136
"
137 136

  
138 137
DEPEND="${RDEPEND}
139 138
	sysprof? ( >=dev-util/sysprof-capture-49.0[${MULTILIB_USEDEP}] )
140
	video_cards_d3d12? ( >=dev-util/directx-headers-1.614.1[${MULTILIB_USEDEP}] )
139
	video_cards_d3d12? ( >=dev-util/directx-headers-1.618.1[${MULTILIB_USEDEP}] )
141 140
	valgrind? ( dev-debug/valgrind )
142 141
	wayland? ( >=dev-libs/wayland-protocols-1.41 )
143 142
	X? (
......
208 207
		if ! use video_cards_asahi &&
209 208
		   ! use video_cards_d3d12 &&
210 209
		   ! use video_cards_freedreno &&
210
		   ! use video_cards_imagination &&
211 211
		   ! use video_cards_intel &&
212 212
		   ! use video_cards_lavapipe &&
213 213
		   ! use video_cards_nouveau &&
......
216 216
		   ! use video_cards_radeonsi &&
217 217
		   ! use video_cards_v3d &&
218 218
		   ! use video_cards_virgl; then
219
			ewarn "Ignoring USE=vulkan     since VIDEO_CARDS does not contain asahi, d3d12, freedreno, intel, lavapipe, nouveau, nvk, panfrost, radeonsi, v3d, or virgl"
219
			ewarn "Ignoring USE=vulkan     since VIDEO_CARDS does not contain asahi, d3d12, freedreno, imagination, intel, lavapipe, nouveau, nvk, panfrost, radeonsi, v3d, or virgl"
220 220
		fi
221 221
	fi
222 222

  
......
231 231
		fi
232 232
	fi
233 233

  
234
	if use vdpau; then
235
		if ! use video_cards_d3d12 &&
236
		   ! use video_cards_nouveau &&
237
		   ! use video_cards_r600 &&
238
		   ! use video_cards_radeonsi &&
239
		   ! use video_cards_virgl; then
240
			ewarn "Ignoring USE=vdpau      since VIDEO_CARDS does not contain d3d12, nouveau, r600, radeonsi, or virgl"
241
		fi
242
	fi
243

  
244 234
	if ! use llvm; then
245 235
		use opencl     && ewarn "Ignoring USE=opencl     since USE does not contain llvm"
246 236
	fi
......
313 303
		emesonargs+=($(meson_feature vaapi gallium-d3d12-video))
314 304
	fi
315 305

  
316
	if use video_cards_d3d12 ||
317
	   use video_cards_nouveau ||
318
	   use video_cards_r600 ||
319
	   use video_cards_radeonsi ||
320
	   use video_cards_virgl; then
321
		emesonargs+=($(meson_feature vdpau gallium-vdpau))
322
	else
323
		emesonargs+=(-Dgallium-vdpau=disabled)
324
	fi
325

  
326 306
	gallium_enable !llvm softpipe
327 307
	gallium_enable llvm llvmpipe
328 308
	gallium_enable video_cards_asahi asahi
329 309
	gallium_enable video_cards_d3d12 d3d12
330 310
	gallium_enable video_cards_freedreno freedreno
331
	gallium_enable video_cards_intel crocus i915 iris
311
	gallium_enable video_cards_i915 i915
312
	gallium_enable video_cards_intel crocus iris
332 313
	gallium_enable video_cards_lima lima
333 314
	gallium_enable video_cards_nouveau nouveau
334 315
	gallium_enable video_cards_panfrost panfrost
......
360 341
		vulkan_enable video_cards_asahi asahi
361 342
		vulkan_enable video_cards_d3d12 microsoft-experimental
362 343
		vulkan_enable video_cards_freedreno freedreno
344
		vulkan_enable video_cards_imagination imagination
363 345
		vulkan_enable video_cards_intel intel intel_hasvk
364 346
		vulkan_enable video_cards_lavapipe swrast
365 347
		vulkan_enable video_cards_panfrost panfrost
......
377 359
			fi
378 360
		fi
379 361

  
380
		emesonargs+=(-Dvulkan-layers=device-select,overlay)
362
		emesonargs+=(-Dvulkan-layers=anti-lag,device-select,overlay)
381 363
	fi
382 364

  
383 365
	driver_list() {
......
411 393

  
412 394
	emesonargs+=(
413 395
		$(meson_use test build-tests)
414
		-Dlegacy-x11=dri2
415 396
		-Dexpat=enabled
416 397
		$(meson_use opengl)
417 398
		$(meson_feature opengl gbm)
......
422 403
		$(meson_feature llvm)
423 404
		$(meson_feature lm-sensors lmsensors)
424 405
		$(meson_feature unwind libunwind)
406
		$(meson_feature vulkan display-info)
425 407
		$(meson_feature zstd)
426 408
		$(meson_use llvm amd-use-llvm)
427 409
		$(meson_use sysprof)
Thank you!