[info=a245914cdeeb263497a5b20a65a2444383218bb8aa126dc37023b75b000b20b5]

OBS-URL: https://build.opensuse.org/package/show/X11:Wayland/spirv-cross?expand=0&rev=37
This commit is contained in:
Jan Engelhardt 2024-10-08 17:46:45 +00:00 committed by Git OBS Bridge
commit ae75c78050
7 changed files with 276 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -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

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

4
_scmsync.obsinfo Normal file
View File

@ -0,0 +1,4 @@
mtime: 1711477548
commit: a245914cdeeb263497a5b20a65a2444383218bb8aa126dc37023b75b000b20b5
url: https://src.opensuse.org/jengelh/spirv-cross
revision: master

3
build.specials.obscpio Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:184d5e12802918b3a04b7a3c3dd942f2f57ff2d7c7c97fa370e70bb18ca6f3c3
size 256

141
spirv-cross.changes Normal file
View File

@ -0,0 +1,141 @@
-------------------------------------------------------------------
Thu Mar 21 09:56:29 UTC 2024 - Jan Engelhardt <jengelh@inai.de>
- 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 <jengelh@inai.de>
- 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 <jengelh@inai.de>
- 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 <jengelh@inai.de>
- 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 <jengelh@inai.de>
- 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 <jengelh@inai.de>
- 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 <jengelh@inai.de>
- 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 <jengelh@inai.de>
- 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 <jengelh@inai.de>
- 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 <mia@0x0.st>
- Update to 2020-06-29 (no changelog)
-------------------------------------------------------------------
Thu May 21 12:40:41 UTC 2020 - Mia Herkt <mia@0x0.st>
- Update to 2020-05-19 (no changelog)
-------------------------------------------------------------------
Wed Apr 8 11:02:21 UTC 2020 - Jan Engelhardt <jengelh@inai.de>
- 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 <jengelh@inai.de>
- 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

101
spirv-cross.spec Normal file
View File

@ -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

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:eb11e1b3715b2211442b7e5933a1135885b664cc10530a1a022355fe9e1bb4ac
size 1792907