From ae75c780504b5a3604424f647a43c20f76dd1360f8666c82e1e89341f5f558c1 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Tue, 8 Oct 2024 17:46:45 +0000 Subject: [PATCH] [info=a245914cdeeb263497a5b20a65a2444383218bb8aa126dc37023b75b000b20b5] OBS-URL: https://build.opensuse.org/package/show/X11:Wayland/spirv-cross?expand=0&rev=37 --- .gitattributes | 23 ++++++ .gitignore | 1 + _scmsync.obsinfo | 4 + build.specials.obscpio | 3 + spirv-cross.changes | 141 ++++++++++++++++++++++++++++++++++++ spirv-cross.spec | 101 ++++++++++++++++++++++++++ vulkan-sdk-1.3.280.0.tar.gz | 3 + 7 files changed, 276 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 _scmsync.obsinfo create mode 100644 build.specials.obscpio create mode 100644 spirv-cross.changes create mode 100644 spirv-cross.spec create mode 100644 vulkan-sdk-1.3.280.0.tar.gz diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/_scmsync.obsinfo b/_scmsync.obsinfo new file mode 100644 index 0000000..6dc3b52 --- /dev/null +++ b/_scmsync.obsinfo @@ -0,0 +1,4 @@ +mtime: 1711477548 +commit: a245914cdeeb263497a5b20a65a2444383218bb8aa126dc37023b75b000b20b5 +url: https://src.opensuse.org/jengelh/spirv-cross +revision: master diff --git a/build.specials.obscpio b/build.specials.obscpio new file mode 100644 index 0000000..7169f4f --- /dev/null +++ b/build.specials.obscpio @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:184d5e12802918b3a04b7a3c3dd942f2f57ff2d7c7c97fa370e70bb18ca6f3c3 +size 256 diff --git a/spirv-cross.changes b/spirv-cross.changes new file mode 100644 index 0000000..96ca0cc --- /dev/null +++ b/spirv-cross.changes @@ -0,0 +1,141 @@ +------------------------------------------------------------------- +Thu Mar 21 09:56:29 UTC 2024 - Jan Engelhardt + +- Update to release SDK-1.3.280.0 + * Add support for the SPV_QCOM_image_processing, + SPV_EXT_integer_dot_product extensions + * MSL: Support variable sized descriptor array in argument buffer + * MSL: Implement spvDescriptorArray path for SSBO/UBO + +------------------------------------------------------------------- +Tue Jan 30 08:57:10 UTC 2024 - Jan Engelhardt + +- Update to release SDK-1.3.275.0 + * MSL: Support std140 half matrices and arrays. + * HLSL: Fix issue with vec4 straddle rules in substructs. + +------------------------------------------------------------------- +Fri Oct 27 04:14:52 UTC 2023 - Jan Engelhardt + +- Update to release SDK-1.3.268.0 + * GLSL: Implement 64-bit image support. + * GLSL: Handle empty block declarations. + +------------------------------------------------------------------- +Fri Aug 25 08:56:10 UTC 2023 - Jan Engelhardt + +- Update to release SDK-1.3.261.0 + * GLSL: Support KHR_subgroup_arithmetic IAdd/FAdd/IMul/FMul + * HLSL: support Texture2D::GatherCmp function + * HLSL: Add support to preserve (RW)StructuredBuffer resources + * HLSL: Add CLI option for --hlsl-preserve-structured-buffers + * MSL: Consider bool/short remapping when dealing with composites + * MSL: Handle more complex array copy scenarios with bool <-> short + * MSL: Support `SPV_KHR_shader_ballot` and `SPV_KHR_subgroup_vote` + +------------------------------------------------------------------- +Wed Mar 29 19:39:16 UTC 2023 - Jan Engelhardt + +- Update to release SDK-1.3.243.0 + * Add C API option for enabling row-major workaround. + * Add tests for loops compiled with debug semantics. + * GLSL/HLSL: Add legacy handling for int vertex attributes + * GLSL: Support GL_NV_shader_noperspective_interpolation in GLES + * GLSL: Multiplying matrix with scalar shouldn't force transpose + * GLSL: Add various additional extension checks. + * GLSL: Allow sample inputs in desktop < 400 with + GL_ARB_sample_shading + * GLSL: Add support for modf, isnan and isinf in legacy GLSL + * GLSL/HLSL: Add emulated fallbacks for + sinh/cosh/tanh/asinh/acosh/atanh + * GLSL: Legacy matrix inverse/determinant polyfills, + outerProduct() + +------------------------------------------------------------------- +Tue Jan 3 18:34:50 UTC 2023 - Jan Engelhardt + +- Update to release 1.3.236.0 + * MSL: Support "raw" buffer input in tessellation evaluation + shaders. + * MSL: Handle partial access chains with array-of-UBO/SSBO. + * HLSL: Implement VK_EXT_mesh_shader + +------------------------------------------------------------------- +Mon Oct 24 20:13:48 UTC 2022 - Jan Engelhardt + +- Update to release 1.3.231.0 + * GLSL: disable row major load around on GLES. + * GLSL: added an option to disable row-major-load workaround. + * GLSL: Implement GL_EXT_mesh_shader. + * GLSL: Implement task shaders. + * GLSL: Account for ES sampler1D to sampler2D promotion in + textureSize. + * MSL: Report unsupported 64-bit atomics. + * Add reflection support for shader record buffers. + +------------------------------------------------------------------- +Wed Jun 15 17:05:14 UTC 2022 - Jan Engelhardt + +- Update to release 1.3.216.0 + * GLSL, HLSL: Support logical subgroup ops. + * Support reflecting builtins. + * GLSL: Support GL_EXT_shader_image_load_formatted. + * GLSL: Implement gl_FragFullyCoveredNV and control flow hints. + * Handle SPIR-V 1.4 selection constructs. + * GLSL: Support pervertexNV in NV barycentric extension. + * GLSL: Implement GL_EXT_ray_query. + * MSL: Support row-major transpose when storing matrix from + constant RHS matrix. + * Add support for additional ops in OpSpecConstantOp. + * Add 64 bit support for OpSwitch + * HLSL: Add support for gl_HelperInvocation + * VK_KHR_ray_query implementation +- Use an SRPM-based name for the -devel subpackage. + +------------------------------------------------------------------- +Fri Jan 15 13:10:46 UTC 2021 - Jan Engelhardt + +- Update to release 2020-01-25 + * GLSL: Support both SPV_KHR_ray_tracing and NV_ray_tracing. + * Support pull-model interpolation on MSL 2.3+. + +------------------------------------------------------------------- +Tue Jul 7 22:19:53 UTC 2020 - Mia Herkt + +- Update to 2020-06-29 (no changelog) + +------------------------------------------------------------------- +Thu May 21 12:40:41 UTC 2020 - Mia Herkt + +- Update to 2020-05-19 (no changelog) + +------------------------------------------------------------------- +Wed Apr 8 11:02:21 UTC 2020 - Jan Engelhardt + +- Update to release 2020-04-03 + * MSL: Reintroduce workarounds for arrays not being value + types. + * Expose query if a resource was used as a comparison/depth + resource. + +------------------------------------------------------------------- +Sat Jan 18 19:51:33 UTC 2020 - Martin Herkt <9+suse@cirno.systems> + +- Update to 2020-01-16 (no changelog) + +------------------------------------------------------------------- +Sat Aug 24 06:15:26 UTC 2019 - Jan Engelhardt + +- Trim description for non-"main" (by importance) subpackages. + Compact main description. + +------------------------------------------------------------------- +Sun Aug 11 07:47:46 UTC 2019 - Martin Herkt <9+suse@cirno.systems> + +- Update to 2019-07-26 + * No upstream changelog + +------------------------------------------------------------------- +Fri Jun 14 00:19:53 UTC 2019 - Martin Herkt <9+suse@cirno.systems> + +- Init, 2019-05-20 diff --git a/spirv-cross.spec b/spirv-cross.spec new file mode 100644 index 0000000..9233655 --- /dev/null +++ b/spirv-cross.spec @@ -0,0 +1,101 @@ +# +# spec file for package spirv-cross +# +# Copyright (c) 2024 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%define lname libspirv-cross-c-shared0 +%define __builder ninja +Name: spirv-cross +Version: 1.3.280.0 +Release: 0 +Summary: Tool and library for SPIR-V reflection and disassembly +License: Apache-2.0 OR MIT +Group: Development/Libraries/C and C++ +URL: https://github.com/KhronosGroup/SPIRV-Cross +Source0: https://github.com/KhronosGroup/SPIRV-Cross/archive/vulkan-sdk-%version.tar.gz +BuildRequires: c++_compiler +BuildRequires: cmake >= 3 +BuildRequires: ninja +BuildRequires: pkg-config + +%description +SPIRV-Cross is a tool and library designed for parsing and +converting SPIR-V to other shader languages. + +Features: + +* Conversion of SPIR-V to GLSL, MSL or HLSL +* Conversion of SPIR-V to a JSON reflection format +* Reflection API to simplify the creation of Vulkan pipeline layouts +* Reflection API to modify and tweak OpDecorations +* Support for "all" of vertex, fragment, tessellation, geometry and + compute shaders. + +%package -n %lname +Summary: Library for SPIR-V reflection and disassembly +Group: System/Libraries + +%description -n %lname +SPIRV-Cross is a tool and library designed for parsing and +converting SPIR-V to other shader languages. + +%package devel +Summary: Development headers for the SPIRV-Cross library +Group: Development/Libraries/C and C++ +Requires: %lname = %version-%release +Obsoletes: libspirv-cross-c-shared-devel < %version-%release +Provides: libspirv-cross-c-shared-devel = %version-%release + +%description devel +SPIRV-Cross is a tool and library designed for parsing and +converting SPIR-V to other shader languages. + +%prep +%autosetup -p1 -n SPIRV-Cross-vulkan-sdk-%version +sed -i 's,$CMAKE_INSTALL_PREFIX/lib,%_libdir,;s,/share/pkgconfig,/%_lib/pkgconfig,;s,DESTINATION lib,DESTINATION %_lib,g' CMakeLists.txt + +%build +%cmake \ + -DSPIRV_CROSS_SHARED=ON \ + -DSPIRV_CROSS_CLI=ON +%cmake_build + +%install +%cmake_install +rm -fv %buildroot/%_libdir/*.a +# When static/shared library names aren't thought through... +for i in c core cpp glsl hlsl msl reflect util; do + ln -s "libspirv-cross-c-shared.so" "%buildroot/%_libdir/libspirv-cross-$i.so" +done + +%ldconfig_scriptlets -n %lname + +%files +%license LICENSE +%doc README.md +%_bindir/spirv-cross + +%files -n %lname +%_libdir/libspirv-cross-c-shared.so.* + +%files devel +%_libdir/libspirv-cross-*.so +%_libdir/pkgconfig/*.pc +%_includedir/spirv_cross +%dir %_datadir/spirv* +%_datadir/spirv*/cmake/ + +%changelog diff --git a/vulkan-sdk-1.3.280.0.tar.gz b/vulkan-sdk-1.3.280.0.tar.gz new file mode 100644 index 0000000..71cd45b --- /dev/null +++ b/vulkan-sdk-1.3.280.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:eb11e1b3715b2211442b7e5933a1135885b664cc10530a1a022355fe9e1bb4ac +size 1792907