svn commit: r421176 - in head/graphics: . piglit piglit/files
Jean-Sébastien Pédron
dumbbell at FreeBSD.org
Wed Aug 31 17:46:02 UTC 2016
Author: dumbbell (src committer)
Date: Wed Aug 31 17:46:00 2016
New Revision: 421176
URL: https://svnweb.freebsd.org/changeset/ports/421176
Log:
graphics/piglit: New port for the Mesa testsuite
Piglit is the Mesa testsuite. It is very helpful while working on the
graphics stack in both userland and the kernel.
Support for FreeBSD is incomplete at this time. We use a patch to
enable the same build flags as Linux. However, we still lack new code
to support FreeBSD, in particular in scripts under the `framework`
directory, such as a way to collect timestamped messages from the
kernel.
Approved by: kwm
Differential Revision: https://reviews.freebsd.org/D4058
Added:
head/graphics/piglit/
head/graphics/piglit/Makefile (contents, props changed)
head/graphics/piglit/distinfo (contents, props changed)
head/graphics/piglit/files/
head/graphics/piglit/files/patch-CMakeLists.txt (contents, props changed)
head/graphics/piglit/files/patch-piglit (contents, props changed)
head/graphics/piglit/files/patch-tests_spec_oes__geometry__shader_sso__validation_user-defined-gs-input-in-block.shader__test (contents, props changed)
head/graphics/piglit/files/patch-tests_spec_oes__geometry__shader_sso__validation_user-defined-gs-input-not-in-block.shader__test (contents, props changed)
head/graphics/piglit/files/pkg-message.in (contents, props changed)
head/graphics/piglit/pkg-descr (contents, props changed)
head/graphics/piglit/pkg-plist (contents, props changed)
Modified:
head/graphics/Makefile
Modified: head/graphics/Makefile
==============================================================================
--- head/graphics/Makefile Wed Aug 31 17:42:19 2016 (r421175)
+++ head/graphics/Makefile Wed Aug 31 17:46:00 2016 (r421176)
@@ -777,6 +777,7 @@
SUBDIR += phplot
SUBDIR += picpuz
SUBDIR += piddle
+ SUBDIR += piglit
SUBDIR += pikopixel
SUBDIR += pinpoint
SUBDIR += pixelize
Added: head/graphics/piglit/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/graphics/piglit/Makefile Wed Aug 31 17:46:00 2016 (r421176)
@@ -0,0 +1,46 @@
+# Created by: Jean-Sébastien Pédron <dumbbell at FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME= piglit
+PORTVERSION= 20160809
+CATEGORIES= graphics
+
+MAINTAINER= x11 at FreeBSD.org
+COMMENT= Automated OpenGL and OpenCL testsuite
+
+LICENSE= MIT GPLv2 GPLv3 LGPL20
+LICENSE_COMB= multi
+
+BUILD_DEPENDS= ${LOCALBASE}/include/CL/opencl.h:devel/opencl \
+ ${PYNUMPY} \
+ ${PYTHON_PKGNAMEPREFIX}mako>0:textproc/py-mako \
+ ${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six
+LIB_DEPENDS= libcaca.so:graphics/libcaca \
+ libdrm.so:graphics/libdrm \
+ libOpenCL.so:devel/ocl-icd \
+ libpng.so:graphics/png \
+ libwaffle-1.so:graphics/waffle
+RUN_DEPENDS= ${PYNUMPY} \
+ ${PYTHON_PKGNAMEPREFIX}mako>0:textproc/py-mako \
+ ${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six
+
+USE_GITHUB= yes
+GH_ACCOUNT= dumbbell
+GH_PROJECT= piglit
+GH_TAGNAME= ca5350b4056ae63a93c4c207087b7634873b2ce2
+
+USES= cmake:outsource pkgconfig python:2
+USE_GL= egl gbm gl glu
+USE_XORG= x11 xcb xext xrender
+
+CMAKE_ARGS+= -DPIGLIT_BUILD_CL_TESTS:BOOL=ON
+
+CMAKE_ARGS+= -DCMAKE_POLICY_DEFAULT_CMP0056:STRING=NEW
+LDFLAGS+= -L${LOCALBASE}/lib
+
+SUB_FILES= pkg-message
+
+DATADIR= ${PREFIX}/lib/piglit
+PORTDATA= *
+
+.include <bsd.port.mk>
Added: head/graphics/piglit/distinfo
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/graphics/piglit/distinfo Wed Aug 31 17:46:00 2016 (r421176)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1470774588
+SHA256 (dumbbell-piglit-20160809-ca5350b4056ae63a93c4c207087b7634873b2ce2_GH0.tar.gz) = f45922b9a6c5a400c3cfc0107eb49b7d9f6076e49bec49b22557284c1a3a6141
+SIZE (dumbbell-piglit-20160809-ca5350b4056ae63a93c4c207087b7634873b2ce2_GH0.tar.gz) = 23789615
Added: head/graphics/piglit/files/patch-CMakeLists.txt
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/graphics/piglit/files/patch-CMakeLists.txt Wed Aug 31 17:46:00 2016 (r421176)
@@ -0,0 +1,20 @@
+--- CMakeLists.txt.orig 2016-08-09 20:28:45 UTC
++++ CMakeLists.txt
+@@ -201,8 +201,6 @@ IF(PIGLIT_BUILD_GLX_TESTS)
+ pkg_check_modules(GLPROTO REQUIRED glproto)
+ ENDIF()
+
+-set(Python_ADDITIONAL_VERSIONS
+- 3.5 3.4 3.3 2.7)
+ find_package(PythonInterp REQUIRED)
+ find_package(PythonSix 1.5.2 REQUIRED)
+ find_package(PythonNumpy 1.7.0 REQUIRED)
+@@ -361,7 +359,7 @@ endif()
+
+ check_c_source_compiles(
+ "
+- #define _POSIX_C_SOURCE 199309L
++ #define _POSIX_C_SOURCE 200112L
+ #include <time.h>
+ int main() { return clock_gettime(CLOCK_MONOTONIC, NULL); }
+ "
Added: head/graphics/piglit/files/patch-piglit
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/graphics/piglit/files/patch-piglit Wed Aug 31 17:46:00 2016 (r421176)
@@ -0,0 +1,8 @@
+--- piglit.orig 2016-08-09 20:28:45 UTC
++++ piglit
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env python3
++#!/usr/bin/env python2
+
+ # Copyright (c) 2014 Intel Corporation
+
Added: head/graphics/piglit/files/patch-tests_spec_oes__geometry__shader_sso__validation_user-defined-gs-input-in-block.shader__test
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/graphics/piglit/files/patch-tests_spec_oes__geometry__shader_sso__validation_user-defined-gs-input-in-block.shader__test Wed Aug 31 17:46:00 2016 (r421176)
@@ -0,0 +1,16 @@
+--- tests/spec/oes_geometry_shader/sso_validation/user-defined-gs-input-in-block.shader_test.orig 2016-08-09 20:28:45 UTC
++++ tests/spec/oes_geometry_shader/sso_validation/user-defined-gs-input-in-block.shader_test
+@@ -1,5 +1,5 @@
+ [require]
+-GL ES >= 3.1
++GL ES >= 3.0
+ GLSL ES >= 3.10
+ GL_OES_geometry_shader
+ SSO ENABLED
+@@ -67,4 +67,4 @@ void main()
+
+ [test]
+ draw rect -1 -1 2 2
+-probe all rgba 0.0 1.0 0.0 1.0
+\ No newline at end of file
++probe all rgba 0.0 1.0 0.0 1.0
Added: head/graphics/piglit/files/patch-tests_spec_oes__geometry__shader_sso__validation_user-defined-gs-input-not-in-block.shader__test
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/graphics/piglit/files/patch-tests_spec_oes__geometry__shader_sso__validation_user-defined-gs-input-not-in-block.shader__test Wed Aug 31 17:46:00 2016 (r421176)
@@ -0,0 +1,16 @@
+--- tests/spec/oes_geometry_shader/sso_validation/user-defined-gs-input-not-in-block.shader_test.orig 2016-08-09 20:28:45 UTC
++++ tests/spec/oes_geometry_shader/sso_validation/user-defined-gs-input-not-in-block.shader_test
+@@ -1,5 +1,5 @@
+ [require]
+-GL ES >= 3.1
++GL ES >= 3.0
+ GLSL ES >= 3.10
+ GL_OES_geometry_shader
+ SSO ENABLED
+@@ -62,4 +62,4 @@ void main()
+
+ [test]
+ draw rect -1 -1 2 2
+-probe all rgba 0.0 1.0 0.0 1.0
+\ No newline at end of file
++probe all rgba 0.0 1.0 0.0 1.0
Added: head/graphics/piglit/files/pkg-message.in
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/graphics/piglit/files/pkg-message.in Wed Aug 31 17:46:00 2016 (r421176)
@@ -0,0 +1,10 @@
+Piglit opens and closes a lot of files during a run, putting pressure
+on FreeBSD's VFS. To keep Piglit smooth, you will have to increase the
+default maxvnodes:
+ sysctl kern.maxvnodes=$(($(sysctl -n kern.maxvnodes) * 2))
+
+Instructions to use Piglit are available in:
+ %%DOCSDIR%%/README
+
+The same documentation is also available online:
+ http://cgit.freedesktop.org/piglit/tree/README
Added: head/graphics/piglit/pkg-descr
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/graphics/piglit/pkg-descr Wed Aug 31 17:46:00 2016 (r421176)
@@ -0,0 +1,12 @@
+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 and OpenCL drivers by providing developers with a simple means to
+perform regression tests.
+
+The original tests have been taken from
+- Glean ( http://glean.sf.net/ ) and
+- Mesa ( http://www.mesa3d.org/ )
+
+WWW: http://piglit.freedesktop.org/
Added: head/graphics/piglit/pkg-plist
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/graphics/piglit/pkg-plist Wed Aug 31 17:46:00 2016 (r421176)
@@ -0,0 +1,165 @@
+bin/piglit
+%%PORTDOCS%%%%DOCSDIR%%/COPYING
+%%PORTDOCS%%%%DOCSDIR%%/README
+%%PORTDOCS%%%%DOCSDIR%%/RELEASE
+ at dir %%DATADIR%%/generated_tests/modules
+ at dir %%DATADIR%%/generated_tests/templates/gen_builtin_packing_tests
+ at dir %%DATADIR%%/generated_tests/templates/gen_const_builtin_equal_tests
+ at dir %%DATADIR%%/generated_tests/templates/gen_conversion_fp64
+ at dir %%DATADIR%%/generated_tests/templates/gen_extensions_defined
+ at dir %%DATADIR%%/generated_tests/templates/gen_flat_interpolation_qualifier
+ at dir %%DATADIR%%/generated_tests/templates/gen_inout_fp64
+ at dir %%DATADIR%%/generated_tests/templates/gen_interpolation_tests
+ at dir %%DATADIR%%/generated_tests/templates/gen_non-lvalue_tests
+ at dir %%DATADIR%%/generated_tests/templates/gen_outerproduct_invalid_params
+ at dir %%DATADIR%%/generated_tests/templates/gen_outerproduct_tests
+ at dir %%DATADIR%%/generated_tests/templates/gen_shader_bit_encoding_tests
+ at dir %%DATADIR%%/generated_tests/templates/gen_shader_precision_tests
+ at dir %%DATADIR%%/generated_tests/templates/gen_texture_lod_tests
+ at dir %%DATADIR%%/generated_tests/templates/gen_texture_query_lod_tests
+ at dir %%DATADIR%%/generated_tests/templates/gen_uniform_initializer_tests
+ at dir %%DATADIR%%/generated_tests/templates/gen_variable_index_read_tests
+ at dir %%DATADIR%%/generated_tests/templates/gen_variable_index_write_tests
+ at dir %%DATADIR%%/generated_tests/templates/gen_vp_tex
+ at dir %%DATADIR%%/generated_tests/templates/gen_vs_in_fp64
+ at dir %%DATADIR%%/generated_tests/templates/interpolation-qualifier-built-in-variable
+ at dir %%DATADIR%%/tests/bugs
+ at dir %%DATADIR%%/tests/cl/api
+ at dir %%DATADIR%%/tests/cl/custom
+ at dir %%DATADIR%%/tests/cl/interop
+ at dir %%DATADIR%%/tests/egl/spec/egl-1.4
+ at dir %%DATADIR%%/tests/egl/spec/egl_chromium_sync_control
+ at dir %%DATADIR%%/tests/egl/spec/egl_ext_client_extensions
+ at dir %%DATADIR%%/tests/egl/spec/egl_khr_create_context
+ at dir %%DATADIR%%/tests/egl/spec/egl_khr_fence_sync
+ at dir %%DATADIR%%/tests/egl/spec/egl_khr_get_all_proc_addresses
+ at dir %%DATADIR%%/tests/egl/spec/egl_khr_surfaceless_context
+ at dir %%DATADIR%%/tests/fbo
+ at dir %%DATADIR%%/tests/general
+ at dir %%DATADIR%%/tests/glean
+ at dir %%DATADIR%%/tests/glx
+ at dir %%DATADIR%%/tests/hiz
+ at dir %%DATADIR%%/tests/security
+ at dir %%DATADIR%%/tests/spec/amd_performance_monitor
+ at dir %%DATADIR%%/tests/spec/amd_pinned_memory
+ at dir %%DATADIR%%/tests/spec/amd_seamless_cubemap_per_texture
+ at dir %%DATADIR%%/tests/spec/amd_vertex_shader_layer
+ at dir %%DATADIR%%/tests/spec/amd_vertex_shader_viewport_index
+ at dir %%DATADIR%%/tests/spec/arb_base_instance
+ at dir %%DATADIR%%/tests/spec/arb_blend_func_extended/api
+ at dir %%DATADIR%%/tests/spec/arb_blend_func_extended/execution
+ at dir %%DATADIR%%/tests/spec/arb_buffer_storage
+ at dir %%DATADIR%%/tests/spec/arb_clear_buffer_object
+ at dir %%DATADIR%%/tests/spec/arb_clear_texture
+ at dir %%DATADIR%%/tests/spec/arb_clip_control
+ at dir %%DATADIR%%/tests/spec/arb_color_buffer_float
+ at dir %%DATADIR%%/tests/spec/arb_compute_shader/compiler
+ at dir %%DATADIR%%/tests/spec/arb_copy_buffer
+ at dir %%DATADIR%%/tests/spec/arb_copy_image
+ at dir %%DATADIR%%/tests/spec/arb_debug_output
+ at dir %%DATADIR%%/tests/spec/arb_depth_clamp
+ at dir %%DATADIR%%/tests/spec/arb_direct_state_access
+ at dir %%DATADIR%%/tests/spec/arb_draw_buffers
+ at dir %%DATADIR%%/tests/spec/arb_draw_buffers_blend
+ at dir %%DATADIR%%/tests/spec/arb_draw_elements_base_vertex
+ at dir %%DATADIR%%/tests/spec/arb_draw_indirect
+ at dir %%DATADIR%%/tests/spec/arb_es2_compatibility
+ at dir %%DATADIR%%/tests/spec/arb_es3_compatibility
+ at dir %%DATADIR%%/tests/spec/arb_framebuffer_no_attachments
+ at dir %%DATADIR%%/tests/spec/arb_framebuffer_object
+ at dir %%DATADIR%%/tests/spec/arb_framebuffer_srgb
+ at dir %%DATADIR%%/tests/spec/arb_geometry_shader4/execution/program-parameter
+ at dir %%DATADIR%%/tests/spec/arb_get_program_binary
+ at dir %%DATADIR%%/tests/spec/arb_get_texture_sub_image
+ at dir %%DATADIR%%/tests/spec/arb_gpu_shader_fp64/shader_storage
+ at dir %%DATADIR%%/tests/spec/arb_indirect_parameters
+ at dir %%DATADIR%%/tests/spec/arb_instanced_arrays
+ at dir %%DATADIR%%/tests/spec/arb_internalformat_query
+ at dir %%DATADIR%%/tests/spec/arb_internalformat_query2
+ at dir %%DATADIR%%/tests/spec/arb_invalidate_subdata
+ at dir %%DATADIR%%/tests/spec/arb_map_buffer_alignment
+ at dir %%DATADIR%%/tests/spec/arb_map_buffer_range
+ at dir %%DATADIR%%/tests/spec/arb_multisample
+ at dir %%DATADIR%%/tests/spec/arb_occlusion_query
+ at dir %%DATADIR%%/tests/spec/arb_occlusion_query2
+ at dir %%DATADIR%%/tests/spec/arb_pipeline_statistics_query
+ at dir %%DATADIR%%/tests/spec/arb_program_interface_query
+ at dir %%DATADIR%%/tests/spec/arb_provoking_vertex
+ at dir %%DATADIR%%/tests/spec/arb_query_buffer_object
+ at dir %%DATADIR%%/tests/spec/arb_robustness
+ at dir %%DATADIR%%/tests/spec/arb_sample_shading/execution
+ at dir %%DATADIR%%/tests/spec/arb_sampler_objects
+ at dir %%DATADIR%%/tests/spec/arb_seamless_cube_map
+ at dir %%DATADIR%%/tests/spec/arb_shader_draw_parameters
+ at dir %%DATADIR%%/tests/spec/arb_shader_image_size
+ at dir %%DATADIR%%/tests/spec/arb_shader_objects
+ at dir %%DATADIR%%/tests/spec/arb_stencil_texturing
+ at dir %%DATADIR%%/tests/spec/arb_sync
+ at dir %%DATADIR%%/tests/spec/arb_texture_barrier
+ at dir %%DATADIR%%/tests/spec/arb_texture_buffer_object
+ at dir %%DATADIR%%/tests/spec/arb_texture_buffer_range
+ at dir %%DATADIR%%/tests/spec/arb_texture_compression
+ at dir %%DATADIR%%/tests/spec/arb_texture_float
+ at dir %%DATADIR%%/tests/spec/arb_texture_multisample
+ at dir %%DATADIR%%/tests/spec/arb_texture_stencil8
+ at dir %%DATADIR%%/tests/spec/arb_texture_storage
+ at dir %%DATADIR%%/tests/spec/arb_texture_storage_multisample
+ at dir %%DATADIR%%/tests/spec/arb_texture_view
+ at dir %%DATADIR%%/tests/spec/arb_timer_query
+ at dir %%DATADIR%%/tests/spec/arb_transform_feedback2
+ at dir %%DATADIR%%/tests/spec/arb_transform_feedback3
+ at dir %%DATADIR%%/tests/spec/arb_vertex_array_bgra
+ at dir %%DATADIR%%/tests/spec/arb_vertex_array_object
+ at dir %%DATADIR%%/tests/spec/arb_vertex_buffer_object
+ at dir %%DATADIR%%/tests/spec/arb_vertex_type_10f_11f_11f_rev
+ at dir %%DATADIR%%/tests/spec/arb_vertex_type_2_10_10_10_rev
+ at dir %%DATADIR%%/tests/spec/arb_viewport_array
+ at dir %%DATADIR%%/tests/spec/ati_draw_buffers
+ at dir %%DATADIR%%/tests/spec/ati_envmap_bumpmap
+ at dir %%DATADIR%%/tests/spec/ext_depth_bounds_test
+ at dir %%DATADIR%%/tests/spec/ext_fog_coord
+ at dir %%DATADIR%%/tests/spec/ext_framebuffer_blit
+ at dir %%DATADIR%%/tests/spec/ext_framebuffer_multisample
+ at dir %%DATADIR%%/tests/spec/ext_framebuffer_multisample_blit_scaled
+ at dir %%DATADIR%%/tests/spec/ext_image_dma_buf_import
+ at dir %%DATADIR%%/tests/spec/ext_packed_depth_stencil
+ at dir %%DATADIR%%/tests/spec/ext_packed_float
+ at dir %%DATADIR%%/tests/spec/ext_polygon_offset_clamp
+ at dir %%DATADIR%%/tests/spec/ext_texture_format_bgra8888
+ at dir %%DATADIR%%/tests/spec/ext_texture_integer
+ at dir %%DATADIR%%/tests/spec/ext_texture_swizzle
+ at dir %%DATADIR%%/tests/spec/ext_timer_query
+ at dir %%DATADIR%%/tests/spec/ext_transform_feedback
+ at dir %%DATADIR%%/tests/spec/ext_unpack_subimage
+ at dir %%DATADIR%%/tests/spec/ext_window_rectangles
+ at dir %%DATADIR%%/tests/spec/gl-1.0
+ at dir %%DATADIR%%/tests/spec/gl-1.1
+ at dir %%DATADIR%%/tests/spec/gl-1.2
+ at dir %%DATADIR%%/tests/spec/gl-1.4
+ at dir %%DATADIR%%/tests/spec/gl-1.5
+ at dir %%DATADIR%%/tests/spec/gl-2.0/api
+ at dir %%DATADIR%%/tests/spec/gl-2.1
+ at dir %%DATADIR%%/tests/spec/gl-3.0/api
+ at dir %%DATADIR%%/tests/spec/gl-3.2/layered-rendering
+ at dir %%DATADIR%%/tests/spec/gl-3.3
+ at dir %%DATADIR%%/tests/spec/gl-4.4
+ at dir %%DATADIR%%/tests/spec/gles-2.0
+ at dir %%DATADIR%%/tests/spec/glsl-1.10/execution/clipping
+ at dir %%DATADIR%%/tests/spec/glsl-1.10/execution/varying-packing
+ at dir %%DATADIR%%/tests/spec/glsl-1.20/recursion
+ at dir %%DATADIR%%/tests/spec/glsl-1.30/linker/clipping
+ at dir %%DATADIR%%/tests/spec/glx_arb_create_context
+ at dir %%DATADIR%%/tests/spec/glx_ext_import_context
+ at dir %%DATADIR%%/tests/spec/glx_mesa_query_renderer
+ at dir %%DATADIR%%/tests/spec/glx_oml_sync_control
+ at dir %%DATADIR%%/tests/spec/khr_debug
+ at dir %%DATADIR%%/tests/spec/mesa_pack_invert
+ at dir %%DATADIR%%/tests/spec/nv_conditional_render
+ at dir %%DATADIR%%/tests/spec/nv_texture_barrier
+ at dir %%DATADIR%%/tests/spec/oes_compressed_paletted_texture
+ at dir %%DATADIR%%/tests/spec/oes_draw_elements_base_vertex
+ at dir %%DATADIR%%/tests/spec/oes_draw_texture
+ at dir %%DATADIR%%/tests/spec/oes_fixed_point
+ at dir %%DATADIR%%/tests/spec/oes_matrix_get
+ at dir %%DATADIR%%/tests/spec/oes_texture_float
+ at dir %%DATADIR%%/tests/texturing/shaders
More information about the svn-ports-head
mailing list