Hi,
Below is the update to latest vulkan sdk versions 1.2.141.0 from end of
May. Pass portcheck and make port-lib-depends-check. The 'make test'
for glslang still shows the same error as previously [1].
vkcube, vkcubepp, and vkquake run without problems on this Intel
Skylake machine. vulkaninfo does it's job, but complains about not
being able to identify the executable, probably because of the stub
needed for loader_platform_executable_path().
This is largely base on jsg@'s diff from April [2], but updated for the
latest SDK. Also some help from brynet@ with vulkan-loader as detailed
below.
I'm aware of the issue with aarch64 build failures and the workaround
that led to problems with i386 [3] and would like to tackle this
separately after this update.
A few bulletpoints to highlight about the update:
- add COMPILER to spirv-headers as it uses C++ (seen in my build log)
- NO_BUILD=Yes for vulkan-headers, as there is nothing to build
- libvulkan now uses alloca(3) (unfortunately). The define to
__builtin_alloca doesn't get picked up from stdlib.h, therefore added
the line to vk_loader_platform.h. Discussed this with brynet@; a
replacement with malloc is likely non-trivial. Maybe in the future
this can be revisited.
- loader_platform_executable_path() is meant to return the path of the
running executable, on Linux done via procfs. Just stubbed it to
return NULL as we don't have that functionality. If other ports
depend on this, it will likely need to be hardcoded in the respective
ports (none known so far).
- update MODPY_VERSION for vulkan-tools to 3.8
(MODPY_DEFAULT_VERSION_3); builds and runs fine here.
Testing welcome, as this is a more complex update. vulkan should run on
any amdgpu or newer Intel (>= Braswell) GPU.
Other applications that can use vulkan other than the ones tested so
far are emulators/ppsspp and emulators/dolphin.
ok?
[1] https://marc.info/?l=openbsd-ports=156090342730876=mbox
[2] https://marc.info/?l=openbsd-ports=158816323805091=mbox
[3] https://marc.info/?l=openbsd-ports-cvs=158837314306160=mbox
Index: glslang/Makefile
===
RCS file: /cvs/ports/graphics/glslang/Makefile,v
retrieving revision 1.3
diff -u -p -r1.3 Makefile
--- glslang/Makefile27 Jul 2019 15:47:35 - 1.3
+++ glslang/Makefile6 Jul 2020 03:20:53 -
@@ -2,7 +2,7 @@
COMMENT = reference front-end for GLSL and ESSL
-GH_TAGNAME = 7.11.3214
+GH_TAGNAME = 8.13.3743
GH_ACCOUNT = KhronosGroup
GH_PROJECT = glslang
Index: glslang/distinfo
===
RCS file: /cvs/ports/graphics/glslang/distinfo,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 distinfo
--- glslang/distinfo22 Jun 2019 15:19:31 - 1.1.1.1
+++ glslang/distinfo6 Jul 2020 03:20:53 -
@@ -1,2 +1,2 @@
-SHA256 (glslang-7.11.3214.tar.gz) =
swtGaHNDKNJW4wyUA35g03dbEFV0PATY/XCfKWDzAqk=
-SIZE (glslang-7.11.3214.tar.gz) = 2841979
+SHA256 (glslang-8.13.3743.tar.gz) =
Y56+xW8adALy+glEaaXd6h7O7Pry6e/jYTdqD3On7i8=
+SIZE (glslang-8.13.3743.tar.gz) = 3183453
Index: glslang/patches/patch-Test_runtests
===
RCS file: /cvs/ports/graphics/glslang/patches/patch-Test_runtests,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 patch-Test_runtests
--- glslang/patches/patch-Test_runtests 22 Jun 2019 15:19:31 - 1.1.1.1
+++ glslang/patches/patch-Test_runtests 6 Jul 2020 03:20:53 -
@@ -1,16 +1,16 @@
-$OpenBSD: patch-Test_runtests,v 1.1.1.1 2019/06/22 15:19:31 thfr Exp $
+$OpenBSD$
Index: Test/runtests
--- Test/runtests.orig
+++ Test/runtests
-@@ -2,8 +2,8 @@
+@@ -7,8 +7,8 @@
- TARGETDIR=localResults
+ TARGETDIR=${1:-localResults}
BASEDIR=baseResults
--EXE=../build/install/bin/glslangValidator
--REMAPEXE=../build/install/bin/spirv-remap
-+EXE=${WRKBUILD}/StandAlone/glslangValidator
-+REMAPEXE=${WRKBUILD}/StandAlone/spirv-remap
+-EXE=${2:-../build/install/bin/glslangValidator}
+-REMAPEXE=${3:-../build/install/bin/spirv-remap}
++EXE=${2:-${WRKBUILD}/StandAlone/glslangValidator}
++REMAPEXE=${3:-${WRKBUILD}/StandAlone/spirv-remap}
HASERROR=0
- mkdir -p localResults
+ mkdir -p $TARGETDIR
Index: glslang/pkg/PLIST
===
RCS file: /cvs/ports/graphics/glslang/pkg/PLIST,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 PLIST
--- glslang/pkg/PLIST 22 Jun 2019 15:19:31 - 1.1.1.1
+++ glslang/pkg/PLIST 6 Jul 2020 03:20:53 -
@@ -9,6 +9,7 @@ include/SPIRV/GLSL.ext.NV.h
include/SPIRV/GLSL.std.450.h
include/SPIRV/GlslangToSpv.h
include/SPIRV/Logger.h
+include/SPIRV/NonSemanticDebugPrintf.h
include/SPIRV/SPVRemapper.h
include/SPIRV/SpvBuilder.h
include/SPIRV/SpvTools.h
@@ -30,6 +31,8 @@ include/glslang/Include/ResourceLimits.h
include/glslang/Include/ShHandle.h
include/glslang/Include/Types.h
include/glslang/Include/arrays.h