diff --git a/x11-apps/igt-gpu-tools/Manifest b/x11-apps/igt-gpu-tools/Manifest new file mode 100644 index 0000000..66665a0 --- /dev/null +++ b/x11-apps/igt-gpu-tools/Manifest @@ -0,0 +1,6 @@ +AUX igt-gpu-tools-1.22-KBL-ICL-PCI-IDs.patch 1823 BLAKE2B df389f5b08771c22fd49b82c425d53560f9ae5fd4176f06ddba4582c4a22d42f67377b2bd99fff6f1d4bd3b7a7c9276149272c1548c0ce166c42063640a48888 SHA512 1e9afea48f3ecc000ca3994e5f9c899bb163a3295dd81012e8bdccf7db90ab4c9fd3ac5a68d3b44879fa93b89ae05a3c6b918055558e66516a0cc5bfda0d26bc +DIST igt-gpu-tools-1.23.tar.xz 1045716 BLAKE2B f5e55ce9b682f2a9f2c6ab73c1e8e933ebea09b343f3af02df50b5bdce3e2ac313b1f92709c6de0d9fc7ffe2e2c9dfa95d2918ae9bd561cc285cff30fe59c6fd SHA512 8697265a978359e28983f483bf95819844597fc2080923d15d0587f6d648081af27e8ea318873e20103bbf8446b9f1005c6bc90a6276d3169837abd181f96839 +DIST intel-gpu-tools-1.22.tar.xz 1022396 BLAKE2B c84338f3f84fcbe21a5b918b1afcc47d5419bd37828054fc3fa128d346b0f1b633d42f842464d96b28d4430788bfa9945a7596c14e6a79f8183440d3b9329c92 SHA512 af7964a3782bbc335c50c1c9c42f090306932423e76b9968d6919a2b633f3c11837e7ba572d352632c2b4db79bc98218d9d425c3b62e69abad5aa83d733dea8a +EBUILD igt-gpu-tools-1.22.ebuild 2357 BLAKE2B d849a086c8b77e9d5726e524e9d9e701260234b82c5a88544a1366d2de0a9547fc8919403ecf681945a31f5de0d1d2f190c28e0922879ce69cc7e18d69e87c18 SHA512 a672dc44fb1a3ef5277ee09d660b2342aeeb7eb07f9fb5d5db7d0c96673c5c715403d08e8c61a302bef52925d3b1a105f0c4733ed8f3e0976ed871541ac53b8c +EBUILD igt-gpu-tools-1.23.ebuild 1480 BLAKE2B 96daf039d3e8d00c898c34fccfbf55254b954273dded0106b4585510d9a0f724553b40d4c3f6649cb008b80bcaad1975af6121e2198742e7c0cca0ead61a4e80 SHA512 b636e28baa9ae33bc971273c3cb165da041f36aff7eb2cd329d6e62d8b24938d749282674e072fb7a32e2220db068dea89258ae9b2554669bfd02968b79a8b87 +MISC metadata.xml 519 BLAKE2B 6763311f36b9997f2599a385dc7d0978874bab850ca0d06a3620c4767c31e0b35b9173e37ef606559919b2ebda095ac48b846107a8c9b18e87f942b465be91a6 SHA512 77a0a295e8c82570da621c4631d171dbf6564c00a6aee0e9e0261f5217317d19f5cdac134320f486c89e26c84a2f0c1a21d3b1d42b32676a0fe1d48fbc752569 diff --git a/x11-apps/igt-gpu-tools/files/igt-gpu-tools-1.22-KBL-ICL-PCI-IDs.patch b/x11-apps/igt-gpu-tools/files/igt-gpu-tools-1.22-KBL-ICL-PCI-IDs.patch new file mode 100644 index 0000000..ff51969 --- /dev/null +++ b/x11-apps/igt-gpu-tools/files/igt-gpu-tools-1.22-KBL-ICL-PCI-IDs.patch @@ -0,0 +1,53 @@ +From 0896b88d1b80244832f9eacbca993c5121315d05 Mon Sep 17 00:00:00 2001 +From: Paulo Zanoni +Date: Thu, 26 Apr 2018 17:49:41 -0700 +Subject: lib: sync with the newer i915_pciids.h from the Kernel (KBL + ICL) + +I just copied the Kernel file into the IGT repository. + +New IDs: +- KBL GT2 sku from 672e314b21dc ("drm/i915/kbl: Add KBL GT2 sku") +- ICL IDs from d55cb4fa2cf0 ("drm/i915/icl: Add the ICL PCI IDs") + +Cc: Matt Atwood +Acked-by: Antonio Argenziano +Reviewed-by: Jose Roberto de Souza +Signed-off-by: Paulo Zanoni +--- + lib/i915_pciids.h | 13 +++++++++++++ + 1 file changed, 13 insertions(+) + +https://cgit.freedesktop.org/xorg/app/intel-gpu-tools/patch/?id=0896b88d1b80244832f9eacbca993c5121315d05 + +diff --git a/lib/i915_pciids.h b/lib/i915_pciids.h +index 0b2ba46..bab70ff 100644 +--- a/lib/i915_pciids.h ++++ b/lib/i915_pciids.h +@@ -349,6 +349,7 @@ + #define INTEL_KBL_GT2_IDS(info) \ + INTEL_VGA_DEVICE(0x5916, info), /* ULT GT2 */ \ + INTEL_VGA_DEVICE(0x5917, info), /* Mobile GT2 */ \ ++ INTEL_VGA_DEVICE(0x591C, info), /* ULX GT2 */ \ + INTEL_VGA_DEVICE(0x5921, info), /* ULT GT2F */ \ + INTEL_VGA_DEVICE(0x591E, info), /* ULX GT2 */ \ + INTEL_VGA_DEVICE(0x5912, info), /* DT GT2 */ \ +@@ -431,4 +432,16 @@ + INTEL_VGA_DEVICE(0x5A44, info), \ + INTEL_VGA_DEVICE(0x5A4C, info) + ++/* ICL */ ++#define INTEL_ICL_11_IDS(info) \ ++ INTEL_VGA_DEVICE(0x8A50, info), \ ++ INTEL_VGA_DEVICE(0x8A51, info), \ ++ INTEL_VGA_DEVICE(0x8A5C, info), \ ++ INTEL_VGA_DEVICE(0x8A5D, info), \ ++ INTEL_VGA_DEVICE(0x8A52, info), \ ++ INTEL_VGA_DEVICE(0x8A5A, info), \ ++ INTEL_VGA_DEVICE(0x8A5B, info), \ ++ INTEL_VGA_DEVICE(0x8A71, info), \ ++ INTEL_VGA_DEVICE(0x8A70, info) ++ + #endif /* _I915_PCIIDS_H */ +-- +cgit v1.1 + diff --git a/x11-apps/igt-gpu-tools/igt-gpu-tools-1.22.ebuild b/x11-apps/igt-gpu-tools/igt-gpu-tools-1.22.ebuild new file mode 100644 index 0000000..46589b7 --- /dev/null +++ b/x11-apps/igt-gpu-tools/igt-gpu-tools-1.22.ebuild @@ -0,0 +1,90 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="5" + +XORG_EAUTORECONF="yes" + +inherit xorg-2 + +DESCRIPTION="Intel GPU userland tools" + +HOMEPAGE="https://01.org/linuxgraphics https://cgit.freedesktop.org/xorg/app/intel-gpu-tools/" +SRC_URI="https://www.x.org/releases/individual/app/intel-gpu-tools-${PV}.tar.xz" +KEYWORDS="amd64 x86" +LICENSE="MIT" +SLOT="0" +IUSE="alsa chamelium doc glib gsl sound test-programs valgrind video_cards_amdgpu video_cards_intel video_cards_nouveau X xrandr xv" +REQUIRED_USE=" + test-programs? ( sound? ( alsa gsl ) ) + chamelium? ( glib gsl )" +RESTRICT="test" + +X86_RDEPEND=" + xv? ( + x11-libs/libX11 + x11-libs/libXext + x11-libs/libXv + )" +X86_DEPEND="x11-base/xorg-proto + >=dev-util/peg-0.1.18" +RDEPEND="sys-apps/kmod:= + sys-libs/libunwind:= + sys-process/procps:= + virtual/libudev:= + >=x11-libs/cairo-1.12.0[X?] + >=x11-libs/libdrm-2.4.82[video_cards_amdgpu?,video_cards_intel?,video_cards_nouveau?] + >=x11-libs/libpciaccess-0.10 + alsa? ( media-libs/alsa-lib:= ) + chamelium? ( dev-libs/xmlrpc-c ) + glib? ( dev-libs/glib:2 ) + gsl? ( sci-libs/gsl ) + valgrind? ( dev-util/valgrind ) + video_cards_intel? ( sys-libs/zlib:= ) + xrandr? ( >=x11-libs/libXrandr-1.3 ) + amd64? ( ${X86_RDEPEND} ) + x86? ( ${X86_RDEPEND} )" +DEPEND="${RDEPEND} + amd64? ( ${X86_DEPEND} ) + x86? ( ${X86_DEPEND} ) + >=dev-util/gtk-doc-1.25-r1" + +PATCHES=( + "${FILESDIR}"/${P}-KBL-ICL-PCI-IDs.patch +) + +src_configure() { + XORG_CONFIGURE_OPTIONS=( + $(usex test-programs $(use_enable sound audio) --disable-audio) + $(use_enable chamelium) + $(use_enable doc gtk-doc) + $(use_enable test-programs tests) + $(use_enable video_cards_amdgpu amdgpu) + $(use_enable video_cards_intel intel) + $(use_enable video_cards_nouveau nouveau) + ) + xorg-2_src_configure +} + +src_install() { + xorg-2_src_install + if use test-programs; then + local testprogram + pushd "${AUTOTOOLS_BUILD_DIR}"/tests >/dev/null || die + for testprogram in $(/dev/null + fi +} + +pkg_postinst() { + xorg-2_pkg_postinst + if use test-programs; then + elog "Test programs for DRM driver development were installed. These are not" + elog "designed to run outside their source tree, so may or may not work as" + elog "intended." + fi +} diff --git a/x11-apps/igt-gpu-tools/igt-gpu-tools-1.23.ebuild b/x11-apps/igt-gpu-tools/igt-gpu-tools-1.23.ebuild new file mode 100644 index 0000000..65bdd0b --- /dev/null +++ b/x11-apps/igt-gpu-tools/igt-gpu-tools-1.23.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2018 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +EGIT_REPO_URI="https://gitlab.freedesktop.org/drm/${PN}.git" +if [[ ${PV} = *9999* ]]; then + GIT_ECLASS="git-r3" +fi + +inherit ${GIT_ECLASS} meson + +DESCRIPTION="Intel GPU userland tools" + +HOMEPAGE="https://01.org/linuxgraphics https://gitlab.freedesktop.org/drm/igt-gpu-tools" +if [[ ${PV} = *9999* ]]; then + SRC_URI="" +else + KEYWORDS="~amd64 ~x86" + SRC_URI="https://www.x.org/releases/individual/app/${P}.tar.xz" +fi +LICENSE="MIT" +SLOT="0" +IUSE="alsa chamelium doc glib gsl sound valgrind video_cards_amdgpu video_cards_intel video_cards_nouveau X xrandr xv" +REQUIRED_USE="chamelium? ( glib gsl )" +RESTRICT="test" + +X86_RDEPEND=" + xv? ( + x11-libs/libX11 + x11-libs/libXext + x11-libs/libXv + )" +X86_DEPEND="x11-base/xorg-proto + >=dev-util/peg-0.1.18" +RDEPEND="sys-apps/kmod:= + sys-libs/libunwind:= + sys-process/procps:= + virtual/libudev:= + >=x11-libs/cairo-1.12.0[X?] + >=x11-libs/libdrm-2.4.82[video_cards_amdgpu?,video_cards_intel?,video_cards_nouveau?] + >=x11-libs/libpciaccess-0.10 + alsa? ( media-libs/alsa-lib:= ) + chamelium? ( dev-libs/xmlrpc-c ) + glib? ( dev-libs/glib:2 ) + gsl? ( sci-libs/gsl ) + valgrind? ( dev-util/valgrind ) + video_cards_intel? ( sys-libs/zlib:= ) + xrandr? ( >=x11-libs/libXrandr-1.3 ) + amd64? ( ${X86_RDEPEND} ) + x86? ( ${X86_RDEPEND} )" +DEPEND="${RDEPEND} + amd64? ( ${X86_DEPEND} ) + x86? ( ${X86_DEPEND} ) + doc? ( >=dev-util/gtk-doc-1.25-r1 )" diff --git a/x11-apps/igt-gpu-tools/metadata.xml b/x11-apps/igt-gpu-tools/metadata.xml new file mode 100644 index 0000000..df5e452 --- /dev/null +++ b/x11-apps/igt-gpu-tools/metadata.xml @@ -0,0 +1,14 @@ + + + + + x11@gentoo.org + X11 + + + Enables support for building Chamelium tests + Support reading config files via glib helpers + Support valgrind annotations + Enable support for the X RandR extension + +