| 37 |
37 |
SRC_URI="
|
| 38 |
38 |
https://archive.mesa3d.org/${MY_P}.tar.xz
|
| 39 |
39 |
"
|
| 40 |
|
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~mips ppc ppc64 ~riscv ~s390 ~sparc x86 ~x64-solaris"
|
|
40 |
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-solaris"
|
| 41 |
41 |
fi
|
| 42 |
42 |
|
| 43 |
43 |
# This should be {CARGO_CRATE_URIS//.crate/.tar.gz} to correspond to the wrap files,
|
| ... | ... | |
| 64 |
64 |
IUSE="${IUSE_VIDEO_CARDS}
|
| 65 |
65 |
cpu_flags_x86_sse2 debug +llvm
|
| 66 |
66 |
lm-sensors opencl +opengl +proprietary-codecs
|
| 67 |
|
sysprof test unwind vaapi valgrind vulkan
|
|
67 |
sysprof test unwind vaapi valgrind virtio vulkan
|
| 68 |
68 |
wayland +X +zstd"
|
| 69 |
69 |
RESTRICT="!test? ( test )"
|
| 70 |
70 |
REQUIRED_USE="
|
| 71 |
71 |
llvm? ( ${LLVM_REQUIRED_USE} )
|
|
72 |
virtio? ( || ( video_cards_freedreno video_cards_intel video_cards_panfrost video_cards_radeonsi ) )
|
| 72 |
73 |
video_cards_i915? ( llvm )
|
| 73 |
74 |
video_cards_lavapipe? ( llvm vulkan )
|
| 74 |
75 |
video_cards_radeon? ( x86? ( llvm ) amd64? ( llvm ) )
|
| ... | ... | |
| 142 |
143 |
sysprof? ( >=dev-util/sysprof-capture-49.0[${MULTILIB_USEDEP}] )
|
| 143 |
144 |
video_cards_d3d12? ( >=dev-util/directx-headers-1.619.1[${MULTILIB_USEDEP}] )
|
| 144 |
145 |
valgrind? ( dev-debug/valgrind )
|
| 145 |
|
wayland? ( >=dev-libs/wayland-protocols-1.41 )
|
|
146 |
video_cards_virgl? ( vulkan? ( ~media-libs/venus-protocol-1.1.3 ) )
|
|
147 |
wayland? ( >=dev-libs/wayland-protocols-1.50 )
|
| 146 |
148 |
X? (
|
| 147 |
149 |
x11-libs/libXrandr[${MULTILIB_USEDEP}]
|
| 148 |
150 |
x11-base/xorg-proto
|
| ... | ... | |
| 176 |
178 |
video_cards_imagination? ( ${CLC_DEPSTRING} )
|
| 177 |
179 |
video_cards_nvk? (
|
| 178 |
180 |
>=dev-util/bindgen-0.71.1
|
| 179 |
|
>=dev-util/cbindgen-0.26.0
|
|
181 |
>=dev-util/cbindgen-0.28.0
|
| 180 |
182 |
${RUST_DEPEND}
|
| 181 |
183 |
${CLC_DEPSTRING}
|
| 182 |
184 |
)
|
| ... | ... | |
| 303 |
305 |
use wayland && platforms+=",wayland"
|
| 304 |
306 |
emesonargs+=(-Dplatforms=${platforms#,})
|
| 305 |
307 |
|
|
308 |
local amd_options
|
|
309 |
use llvm && amd_options+="use-llvm"
|
|
310 |
|
|
311 |
if use virtio; then
|
|
312 |
use video_cards_freedreno && emesonargs+=(-Dfreedreno-kmds=msm,virtio)
|
|
313 |
use video_cards_intel && emesonargs+=(-Dintel-virtio-experimental=true)
|
|
314 |
use video_cards_panfrost && emesonargs+=(-Dpanfrost-virtio=true)
|
|
315 |
use video_cards_radeonsi && amd_options+=",virtio"
|
|
316 |
fi
|
|
317 |
|
|
318 |
emesonargs+=(-Damd-options=${amd_options#,})
|
|
319 |
|
| 306 |
320 |
if use video_cards_d3d12 ||
|
| 307 |
321 |
use video_cards_nouveau ||
|
| 308 |
322 |
use video_cards_r600 ||
|
| ... | ... | |
| 364 |
378 |
vulkan_enable video_cards_v3d broadcom
|
| 365 |
379 |
vulkan_enable video_cards_vc4 broadcom
|
| 366 |
380 |
vulkan_enable video_cards_virgl virtio
|
| 367 |
|
emesonargs+=(-Dvulkan-layers=anti-lag,device-select,overlay)
|
|
381 |
emesonargs+=(-Dvulkan-layers=device-select,overlay)
|
| 368 |
382 |
fi
|
| 369 |
383 |
|
| 370 |
384 |
driver_list() {
|
| ... | ... | |
| 411 |
425 |
$(meson_feature unwind libunwind)
|
| 412 |
426 |
$(meson_feature vulkan display-info)
|
| 413 |
427 |
$(meson_feature zstd)
|
| 414 |
|
$(meson_use llvm amd-use-llvm)
|
| 415 |
428 |
$(meson_use sysprof)
|
| 416 |
429 |
$(meson_use cpu_flags_x86_sse2 sse2)
|
| 417 |
430 |
-Dvalgrind=$(usex valgrind auto disabled)
|