mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-25 07:08:13 -07:00
dev-debug/gfxreconstruct: add 1.4.304.0
Signed-off-by: Nick Sarnie <sarnex@gentoo.org>
This commit is contained in:
@@ -1,2 +1,4 @@
|
||||
DIST SPIRV-Reflect-1.3.296.0.tar.gz 306294 BLAKE2B d87677fc67dc55cf10e55f4286300fea5664e870c4d3365246f407514ec682087399c9a06aaa81a88a2f57f6b198de7265ee17dd88215e16e71bb90d32468a4e SHA512 770d46172fed140816dcecc3155bce62ce319f5cbe99bb58e81994e07aed14ebc8f65675c6e47dde2148e2706603ba470f364ab41bcbfbc05c69e25be7c5a898
|
||||
DIST SPIRV-Reflect-1.4.304.0.tar.gz 307488 BLAKE2B f2268287c6ca70dc8e51898b541bea51dad406715de0e3c8c9467c964f48085332d274ce3086824a6c13369f37c79467930d425ae958eecbaa1fb5cf1514243a SHA512 19eade2f661e3bd58665167265dc79e3c94690910d28089ac1d1acfb1771e010a75a23b85555dd494020d0e9584d68f2a97f33ab2f8271f90ea2295bcc484150
|
||||
DIST gfxreconstruct-1.3.296.0.tar.gz 41585326 BLAKE2B 0b89b4e3be47adbdda45a0e7f14a2176d1ba79980f0c0998c318d1f62c1d4792ddf0db64c125016d531163d8af08d470b9973fc7477ed2a3c05639fe1f1ead2c SHA512 911d2914bbbed24451c1950ac49213cb056db663a6d00557135aec1301ee179ff9c7883b6074db8227cd59100949656e15e53f6b8513cb5d25af4a1fa2ea1f99
|
||||
DIST gfxreconstruct-1.4.304.0.tar.gz 40390002 BLAKE2B 5e99d6685648617c8ef35a0f9199f5ef75aa8b670e0a4e2a75c8dae68620ab39ca7fcc9c3804b1f30f196d71b1b4aa061c9dc0532004dfec0598c25206868d41 SHA512 5a08e8565218119c980f6511dc9dc26660f5eb86307d47feeb220efb9ec817827b02d2da10da68b5beaf71f7ce2d56b381201d98be220229fa6a22a2b6560441
|
||||
|
||||
33
dev-debug/gfxreconstruct/files/1.4.304.0-fix-build.patch
Normal file
33
dev-debug/gfxreconstruct/files/1.4.304.0-fix-build.patch
Normal file
@@ -0,0 +1,33 @@
|
||||
From 60d2ac8fe2a2cbabbb53bda679e3a5a0fa3363a3 Mon Sep 17 00:00:00 2001
|
||||
From: Nick Sarnie <sarnex@gentoo.org>
|
||||
Date: Sun, 19 Jan 2025 04:17:16 +0900
|
||||
Subject: [PATCH] Fix build with spirv-headers-1.4.304
|
||||
|
||||
---
|
||||
framework/util/spirv_helper.h | 8 ++++----
|
||||
1 file changed, 4 insertions(+), 4 deletions(-)
|
||||
|
||||
diff --git a/framework/util/spirv_helper.h b/framework/util/spirv_helper.h
|
||||
index 062fbbc5..e31ab7c4 100644
|
||||
--- a/framework/util/spirv_helper.h
|
||||
+++ b/framework/util/spirv_helper.h
|
||||
@@ -1402,12 +1402,12 @@ const char* string_SpvOpcode(uint32_t opcode)
|
||||
return "OpFragmentFetchAMD";
|
||||
case spv::OpReadClockKHR:
|
||||
return "OpReadClockKHR";
|
||||
- case spv::OpFinalizeNodePayloadsAMDX:
|
||||
- return "OpFinalizeNodePayloadsAMDX";
|
||||
+ case spv::OpEnqueueNodePayloadsAMDX:
|
||||
+ return "OpEnqueueNodePayloadsAMDX";
|
||||
case spv::OpFinishWritingNodePayloadAMDX:
|
||||
return "OpFinishWritingNodePayloadAMDX";
|
||||
- case spv::OpInitializeNodePayloadsAMDX:
|
||||
- return "OpInitializeNodePayloadsAMDX";
|
||||
+ case spv::OpAllocateNodePayloadsAMDX:
|
||||
+ return "OpAllocateNodePayloadsAMDX";
|
||||
case spv::OpGroupNonUniformQuadAllKHR:
|
||||
return "OpGroupNonUniformQuadAllKHR";
|
||||
case spv::OpGroupNonUniformQuadAnyKHR:
|
||||
--
|
||||
2.45.2
|
||||
|
||||
76
dev-debug/gfxreconstruct/gfxreconstruct-1.4.304.0.ebuild
Normal file
76
dev-debug/gfxreconstruct/gfxreconstruct-1.4.304.0.ebuild
Normal file
@@ -0,0 +1,76 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{10..13} )
|
||||
inherit cmake
|
||||
|
||||
if [[ ${PV} == 9999* ]]; then
|
||||
EGIT_REPO_URI="https://github.com/LunarG/gfxreconstruct.git"
|
||||
EGIT_SUBMODULES=( external/{Vulkan-Headers,SPIRV-Headers,SPIRV-Reflect} )
|
||||
inherit git-r3
|
||||
else
|
||||
SRC_URI="
|
||||
https://github.com/LunarG/${PN}/archive/vulkan-sdk-${PV}.tar.gz -> ${P}.tar.gz
|
||||
https://github.com/KhronosGroup/SPIRV-Reflect/archive/vulkan-sdk-${PV}.tar.gz -> SPIRV-Reflect-${PV}.tar.gz
|
||||
"
|
||||
KEYWORDS="~amd64"
|
||||
S="${WORKDIR}"/${PN}-vulkan-sdk-${PV}
|
||||
fi
|
||||
|
||||
DESCRIPTION="Graphics API Capture and Replay Tools"
|
||||
HOMEPAGE="https://github.com/LunarG/gfxreconstruct"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
IUSE="wayland X"
|
||||
|
||||
RDEPEND="
|
||||
app-arch/lz4:=
|
||||
app-arch/zstd:=
|
||||
sys-libs/zlib:=
|
||||
|
||||
media-libs/vulkan-loader[wayland?,X?]
|
||||
wayland? ( dev-libs/wayland )
|
||||
X? (
|
||||
x11-libs/libX11
|
||||
x11-libs/libxcb
|
||||
x11-libs/xcb-util-keysyms
|
||||
)
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
X? ( x11-libs/libXrandr )
|
||||
"
|
||||
if [[ ${PV} != 9999* ]]; then
|
||||
DEPEND+="
|
||||
~dev-util/spirv-headers-${PV}
|
||||
~dev-util/vulkan-headers-${PV}
|
||||
"
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/1.3.296.0-use-system-vulkan.patch
|
||||
"${FILESDIR}"/1.4.304.0-fix-build.patch
|
||||
)
|
||||
fi
|
||||
|
||||
src_unpack() {
|
||||
if [[ ${PV} == 9999* ]]; then
|
||||
git-r3_src_unpack
|
||||
else
|
||||
default
|
||||
rmdir "${S}"/external/SPIRV-Reflect || die
|
||||
mv "${WORKDIR}"/SPIRV-Reflect-vulkan-sdk-${PV} "${S}"/external/SPIRV-Reflect || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DCMAKE_SKIP_RPATH=ON
|
||||
-DBUILD_WERROR=OFF
|
||||
-DBUILD_WSI_DISPLAY_SUPPORT=ON
|
||||
-DBUILD_WSI_WAYLAND_SUPPORT=$(usex wayland)
|
||||
-DBUILD_WSI_XCB_SUPPORT=$(usex X)
|
||||
-DBUILD_WSI_XLIB_SUPPORT=$(usex X)
|
||||
)
|
||||
cmake_src_configure
|
||||
}
|
||||
@@ -49,6 +49,7 @@ if [[ ${PV} != 9999* ]]; then
|
||||
"
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/1.3.296.0-use-system-vulkan.patch
|
||||
"${FILESDIR}"/1.4.304.0-fix-build.patch
|
||||
)
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user