piglit/piglit.spec

137 lines
3.9 KiB
RPMSpec
Raw Normal View History

#
# spec file for package piglit
#
- Update to version 1~20231228: * ext_render_snorm-render: Fix deprecated-non-prototype warning * version-mixing: Fix deprecated-non-prototype warning * draw-prim-rate: test more varying counts * glsl-1.10/built-in-uniform-state: don't test Infs due to undefined behavior * arb_vertex_program/property-bindings: don't test Infs due to undefined behavior * glsl-1.40: add a UBO test that I don't remember why I needed it * glsl-1.10: test a smooth color input with glShadeModel(GL_FLAT) * arb_fragment_layer_viewport: don't test out-of-range gl_Layer values * ext_render_snorm-render: lower test ctx version requirement * Implement piglit_subprocess for Windows * modifiers: Make a single list of the known modifiers. * modifiers: Allow specifying format and modifier * modifiers: Improve the presentation of results * modifiers: Add clear reimport subtest * modifiers: Add stress subtest * modifiers: Indent an inner loop * modifiers: Try to autogenerate dmabufs * framework: Add piglit_drm_create_dma_buf_modifiers * framework: Add an n_planes field * ext_image_dma_buf_import: Add a test for modifiers * ext_image_dma_buf_import: Support non-external textures * ext_image_dma_buf_import: Require GL_EXT_EGL_image_storage * Import the drm_fourcc/drm.h header and use them. * arb_tessellation_shader: Add new test tesslevels-indirect * ext_image_dma_buf_import: add a multithread refcount test * ext_image_dma_buf_import-export-tex: Print normal info to stdout, not stderr. * arb_separate_shader_objects/atomic-counter: Add missing GLSL requirement. * GL_ARB_arrays_of_arrays: Fix a missing extension requirement. * arb_shader_texture_lod: Fix incorrect require directive for the ext. OBS-URL: https://build.opensuse.org/package/show/benchmark/piglit?expand=0&rev=45
2024-01-04 09:00:34 +01:00
# 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.
- Update to version 1~20191210.603cfb975: * glsl-es-3.10: add precision statement to a shader missing it * ext_dsa: add vao functions tests * arb_vertex_attrib_64bit: fix error message in explicit location check * Require a GLSL version in fs-shift-left-of-shift-left * arb_separate_shader_objects: add linker test for glsl version 1.40 * ci: update wayland/ci-templates ref * glsl-1.50: new GS test for emitted triangle strip orientation * arb_blend_func_extended: Make issue-1917 test reproduce issue on BSW * arb_program_interface_query: add gl_PerVertex redeclaration * ext_disjoint_timer_query: use/test glGetInteger64vEXT call * ext_texture_format_bgra8888: changes for effective internal format * tbo: include tbo re-init test to opengl.py * arb_blend_func_extended: Add test checking corruption on BSW/BDW * gitlab-ci: use ccache to speed up builds * gitlab-ci: set interruptible to auto-cancel CI pipelines * glsl-es-3.10: port arb_shader_atomic_counters tests to glsl-es-3.10 * arb_shader_atomic_counters: fix buffers needed check * arb_gl_spirv: add some simple ubo/ssbo tests * arb_gl_spirv: add GL_ACTIVE_UNIFORMS checks * tbo: test a re-initialization * arb_shading_language_include: delete shader includes on teardown * Add new tests for ROL/ROR instruction verification * generated_tests: more python fixes * tox: hold pytest-mock to version 1.11.2, since 1.12 seems to be broken * python: fix collections.abc warning * python: fix string tests * glsl-es-3.10: add some image load/store tests with predication. * piglit-util: expand piglit_integer_texture * arb_shading_language_include: fix crash in process isolation OBS-URL: https://build.opensuse.org/package/show/benchmark/piglit?expand=0&rev=19
2019-12-10 14:08:31 +01:00
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
- Update to version 1~20180604.cde860ab3: * arb_texture_view: convert some more tests to run on ES 3.1 * util: provide way to read a texture in ES compatible way * vertex-program-two-side: Fix GCC format-security warnings. * glsl-fs-fogscale: Fix GCC format-security warnings. * glsl-1.50: test compat built in constants * built-in-constants: fix desktop GL version check for geometry shaders * built-in-constants: add support for testing compatibility profile built ins * framework/resume: properly parse the no_retry option * framework: allow specifying the number of jobs for concurrency * framework/html: guard against errors writing individual test results * gl-3.0: Remove unused variable. * arb_tessellation_shader: test display list support for glPatchParameterfv() * arb_tessellation_shader: add basic display list test for glPatchParameteri() * shader_runner: add basic display list support * ARB_tessellation_shader: test gl_*Color built-ins with tessellation shaders * piglit-util-gl: add support for using patches with fixed function attributes * gl-3.2-compat: test gl_FogFragCoord built-in with geometry shaders * gl-3.2-compat: test gl_ClipVertex built-in with geometry shaders * gl-3.2-compat: test gl_TexCoord[] built-in with geometry shaders * gl-3.2-compat: test gl_*Color built-ins with geometry shaders * glsl-1.40/1.50: basic compiler tests for the compatibility profile * glslparsertest: support compatibility profile tests * cmake: Bump minimum version to 3.2. * Revert "Specify an explicit window size in builtin uniform tests." * Specify an explicit window size in builtin uniform tests. * Fix bogus assertions in builtin uniform test generator. * gl-3.0: test glUniform*ui{v} functions are compiled into display lists * util: add includes when building for Wayland * tests: Add gpu and quick no_isolation metaprofiles OBS-URL: https://build.opensuse.org/package/show/benchmark/piglit?expand=0&rev=13
2018-06-06 16:31:12 +02:00
%ifarch %{arm} aarch64
# Enable openGL ES only
%bcond_with opengl
%bcond_without opengles
%else
# Enable openGL and openGL ES
%bcond_without opengl
%bcond_without opengles
%endif
Name: piglit
- Update to version 1~20231228: * ext_render_snorm-render: Fix deprecated-non-prototype warning * version-mixing: Fix deprecated-non-prototype warning * draw-prim-rate: test more varying counts * glsl-1.10/built-in-uniform-state: don't test Infs due to undefined behavior * arb_vertex_program/property-bindings: don't test Infs due to undefined behavior * glsl-1.40: add a UBO test that I don't remember why I needed it * glsl-1.10: test a smooth color input with glShadeModel(GL_FLAT) * arb_fragment_layer_viewport: don't test out-of-range gl_Layer values * ext_render_snorm-render: lower test ctx version requirement * Implement piglit_subprocess for Windows * modifiers: Make a single list of the known modifiers. * modifiers: Allow specifying format and modifier * modifiers: Improve the presentation of results * modifiers: Add clear reimport subtest * modifiers: Add stress subtest * modifiers: Indent an inner loop * modifiers: Try to autogenerate dmabufs * framework: Add piglit_drm_create_dma_buf_modifiers * framework: Add an n_planes field * ext_image_dma_buf_import: Add a test for modifiers * ext_image_dma_buf_import: Support non-external textures * ext_image_dma_buf_import: Require GL_EXT_EGL_image_storage * Import the drm_fourcc/drm.h header and use them. * arb_tessellation_shader: Add new test tesslevels-indirect * ext_image_dma_buf_import: add a multithread refcount test * ext_image_dma_buf_import-export-tex: Print normal info to stdout, not stderr. * arb_separate_shader_objects/atomic-counter: Add missing GLSL requirement. * GL_ARB_arrays_of_arrays: Fix a missing extension requirement. * arb_shader_texture_lod: Fix incorrect require directive for the ext. OBS-URL: https://build.opensuse.org/package/show/benchmark/piglit?expand=0&rev=45
2024-01-04 09:00:34 +01:00
Version: 1~20231228
Release: 0
Summary: OpenGL driver testing framework
License: MIT
Group: System/Benchmark
URL: https://cgit.freedesktop.org/piglit
Source0: %{name}-%{version}.tar.gz
Source1: piglit-rpmlintrc
Source2: suse_qa.py
Source3: suse_qa-skip-tests.txt
Source4: opensuse_qa.py
Source5: opensuse_qa-skip-tests.txt
BuildRequires: cmake
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: glibc-devel
BuildRequires: glslang-devel
BuildRequires: pkgconfig
BuildRequires: python3
BuildRequires: python3-Mako
BuildRequires: python3-numpy
BuildRequires: python3-xml
BuildRequires: pkgconfig(egl)
- Update to version 1~20180604.cde860ab3: * arb_texture_view: convert some more tests to run on ES 3.1 * util: provide way to read a texture in ES compatible way * vertex-program-two-side: Fix GCC format-security warnings. * glsl-fs-fogscale: Fix GCC format-security warnings. * glsl-1.50: test compat built in constants * built-in-constants: fix desktop GL version check for geometry shaders * built-in-constants: add support for testing compatibility profile built ins * framework/resume: properly parse the no_retry option * framework: allow specifying the number of jobs for concurrency * framework/html: guard against errors writing individual test results * gl-3.0: Remove unused variable. * arb_tessellation_shader: test display list support for glPatchParameterfv() * arb_tessellation_shader: add basic display list test for glPatchParameteri() * shader_runner: add basic display list support * ARB_tessellation_shader: test gl_*Color built-ins with tessellation shaders * piglit-util-gl: add support for using patches with fixed function attributes * gl-3.2-compat: test gl_FogFragCoord built-in with geometry shaders * gl-3.2-compat: test gl_ClipVertex built-in with geometry shaders * gl-3.2-compat: test gl_TexCoord[] built-in with geometry shaders * gl-3.2-compat: test gl_*Color built-ins with geometry shaders * glsl-1.40/1.50: basic compiler tests for the compatibility profile * glslparsertest: support compatibility profile tests * cmake: Bump minimum version to 3.2. * Revert "Specify an explicit window size in builtin uniform tests." * Specify an explicit window size in builtin uniform tests. * Fix bogus assertions in builtin uniform test generator. * gl-3.0: test glUniform*ui{v} functions are compiled into display lists * util: add includes when building for Wayland * tests: Add gpu and quick no_isolation metaprofiles OBS-URL: https://build.opensuse.org/package/show/benchmark/piglit?expand=0&rev=13
2018-06-06 16:31:12 +02:00
BuildRequires: pkgconfig(libdrm)
BuildRequires: pkgconfig(libpng)
BuildRequires: pkgconfig(vulkan)
BuildRequires: pkgconfig(waffle-1) >= 1.6.0
- Update to version 1~20180604.cde860ab3: * arb_texture_view: convert some more tests to run on ES 3.1 * util: provide way to read a texture in ES compatible way * vertex-program-two-side: Fix GCC format-security warnings. * glsl-fs-fogscale: Fix GCC format-security warnings. * glsl-1.50: test compat built in constants * built-in-constants: fix desktop GL version check for geometry shaders * built-in-constants: add support for testing compatibility profile built ins * framework/resume: properly parse the no_retry option * framework: allow specifying the number of jobs for concurrency * framework/html: guard against errors writing individual test results * gl-3.0: Remove unused variable. * arb_tessellation_shader: test display list support for glPatchParameterfv() * arb_tessellation_shader: add basic display list test for glPatchParameteri() * shader_runner: add basic display list support * ARB_tessellation_shader: test gl_*Color built-ins with tessellation shaders * piglit-util-gl: add support for using patches with fixed function attributes * gl-3.2-compat: test gl_FogFragCoord built-in with geometry shaders * gl-3.2-compat: test gl_ClipVertex built-in with geometry shaders * gl-3.2-compat: test gl_TexCoord[] built-in with geometry shaders * gl-3.2-compat: test gl_*Color built-ins with geometry shaders * glsl-1.40/1.50: basic compiler tests for the compatibility profile * glslparsertest: support compatibility profile tests * cmake: Bump minimum version to 3.2. * Revert "Specify an explicit window size in builtin uniform tests." * Specify an explicit window size in builtin uniform tests. * Fix bogus assertions in builtin uniform test generator. * gl-3.0: test glUniform*ui{v} functions are compiled into display lists * util: add includes when building for Wayland * tests: Add gpu and quick no_isolation metaprofiles OBS-URL: https://build.opensuse.org/package/show/benchmark/piglit?expand=0&rev=13
2018-06-06 16:31:12 +02:00
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(xcb)
BuildRequires: pkgconfig(xkbcommon)
- Update to version 1~20180604.cde860ab3: * arb_texture_view: convert some more tests to run on ES 3.1 * util: provide way to read a texture in ES compatible way * vertex-program-two-side: Fix GCC format-security warnings. * glsl-fs-fogscale: Fix GCC format-security warnings. * glsl-1.50: test compat built in constants * built-in-constants: fix desktop GL version check for geometry shaders * built-in-constants: add support for testing compatibility profile built ins * framework/resume: properly parse the no_retry option * framework: allow specifying the number of jobs for concurrency * framework/html: guard against errors writing individual test results * gl-3.0: Remove unused variable. * arb_tessellation_shader: test display list support for glPatchParameterfv() * arb_tessellation_shader: add basic display list test for glPatchParameteri() * shader_runner: add basic display list support * ARB_tessellation_shader: test gl_*Color built-ins with tessellation shaders * piglit-util-gl: add support for using patches with fixed function attributes * gl-3.2-compat: test gl_FogFragCoord built-in with geometry shaders * gl-3.2-compat: test gl_ClipVertex built-in with geometry shaders * gl-3.2-compat: test gl_TexCoord[] built-in with geometry shaders * gl-3.2-compat: test gl_*Color built-ins with geometry shaders * glsl-1.40/1.50: basic compiler tests for the compatibility profile * glslparsertest: support compatibility profile tests * cmake: Bump minimum version to 3.2. * Revert "Specify an explicit window size in builtin uniform tests." * Specify an explicit window size in builtin uniform tests. * Fix bogus assertions in builtin uniform test generator. * gl-3.0: test glUniform*ui{v} functions are compiled into display lists * util: add includes when building for Wayland * tests: Add gpu and quick no_isolation metaprofiles OBS-URL: https://build.opensuse.org/package/show/benchmark/piglit?expand=0&rev=13
2018-06-06 16:31:12 +02:00
Requires: python3
Requires: python3-Mako
Requires: python3-numpy
Requires: python3-xml
Recommends: waffle >= 1.6.0
- Update to version 1~20180604.cde860ab3: * arb_texture_view: convert some more tests to run on ES 3.1 * util: provide way to read a texture in ES compatible way * vertex-program-two-side: Fix GCC format-security warnings. * glsl-fs-fogscale: Fix GCC format-security warnings. * glsl-1.50: test compat built in constants * built-in-constants: fix desktop GL version check for geometry shaders * built-in-constants: add support for testing compatibility profile built ins * framework/resume: properly parse the no_retry option * framework: allow specifying the number of jobs for concurrency * framework/html: guard against errors writing individual test results * gl-3.0: Remove unused variable. * arb_tessellation_shader: test display list support for glPatchParameterfv() * arb_tessellation_shader: add basic display list test for glPatchParameteri() * shader_runner: add basic display list support * ARB_tessellation_shader: test gl_*Color built-ins with tessellation shaders * piglit-util-gl: add support for using patches with fixed function attributes * gl-3.2-compat: test gl_FogFragCoord built-in with geometry shaders * gl-3.2-compat: test gl_ClipVertex built-in with geometry shaders * gl-3.2-compat: test gl_TexCoord[] built-in with geometry shaders * gl-3.2-compat: test gl_*Color built-ins with geometry shaders * glsl-1.40/1.50: basic compiler tests for the compatibility profile * glslparsertest: support compatibility profile tests * cmake: Bump minimum version to 3.2. * Revert "Specify an explicit window size in builtin uniform tests." * Specify an explicit window size in builtin uniform tests. * Fix bogus assertions in builtin uniform test generator. * gl-3.0: test glUniform*ui{v} functions are compiled into display lists * util: add includes when building for Wayland * tests: Add gpu and quick no_isolation metaprofiles OBS-URL: https://build.opensuse.org/package/show/benchmark/piglit?expand=0&rev=13
2018-06-06 16:31:12 +02:00
ExcludeArch: %{ix86} ppc
%if %{with opengl}
BuildRequires: pkgconfig(gl)
BuildRequires: pkgconfig(glproto)
BuildRequires: pkgconfig(glu)
%endif
%if %{with opengles}
BuildRequires: Mesa-libGLESv3-devel
BuildRequires: pkgconfig(glesv1_cm)
BuildRequires: pkgconfig(glesv2)
%endif
%ifarch x86_64
BuildRequires: pkgconfig(libdrm_intel)
%endif
%description
Piglit is a collection of automated tests for OpenGL and OpenCL
implementations.
The goal of Piglit is to help improve the quality of open source
OpenGL drivers by providing developers with means to perform
regression tests.
It contains the Glean tests, some tests adapted from Mesa, as well as
some specific regression tests for certain bugs. HTML summaries can
be generated, including the ability to compare different test runs.
%prep
%autosetup
%build
# Note: Overwriting CMAKE_SHARED_LINKER_FLAGS with those from the cmake macro,
# but leaving out -Wl,--no-undefined
# Note: Overwriting CMAKE_SKIP_RPATH to be off, but enabling
# CMAKE_BUILD_WITH_INSTALL_RPATH so the individual test binaries in
# /usr/lib64/piglit/bin/* can find the libraries in /usr/lib64/piglit/lib
%cmake \
%if %{without opengl}
-DPIGLIT_BUILD_GL_TESTS=OFF \
%endif
%if %{without opengles}
-DPIGLIT_BUILD_GL_ES1_TESTS=OFF \
-DPIGLIT_BUILD_GL_ES2_TESTS=OFF \
-DPIGLIT_BUILD_GL_ES3_TESTS=OFF \
%endif
-DCMAKE_C_FLAGS="%{optflags} -fcommon -DNDEBUG" \
-DCMAKE_SHARED_LINKER_FLAGS="-Wl,--as-needed -Wl,-z,now" \
-DCMAKE_SKIP_RPATH:BOOL=OFF \
-DCMAKE_BUILD_WITH_INSTALL_RPATH:BOOL=ON \
-Wno-dev
- Update to version 1~20191210.603cfb975: * glsl-es-3.10: add precision statement to a shader missing it * ext_dsa: add vao functions tests * arb_vertex_attrib_64bit: fix error message in explicit location check * Require a GLSL version in fs-shift-left-of-shift-left * arb_separate_shader_objects: add linker test for glsl version 1.40 * ci: update wayland/ci-templates ref * glsl-1.50: new GS test for emitted triangle strip orientation * arb_blend_func_extended: Make issue-1917 test reproduce issue on BSW * arb_program_interface_query: add gl_PerVertex redeclaration * ext_disjoint_timer_query: use/test glGetInteger64vEXT call * ext_texture_format_bgra8888: changes for effective internal format * tbo: include tbo re-init test to opengl.py * arb_blend_func_extended: Add test checking corruption on BSW/BDW * gitlab-ci: use ccache to speed up builds * gitlab-ci: set interruptible to auto-cancel CI pipelines * glsl-es-3.10: port arb_shader_atomic_counters tests to glsl-es-3.10 * arb_shader_atomic_counters: fix buffers needed check * arb_gl_spirv: add some simple ubo/ssbo tests * arb_gl_spirv: add GL_ACTIVE_UNIFORMS checks * tbo: test a re-initialization * arb_shading_language_include: delete shader includes on teardown * Add new tests for ROL/ROR instruction verification * generated_tests: more python fixes * tox: hold pytest-mock to version 1.11.2, since 1.12 seems to be broken * python: fix collections.abc warning * python: fix string tests * glsl-es-3.10: add some image load/store tests with predication. * piglit-util: expand piglit_integer_texture * arb_shading_language_include: fix crash in process isolation OBS-URL: https://build.opensuse.org/package/show/benchmark/piglit?expand=0&rev=19
2019-12-10 14:08:31 +01:00
%cmake_build
%install
%cmake_install
install -Dpm 644 %{SOURCE2} \
%{buildroot}%{_libdir}/piglit/tests
install -Dpm 644 %{SOURCE3} \
%{buildroot}%{_libdir}/piglit/tests
install -Dpm 644 %{SOURCE4} \
%{buildroot}%{_libdir}/piglit/tests
install -Dpm 644 %{SOURCE5} \
{buildroot}%{_libdir}/piglit/tests
%fdupes %{buildroot}/%{_libdir}/piglit
%ldconfig_scriptlets
%files
%{_libdir}/piglit
%{_bindir}/piglit
%doc %{_datadir}/doc/piglit
%changelog