From 4b79f1f039ebc86a102fd40adb13184f6a563201 Mon Sep 17 00:00:00 2001 From: Jan Beich Date: Sun, 27 Dec 2020 12:22:44 +0000 Subject: [PATCH] benchmarks/vkmark: add new port vkmark is an extensible Vulkan benchmarking suite with targeted, configurable scenes. https://github.com/vkmark/vkmark --- benchmarks/Makefile | 1 + benchmarks/vkmark/Makefile | 49 +++++++++++++++++++++++++++++++++++++ benchmarks/vkmark/distinfo | 3 +++ benchmarks/vkmark/pkg-descr | 4 +++ benchmarks/vkmark/pkg-plist | 47 +++++++++++++++++++++++++++++++++++ 5 files changed, 104 insertions(+) create mode 100644 benchmarks/vkmark/Makefile create mode 100644 benchmarks/vkmark/distinfo create mode 100644 benchmarks/vkmark/pkg-descr create mode 100644 benchmarks/vkmark/pkg-plist diff --git a/benchmarks/Makefile b/benchmarks/Makefile index d3064e816fe0..645d42b0ec2c 100644 --- a/benchmarks/Makefile +++ b/benchmarks/Makefile @@ -102,6 +102,7 @@ SUBDIR += unixbench SUBDIR += uperf SUBDIR += vegeta + SUBDIR += vkmark SUBDIR += webbench SUBDIR += wrk diff --git a/benchmarks/vkmark/Makefile b/benchmarks/vkmark/Makefile new file mode 100644 index 000000000000..a148b4fb05a7 --- /dev/null +++ b/benchmarks/vkmark/Makefile @@ -0,0 +1,49 @@ +# $FreeBSD$ + +PORTNAME= vkmark +DISTVERSION= 2017.08-21 +DISTVERSIONSUFFIX= -ge8c0720 +CATEGORIES= benchmarks + +MAINTAINER= jbeich@FreeBSD.org +COMMENT= Vulkan benchmark + +LICENSE= LGPL21+ +LICENSE_FILE= ${WRKSRC}/COPYING-LGPL2.1 + +BUILD_DEPENDS= vulkan-headers>0:graphics/vulkan-headers \ + glm>0:math/glm +LIB_DEPENDS= libvulkan.so:graphics/vulkan-loader \ + libassimp.so:multimedia/assimp + +USES= compiler:c++14-lang localbase meson pkgconfig +USE_GITHUB= yes + +OPTIONS_DEFINE= DRM WAYLAND X11 +OPTIONS_DEFAULT=DRM WAYLAND X11 +OPTIONS_EXCLUDE=DRM # not supported yet +OPTIONS_SUB= yes + +DRM_DESC= Windowless KMS/DRM support via GBM +DRM_LIB_DEPENDS= libdrm.so:graphics/libdrm +DRM_USES= gl +DRM_USE= GL=gbm +DRM_MESON_TRUE= kms + +WAYLAND_BUILD_DEPENDS= evdev-proto>0:devel/evdev-proto \ + wayland-protocols>=1.12:graphics/wayland-protocols +WAYLAND_LIB_DEPENDS= libwayland-client.so:graphics/wayland +WAYLAND_MESON_TRUE= wayland + +X11_LIB_DEPENDS= libxcb-icccm.so:x11/xcb-util-wm +X11_USES= xorg +X11_USE= XORG=xcb +X11_MESON_TRUE= xcb + +post-patch: +# Extract (snapshot) version from the port instead of meson.build + @${REINPLACE_CMD} -i .nogit -e 's/git.found()/false/' \ + -e '/project_version/s/@0@/${DISTVERSIONFULL}/' \ + ${WRKSRC}/meson.build + +.include diff --git a/benchmarks/vkmark/distinfo b/benchmarks/vkmark/distinfo new file mode 100644 index 000000000000..6c25dca45a50 --- /dev/null +++ b/benchmarks/vkmark/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1588522805 +SHA256 (vkmark-vkmark-2017.08-21-ge8c0720_GH0.tar.gz) = e6d4d76e113f604d7bb07c142cfc705d4f9f9157482cac075c55da08befd5016 +SIZE (vkmark-vkmark-2017.08-21-ge8c0720_GH0.tar.gz) = 718577 diff --git a/benchmarks/vkmark/pkg-descr b/benchmarks/vkmark/pkg-descr new file mode 100644 index 000000000000..d5c5ea3ce502 --- /dev/null +++ b/benchmarks/vkmark/pkg-descr @@ -0,0 +1,4 @@ +vkmark is an extensible Vulkan benchmarking suite with targeted, +configurable scenes. + +WWW: https://github.com/vkmark/vkmark diff --git a/benchmarks/vkmark/pkg-plist b/benchmarks/vkmark/pkg-plist new file mode 100644 index 000000000000..2196ebf8b0e4 --- /dev/null +++ b/benchmarks/vkmark/pkg-plist @@ -0,0 +1,47 @@ +bin/vkmark +%%DRM%%lib/vkmark/kms.so +%%WAYLAND%%lib/vkmark/wayland.so +%%X11%%lib/vkmark/xcb.so +man/man1/vkmark.1.gz +%%DATADIR%%/models/cat.3ds +%%DATADIR%%/models/cube.3ds +%%DATADIR%%/models/horse.3ds +%%DATADIR%%/models/kmscube.ply +%%DATADIR%%/shaders/desktop.frag +%%DATADIR%%/shaders/desktop.frag.spv +%%DATADIR%%/shaders/desktop.vert +%%DATADIR%%/shaders/desktop.vert.spv +%%DATADIR%%/shaders/effect2d-blur.frag +%%DATADIR%%/shaders/effect2d-blur.frag.spv +%%DATADIR%%/shaders/effect2d-edge.frag +%%DATADIR%%/shaders/effect2d-edge.frag.spv +%%DATADIR%%/shaders/effect2d-none.frag +%%DATADIR%%/shaders/effect2d-none.frag.spv +%%DATADIR%%/shaders/effect2d.vert +%%DATADIR%%/shaders/effect2d.vert.spv +%%DATADIR%%/shaders/light-advanced.frag +%%DATADIR%%/shaders/light-advanced.frag.spv +%%DATADIR%%/shaders/light-advanced.vert +%%DATADIR%%/shaders/light-advanced.vert.spv +%%DATADIR%%/shaders/light-basic-tex.frag +%%DATADIR%%/shaders/light-basic-tex.frag.spv +%%DATADIR%%/shaders/light-basic-tex.vert +%%DATADIR%%/shaders/light-basic-tex.vert.spv +%%DATADIR%%/shaders/light-basic.frag +%%DATADIR%%/shaders/light-basic.frag.spv +%%DATADIR%%/shaders/light-basic.vert +%%DATADIR%%/shaders/light-basic.vert.spv +%%DATADIR%%/shaders/light-cel.frag +%%DATADIR%%/shaders/light-cel.frag.spv +%%DATADIR%%/shaders/light-phong.frag +%%DATADIR%%/shaders/light-phong.frag.spv +%%DATADIR%%/shaders/light-phong.vert +%%DATADIR%%/shaders/light-phong.vert.spv +%%DATADIR%%/shaders/vkcube.frag +%%DATADIR%%/shaders/vkcube.frag.spv +%%DATADIR%%/shaders/vkcube.vert +%%DATADIR%%/shaders/vkcube.vert.spv +%%DATADIR%%/textures/crate-base.jpg +%%DATADIR%%/textures/desktop-background-1920x1080.png +%%DATADIR%%/textures/desktop-background-800x600.png +%%DATADIR%%/textures/desktop-window.png