commit:     49f74728707b8ba74ca68acc34918c7100914587
Author:     Jory Pratt <anarchy <AT> gentoo <DOT> org>
AuthorDate: Thu Nov 25 14:49:42 2021 +0000
Commit:     Jory Pratt <anarchy <AT> gentoo <DOT> org>
CommitDate: Thu Nov 25 14:49:42 2021 +0000
URL:        https://gitweb.gentoo.org/proj/musl.git/commit/?id=49f74728

media-libs/mesa: sync with ::gentoo stable

Package-Manager: Portage-3.0.28, Repoman-3.0.3
Signed-off-by: Jory Pratt <anarchy <AT> gentoo.org>

 media-libs/mesa/Manifest                           |  2 +-
 .../{mesa-21.1.7.ebuild => mesa-21.2.5.ebuild}     | 34 ++++++++++++----------
 media-libs/mesa/metadata.xml                       |  3 +-
 3 files changed, 21 insertions(+), 18 deletions(-)

diff --git a/media-libs/mesa/Manifest b/media-libs/mesa/Manifest
index 513939a4..7ca05367 100644
--- a/media-libs/mesa/Manifest
+++ b/media-libs/mesa/Manifest
@@ -1 +1 @@
-DIST mesa-21.1.7.tar.xz 15391776 BLAKE2B 
a9138f189ef953d5efa4e287fbbe795ef2539c113dc7e0f565d3f35dcfaa59ab08674bf37fda196ba34e5963637c3ebb133db40b558bd275e29c8387b1acfdfa
 SHA512 
1fd677437f292c30fbf08bfef8c1088557841f426090ccba20ab2a222b08fb5c3ec48a7a0301466e03a23019d09414c700a4f5e299479cacd6972a9f3ba030c8
+DIST mesa-21.2.5.tar.xz 15829684 BLAKE2B 
a5d00d6c566e699acd1f8cfcf1b52024c92cfa8a4cc9a6fb1d6493526ea0d65790ed97c47c5c174d4369e589caf1a361351df6d43aba89f818970f87f9a81059
 SHA512 
aaa1ebaa1e18eea76c3784c9a65942c3e417c1079d7bf75dcede574999dc459fb4d68d041cf2f767afb9cbfa834a985e0a4edd5a56b0fc90f8fdc506359aa5da

diff --git a/media-libs/mesa/mesa-21.1.7.ebuild 
b/media-libs/mesa/mesa-21.2.5.ebuild
similarity index 93%
rename from media-libs/mesa/mesa-21.1.7.ebuild
rename to media-libs/mesa/mesa-21.2.5.ebuild
index 242a0454..c5830db8 100644
--- a/media-libs/mesa/mesa-21.1.7.ebuild
+++ b/media-libs/mesa/mesa-21.2.5.ebuild
@@ -3,12 +3,10 @@
 
 EAPI=7
 
-PYTHON_COMPAT=( python3_{7,8,9} )
+PYTHON_COMPAT=( python3_{7..10} )
 
 inherit llvm meson-multilib python-any-r1 linux-info
 
-OPENGL_DIR="xorg-x11"
-
 MY_P="${P/_/-}"
 
 DESCRIPTION="OpenGL-like graphic library for Linux"
@@ -29,25 +27,25 @@ RESTRICT="
 "
 
 RADEON_CARDS="r100 r200 r300 r600 radeon radeonsi"
-VIDEO_CARDS="${RADEON_CARDS} freedreno i915 i965 intel iris lima nouveau 
panfrost v3d vc4 virgl vivante vmware"
+VIDEO_CARDS="${RADEON_CARDS} crocus freedreno i915 i965 intel iris lima 
nouveau panfrost v3d vc4 virgl vivante vmware"
 for card in ${VIDEO_CARDS}; do
        IUSE_VIDEO_CARDS+=" video_cards_${card}"
 done
 
 IUSE="${IUSE_VIDEO_CARDS}
-       +classic d3d9 debug +dri3 +egl +gallium +gbm gles1 +gles2 +llvm
+       +classic cpu_flags_x86_sse2 d3d9 debug +egl +gallium +gbm gles1 +gles2 
+llvm
        lm-sensors opencl osmesa selinux test unwind vaapi valgrind vdpau vulkan
        vulkan-overlay wayland +X xa xvmc zink +zstd"
 
 REQUIRED_USE="
-       d3d9?   ( dri3 || ( video_cards_iris video_cards_r300 video_cards_r600 
video_cards_radeonsi video_cards_nouveau video_cards_vmware ) )
+       d3d9?   ( || ( video_cards_iris video_cards_r300 video_cards_r600 
video_cards_radeonsi video_cards_nouveau video_cards_vmware ) )
        gles1?  ( egl )
        gles2?  ( egl )
        osmesa? ( gallium )
-       vulkan? ( dri3
-                         video_cards_radeonsi? ( llvm ) )
+       vulkan? ( video_cards_radeonsi? ( llvm ) )
        vulkan-overlay? ( vulkan )
        wayland? ( egl gbm )
+       video_cards_crocus? ( gallium )
        video_cards_freedreno?  ( gallium )
        video_cards_intel?  ( classic )
        video_cards_i915?   ( || ( classic gallium ) )
@@ -73,7 +71,7 @@ REQUIRED_USE="
        zink? ( gallium vulkan )
 "
 
-LIBDRM_DEPSTRING=">=x11-libs/libdrm-2.4.105"
+LIBDRM_DEPSTRING=">=x11-libs/libdrm-2.4.107"
 RDEPEND="
        >=dev-libs/expat-2.1.0-r3:=[${MULTILIB_USEDEP}]
        >=media-libs/libglvnd-1.3.2[X?,${MULTILIB_USEDEP}]
@@ -142,12 +140,12 @@ RDEPEND="${RDEPEND}
 # 1. List all the working slots (with min versions) in ||, newest first.
 # 2. Update the := to specify *max* version, e.g. < 10.
 # 3. Specify LLVM_MAX_SLOT, e.g. 9.
-LLVM_MAX_SLOT="12"
+LLVM_MAX_SLOT="13"
 LLVM_DEPSTR="
        || (
+               sys-devel/llvm:13[${MULTILIB_USEDEP}]
                sys-devel/llvm:12[${MULTILIB_USEDEP}]
                sys-devel/llvm:11[${MULTILIB_USEDEP}]
-               sys-devel/llvm:10[${MULTILIB_USEDEP}]
        )
        <sys-devel/llvm-$((LLVM_MAX_SLOT + 1)):=[${MULTILIB_USEDEP}]
 "
@@ -261,11 +259,12 @@ llvm_check_deps() {
 
 pkg_pretend() {
        if use vulkan; then
-               if ! use video_cards_i965 &&
+               if ! use video_cards_freedreno &&
+                  ! use video_cards_i965 &&
                   ! use video_cards_iris &&
                   ! use video_cards_radeonsi &&
                   ! use video_cards_v3d; then
-                       ewarn "Ignoring USE=vulkan     since VIDEO_CARDS does 
not contain i965, iris, radeonsi, or v3d"
+                       ewarn "Ignoring USE=vulkan     since VIDEO_CARDS does 
not contain freedreno, i965, iris, radeonsi, or v3d"
                fi
        fi
 
@@ -479,6 +478,7 @@ multilib_src_configure() {
                        fi
                fi
 
+               gallium_enable video_cards_crocus crocus
                gallium_enable video_cards_iris iris
 
                gallium_enable video_cards_r300 r300
@@ -499,6 +499,7 @@ multilib_src_configure() {
        fi
 
        if use vulkan; then
+               vulkan_enable video_cards_freedreno freedreno
                vulkan_enable video_cards_i965 intel
                vulkan_enable video_cards_iris intel
                vulkan_enable video_cards_radeonsi amd
@@ -519,7 +520,7 @@ multilib_src_configure() {
                $(meson_use test build-tests)
                -Dglx=$(usex X dri disabled)
                -Dshared-glapi=enabled
-               $(meson_feature dri3)
+               -Ddri3=enabled
                $(meson_feature egl)
                $(meson_feature gbm)
                $(meson_feature gles1)
@@ -527,7 +528,10 @@ multilib_src_configure() {
                $(meson_use osmesa)
                $(meson_use selinux)
                $(meson_feature zstd)
-               -Dvalgrind=$(usex valgrind auto false)
+               $(meson_use video_cards_crocus prefer-crocus)
+               $(meson_use video_cards_iris prefer-iris)
+               $(meson_use cpu_flags_x86_sse2 sse2)
+               -Dvalgrind=$(usex valgrind auto disabled)
                -Ddri-drivers=$(driver_list "${DRI_DRIVERS[*]}")
                -Dgallium-drivers=$(driver_list "${GALLIUM_DRIVERS[*]}")
                -Dvulkan-drivers=$(driver_list "${VULKAN_DRIVERS[*]}")

diff --git a/media-libs/mesa/metadata.xml b/media-libs/mesa/metadata.xml
index a2a3def6..2b18aba1 100644
--- a/media-libs/mesa/metadata.xml
+++ b/media-libs/mesa/metadata.xml
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd";>
 <pkgmetadata>
        <maintainer type="project">
                <email>[email protected]</email>
@@ -8,7 +8,6 @@
        <use>
                <flag name="classic">Build drivers based on the classic 
architecture.</flag>
                <flag name="d3d9">Enable Direct 3D9 API through Nine state 
tracker. Can be used together with patched wine.</flag>
-               <flag name="dri3">Enable DRI3 support.</flag>
                <flag name="egl">Enable EGL support.</flag>
                <flag name="gallium">Build drivers based on Gallium3D, the new 
architecture for 3D graphics drivers.</flag>
                <flag name="gbm">Enable the Graphics Buffer Manager for EGL on 
KMS.</flag>

Reply via email to