pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Import intel-gpu-tools-1.12 as wip/intel-gpu-tools.
Module Name: pkgsrc-wip
Committed By: Tobias Nygren <tnn%NetBSD.org@localhost>
Pushed By: tnn
Date: Tue Oct 6 16:42:48 2015 +0200
Changeset: 7341126d2512349d2992a3a6aeead732f7c81dae
Added Files:
intel-gpu-tools/DESCR
intel-gpu-tools/Makefile
intel-gpu-tools/PLIST
intel-gpu-tools/TODO
intel-gpu-tools/distinfo
intel-gpu-tools/patches/patch-benchmarks_gem__exec__tracer.c
intel-gpu-tools/patches/patch-lib_igt__core.c
intel-gpu-tools/patches/patch-lib_igt__kms.c
intel-gpu-tools/patches/patch-lib_intel__os.c
intel-gpu-tools/patches/patch-overlay_perf.h
intel-gpu-tools/patches/patch-tests_pm__rpm.c
intel-gpu-tools/patches/patch-tools_aubdump.c
Log Message:
Import intel-gpu-tools-1.12 as wip/intel-gpu-tools.
Intel GPU Tools is a collection of tools for development and testing of the
Intel DRM driver.
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=7341126d2512349d2992a3a6aeead732f7c81dae
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
intel-gpu-tools/DESCR | 2 +
intel-gpu-tools/Makefile | 55 ++++
intel-gpu-tools/PLIST | 309 +++++++++++++++++++++
intel-gpu-tools/TODO | 1 +
intel-gpu-tools/distinfo | 12 +
.../patches/patch-benchmarks_gem__exec__tracer.c | 22 ++
intel-gpu-tools/patches/patch-lib_igt__core.c | 15 +
intel-gpu-tools/patches/patch-lib_igt__kms.c | 25 ++
intel-gpu-tools/patches/patch-lib_intel__os.c | 28 ++
intel-gpu-tools/patches/patch-overlay_perf.h | 44 +++
intel-gpu-tools/patches/patch-tests_pm__rpm.c | 35 +++
intel-gpu-tools/patches/patch-tools_aubdump.c | 22 ++
12 files changed, 570 insertions(+)
diffs:
diff --git a/intel-gpu-tools/DESCR b/intel-gpu-tools/DESCR
new file mode 100644
index 0000000..83275a6
--- /dev/null
+++ b/intel-gpu-tools/DESCR
@@ -0,0 +1,2 @@
+Intel GPU Tools is a collection of tools for development and testing of the
+Intel DRM driver.
diff --git a/intel-gpu-tools/Makefile b/intel-gpu-tools/Makefile
new file mode 100644
index 0000000..022526f
--- /dev/null
+++ b/intel-gpu-tools/Makefile
@@ -0,0 +1,55 @@
+# $NetBSD$
+
+DISTNAME= intel-gpu-tools-1.12
+CATEGORIES= x11 graphics
+MASTER_SITES= ${MASTER_SITE_XORG:=app/}
+EXTRACT_SUFX= .tar.bz2
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= http://cgit.freedesktop.org/xorg/app/intel-gpu-tools/
+COMMENT= Test & development tools for the intel DRM kernel driver
+#LICENSE= # various, mostly mit-style
+
+GNU_CONFIGURE= yes
+USE_TOOLS+= gmake pkg-config bash:run
+
+PKGCONFIG_OVERRIDE+= assembler/intel-gen4asm.pc.in
+
+ONLY_FOR_PLATFORM+= *-*-i386 *-*-x86_64
+NOT_FOR_PLATFORM+= Darwin-*-*
+
+REPLACE_BASH+= scripts/run-tests.sh
+REPLACE_BASH+= scripts/who.sh
+REPLACE_BASH+= tests/check_drm_clients
+REPLACE_BASH+= tests/ddx_intel_after_fbdev
+REPLACE_BASH+= tests/debugfs_emon_crash
+REPLACE_BASH+= tests/drv_debugfs_reader
+REPLACE_BASH+= tests/drv_missed_irq_hang
+REPLACE_BASH+= tests/drv_module_reload_basic
+REPLACE_BASH+= tests/kms_sysfs_edid_timing
+REPLACE_BASH+= tests/sysfs_l3_parity
+REPLACE_BASH+= tests/test_rte_check
+REPLACE_BASH+= tests/tools_test
+REPLACE_BASH+= tools/intel_aubdump.in
+
+#.include "../../textproc/gtk-doc/buildlink3.mk"
+#CONFIGURE_ARGS+= --enable-gtk-doc
+
+.include "../../mk/bsd.prefs.mk"
+
+.if ${OPSYS} != "Linux"
+CONFIGURE_ARGS+= --without-libunwind
+.endif
+
+.if ${OPSYS} == "NetBSD"
+CFLAGS+= -Dmmap64=mmap
+BUILDLINK_TRANSFORM+= rm:-ldl
+.endif
+
+.include "../../devel/glib2/buildlink3.mk"
+.include "../../graphics/cairo/buildlink3.mk"
+.include "../../sysutils/libpciaccess/buildlink3.mk"
+.include "../../x11/libXrandr/buildlink3.mk"
+.include "../../x11/libXv/buildlink3.mk"
+.include "../../x11/libdrm/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/intel-gpu-tools/PLIST b/intel-gpu-tools/PLIST
new file mode 100644
index 0000000..e12a256
--- /dev/null
+++ b/intel-gpu-tools/PLIST
@@ -0,0 +1,309 @@
+@comment $NetBSD$
+bin/igt_stats
+bin/intel-gen4asm
+bin/intel-gen4disasm
+bin/intel-gpu-overlay
+bin/intel_aubdump
+bin/intel_audio_dump
+bin/intel_backlight
+bin/intel_bios_dumper
+bin/intel_bios_reader
+bin/intel_display_crc
+bin/intel_display_poller
+bin/intel_dump_decode
+bin/intel_error_decode
+bin/intel_firmware_decode
+bin/intel_forcewaked
+bin/intel_framebuffer_dump
+bin/intel_gpu_abrt
+bin/intel_gpu_frequency
+bin/intel_gpu_time
+bin/intel_gpu_top
+bin/intel_gtt
+bin/intel_infoframes
+bin/intel_l3_parity
+bin/intel_lid
+bin/intel_opregion_decode
+bin/intel_panel_fitter
+bin/intel_perf_counters
+bin/intel_reg
+bin/intel_reg_checker
+bin/intel_sprite_on
+bin/intel_stepping
+bin/intel_watermark
+lib/intel_aubdump.la
+lib/pkgconfig/intel-gen4asm.pc
+libexec/intel-gpu-tools/benchmarks/gem_create
+libexec/intel-gpu-tools/benchmarks/gem_exec_ctx
+libexec/intel-gpu-tools/benchmarks/gem_exec_nop
+libexec/intel-gpu-tools/benchmarks/gem_exec_reloc
+libexec/intel-gpu-tools/benchmarks/gem_exec_trace
+libexec/intel-gpu-tools/benchmarks/gem_exec_tracer.la
+libexec/intel-gpu-tools/benchmarks/gem_mmap
+libexec/intel-gpu-tools/benchmarks/gem_prw
+libexec/intel-gpu-tools/benchmarks/gem_userptr_benchmark
+libexec/intel-gpu-tools/benchmarks/intel_upload_blit_large
+libexec/intel-gpu-tools/benchmarks/intel_upload_blit_large_gtt
+libexec/intel-gpu-tools/benchmarks/intel_upload_blit_large_map
+libexec/intel-gpu-tools/benchmarks/intel_upload_blit_small
+libexec/intel-gpu-tools/benchmarks/kms_vblank
+libexec/intel-gpu-tools/check_drm_clients
+libexec/intel-gpu-tools/core_get_client_auth
+libexec/intel-gpu-tools/core_getclient
+libexec/intel-gpu-tools/core_getstats
+libexec/intel-gpu-tools/core_getversion
+libexec/intel-gpu-tools/ddx_intel_after_fbdev
+libexec/intel-gpu-tools/debugfs_emon_crash
+libexec/intel-gpu-tools/debugfs_wedged
+libexec/intel-gpu-tools/drm_auth
+libexec/intel-gpu-tools/drm_import_export
+libexec/intel-gpu-tools/drm_lib.sh
+libexec/intel-gpu-tools/drm_read
+libexec/intel-gpu-tools/drm_vma_limiter
+libexec/intel-gpu-tools/drm_vma_limiter_cached
+libexec/intel-gpu-tools/drm_vma_limiter_cpu
+libexec/intel-gpu-tools/drm_vma_limiter_gtt
+libexec/intel-gpu-tools/drv_debugfs_reader
+libexec/intel-gpu-tools/drv_getparams_basic
+libexec/intel-gpu-tools/drv_hangman
+libexec/intel-gpu-tools/drv_missed_irq_hang
+libexec/intel-gpu-tools/drv_module_reload_basic
+libexec/intel-gpu-tools/drv_suspend
+libexec/intel-gpu-tools/gem_alive
+libexec/intel-gpu-tools/gem_bad_length
+libexec/intel-gpu-tools/gem_bad_reloc
+libexec/intel-gpu-tools/gem_basic
+libexec/intel-gpu-tools/gem_caching
+libexec/intel-gpu-tools/gem_close_race
+libexec/intel-gpu-tools/gem_concurrent_all
+libexec/intel-gpu-tools/gem_concurrent_blit
+libexec/intel-gpu-tools/gem_cpu_reloc
+libexec/intel-gpu-tools/gem_cs_prefetch
+libexec/intel-gpu-tools/gem_cs_tlb
+libexec/intel-gpu-tools/gem_ctx_bad_destroy
+libexec/intel-gpu-tools/gem_ctx_bad_exec
+libexec/intel-gpu-tools/gem_ctx_basic
+libexec/intel-gpu-tools/gem_ctx_create
+libexec/intel-gpu-tools/gem_ctx_exec
+libexec/intel-gpu-tools/gem_ctx_param_basic
+libexec/intel-gpu-tools/gem_ctx_thrash
+libexec/intel-gpu-tools/gem_double_irq_loop
+libexec/intel-gpu-tools/gem_dummy_reloc_loop
+libexec/intel-gpu-tools/gem_eio
+libexec/intel-gpu-tools/gem_evict_alignment
+libexec/intel-gpu-tools/gem_evict_everything
+libexec/intel-gpu-tools/gem_exec_alignment
+libexec/intel-gpu-tools/gem_exec_bad_domains
+libexec/intel-gpu-tools/gem_exec_big
+libexec/intel-gpu-tools/gem_exec_blt
+libexec/intel-gpu-tools/gem_exec_faulting_reloc
+libexec/intel-gpu-tools/gem_exec_lut_handle
+libexec/intel-gpu-tools/gem_exec_nop
+libexec/intel-gpu-tools/gem_exec_params
+libexec/intel-gpu-tools/gem_exec_parse
+libexec/intel-gpu-tools/gem_fd_exhaustion
+libexec/intel-gpu-tools/gem_fence_thrash
+libexec/intel-gpu-tools/gem_fence_upload
+libexec/intel-gpu-tools/gem_fenced_exec_thrash
+libexec/intel-gpu-tools/gem_flink_basic
+libexec/intel-gpu-tools/gem_flink_race
+libexec/intel-gpu-tools/gem_gpgpu_fill
+libexec/intel-gpu-tools/gem_gtt_cpu_tlb
+libexec/intel-gpu-tools/gem_gtt_hog
+libexec/intel-gpu-tools/gem_gtt_speed
+libexec/intel-gpu-tools/gem_hangcheck_forcewake
+libexec/intel-gpu-tools/gem_largeobject
+libexec/intel-gpu-tools/gem_linear_blits
+libexec/intel-gpu-tools/gem_lut_handle
+libexec/intel-gpu-tools/gem_madvise
+libexec/intel-gpu-tools/gem_media_fill
+libexec/intel-gpu-tools/gem_mmap
+libexec/intel-gpu-tools/gem_mmap_gtt
+libexec/intel-gpu-tools/gem_mmap_offset_exhaustion
+libexec/intel-gpu-tools/gem_mmap_wc
+libexec/intel-gpu-tools/gem_multi_bsd_sync_loop
+libexec/intel-gpu-tools/gem_partial_pwrite_pread
+libexec/intel-gpu-tools/gem_persistent_relocs
+libexec/intel-gpu-tools/gem_pin
+libexec/intel-gpu-tools/gem_pipe_control_store_loop
+libexec/intel-gpu-tools/gem_ppgtt
+libexec/intel-gpu-tools/gem_pread
+libexec/intel-gpu-tools/gem_pread_after_blit
+libexec/intel-gpu-tools/gem_pwrite
+libexec/intel-gpu-tools/gem_pwrite_pread
+libexec/intel-gpu-tools/gem_pwrite_snooped
+libexec/intel-gpu-tools/gem_read_read_speed
+libexec/intel-gpu-tools/gem_readwrite
+libexec/intel-gpu-tools/gem_reg_read
+libexec/intel-gpu-tools/gem_reloc_overflow
+libexec/intel-gpu-tools/gem_reloc_vs_gpu
+libexec/intel-gpu-tools/gem_render_copy
+libexec/intel-gpu-tools/gem_render_copy_redux
+libexec/intel-gpu-tools/gem_render_linear_blits
+libexec/intel-gpu-tools/gem_render_tiled_blits
+libexec/intel-gpu-tools/gem_reset_stats
+libexec/intel-gpu-tools/gem_ring_sync_copy
+libexec/intel-gpu-tools/gem_ring_sync_loop
+libexec/intel-gpu-tools/gem_ringfill
+libexec/intel-gpu-tools/gem_seqno_wrap
+libexec/intel-gpu-tools/gem_set_tiling_vs_blt
+libexec/intel-gpu-tools/gem_set_tiling_vs_gtt
+libexec/intel-gpu-tools/gem_set_tiling_vs_pwrite
+libexec/intel-gpu-tools/gem_storedw_batches_loop
+libexec/intel-gpu-tools/gem_storedw_loop
+libexec/intel-gpu-tools/gem_streaming_writes
+libexec/intel-gpu-tools/gem_stress
+libexec/intel-gpu-tools/gem_threaded_access_tiled
+libexec/intel-gpu-tools/gem_tiled_blits
+libexec/intel-gpu-tools/gem_tiled_fence_blits
+libexec/intel-gpu-tools/gem_tiled_partial_pwrite_pread
+libexec/intel-gpu-tools/gem_tiled_pread_basic
+libexec/intel-gpu-tools/gem_tiled_pread_pwrite
+libexec/intel-gpu-tools/gem_tiled_swapping
+libexec/intel-gpu-tools/gem_tiled_wb
+libexec/intel-gpu-tools/gem_tiled_wc
+libexec/intel-gpu-tools/gem_tiling_max_stride
+libexec/intel-gpu-tools/gem_unfence_active_buffers
+libexec/intel-gpu-tools/gem_unref_active_buffers
+libexec/intel-gpu-tools/gem_userptr_blits
+libexec/intel-gpu-tools/gem_wait
+libexec/intel-gpu-tools/gem_workarounds
+libexec/intel-gpu-tools/gem_write_read_ring_switch
+libexec/intel-gpu-tools/gen3_mixed_blits
+libexec/intel-gpu-tools/gen3_render_linear_blits
+libexec/intel-gpu-tools/gen3_render_mixed_blits
+libexec/intel-gpu-tools/gen3_render_tiledx_blits
+libexec/intel-gpu-tools/gen3_render_tiledy_blits
+libexec/intel-gpu-tools/gen7_forcewake_mt
+libexec/intel-gpu-tools/kms_3d
+libexec/intel-gpu-tools/kms_addfb_basic
+libexec/intel-gpu-tools/kms_crtc_background_color
+libexec/intel-gpu-tools/kms_cursor_crc
+libexec/intel-gpu-tools/kms_draw_crc
+libexec/intel-gpu-tools/kms_fbc_crc
+libexec/intel-gpu-tools/kms_fbcon_fbt
+libexec/intel-gpu-tools/kms_fence_pin_leak
+libexec/intel-gpu-tools/kms_flip
+libexec/intel-gpu-tools/kms_flip_event_leak
+libexec/intel-gpu-tools/kms_flip_tiling
+libexec/intel-gpu-tools/kms_force_connector
+libexec/intel-gpu-tools/kms_frontbuffer_tracking
+libexec/intel-gpu-tools/kms_legacy_colorkey
+libexec/intel-gpu-tools/kms_mmio_vs_cs_flip
+libexec/intel-gpu-tools/kms_panel_fitting
+libexec/intel-gpu-tools/kms_pipe_b_c_ivb
+libexec/intel-gpu-tools/kms_pipe_crc_basic
+libexec/intel-gpu-tools/kms_plane
+libexec/intel-gpu-tools/kms_plane_scaling
+libexec/intel-gpu-tools/kms_psr_sink_crc
+libexec/intel-gpu-tools/kms_pwrite_crc
+libexec/intel-gpu-tools/kms_render
+libexec/intel-gpu-tools/kms_rotation_crc
+libexec/intel-gpu-tools/kms_setmode
+libexec/intel-gpu-tools/kms_sink_crc_basic
+libexec/intel-gpu-tools/kms_sysfs_edid_timing
+libexec/intel-gpu-tools/kms_universal_plane
+libexec/intel-gpu-tools/kms_vblank
+libexec/intel-gpu-tools/pm_backlight
+libexec/intel-gpu-tools/pm_lpsp
+libexec/intel-gpu-tools/pm_rc6_residency
+libexec/intel-gpu-tools/pm_rpm
+libexec/intel-gpu-tools/pm_rps
+libexec/intel-gpu-tools/pm_sseu
+libexec/intel-gpu-tools/prime_nv_api
+libexec/intel-gpu-tools/prime_nv_pcopy
+libexec/intel-gpu-tools/prime_nv_test
+libexec/intel-gpu-tools/prime_self_import
+libexec/intel-gpu-tools/prime_udl
+libexec/intel-gpu-tools/sysfs_l3_parity
+libexec/intel-gpu-tools/template
+libexec/intel-gpu-tools/test_rte_check
+libexec/intel-gpu-tools/testdisplay
+libexec/intel-gpu-tools/tools_test
+man/man1/intel_aubdump.1
+man/man1/intel_audio_dump.1
+man/man1/intel_bios_dumper.1
+man/man1/intel_bios_reader.1
+man/man1/intel_error_decode.1
+man/man1/intel_gpu_frequency.1
+man/man1/intel_gpu_top.1
+man/man1/intel_gtt.1
+man/man1/intel_infoframes.1
+man/man1/intel_lid.1
+man/man1/intel_panel_fitter.1
+man/man1/intel_stepping.1
+man/man1/intel_upload_blit_large.1
+man/man1/intel_upload_blit_large_gtt.1
+man/man1/intel_upload_blit_large_map.1
+man/man1/intel_upload_blit_small.1
+share/gtk-doc/html/intel-gpu-tools/annotation-glossary.html
+share/gtk-doc/html/intel-gpu-tools/ch01.html
+share/gtk-doc/html/intel-gpu-tools/deprecated-api-index.html
+share/gtk-doc/html/intel-gpu-tools/full-api-index.html
+share/gtk-doc/html/intel-gpu-tools/home.png
+share/gtk-doc/html/intel-gpu-tools/igt-core-tests.html
+share/gtk-doc/html/intel-gpu-tools/igt-debugfs-tests.html
+share/gtk-doc/html/intel-gpu-tools/igt-drm-tests.html
+share/gtk-doc/html/intel-gpu-tools/igt-drv-tests.html
+share/gtk-doc/html/intel-gpu-tools/igt-gem-tests.html
+share/gtk-doc/html/intel-gpu-tools/igt-gen3-tests.html
+share/gtk-doc/html/intel-gpu-tools/igt-kms-tests.html
+share/gtk-doc/html/intel-gpu-tools/igt-pm-tests.html
+share/gtk-doc/html/intel-gpu-tools/igt-prime-tests.html
+share/gtk-doc/html/intel-gpu-tools/igt-sysfs-tests.html
+share/gtk-doc/html/intel-gpu-tools/igt-test-programs-common-features.html
+share/gtk-doc/html/intel-gpu-tools/index.html
+share/gtk-doc/html/intel-gpu-tools/index.sgml
+share/gtk-doc/html/intel-gpu-tools/intel-gpu-tools-Batch-Buffer.html
+share/gtk-doc/html/intel-gpu-tools/intel-gpu-tools-Chipset.html
+share/gtk-doc/html/intel-gpu-tools/intel-gpu-tools-Core.html
+share/gtk-doc/html/intel-gpu-tools/intel-gpu-tools-Draw.html
+share/gtk-doc/html/intel-gpu-tools/intel-gpu-tools-Framebuffer.html
+share/gtk-doc/html/intel-gpu-tools/intel-gpu-tools-GT.html
+share/gtk-doc/html/intel-gpu-tools/intel-gpu-tools-IO.html
+share/gtk-doc/html/intel-gpu-tools/intel-gpu-tools-KMS.html
+share/gtk-doc/html/intel-gpu-tools/intel-gpu-tools-Stats.html
+share/gtk-doc/html/intel-gpu-tools/intel-gpu-tools-aux.html
+share/gtk-doc/html/intel-gpu-tools/intel-gpu-tools-debugfs.html
+share/gtk-doc/html/intel-gpu-tools/intel-gpu-tools-drmtest.html
+share/gtk-doc/html/intel-gpu-tools/intel-gpu-tools-ioctl-wrappers.html
+share/gtk-doc/html/intel-gpu-tools/intel-gpu-tools.devhelp2
+share/gtk-doc/html/intel-gpu-tools/left-insensitive.png
+share/gtk-doc/html/intel-gpu-tools/left.png
+share/gtk-doc/html/intel-gpu-tools/right-insensitive.png
+share/gtk-doc/html/intel-gpu-tools/right.png
+share/gtk-doc/html/intel-gpu-tools/style.css
+share/gtk-doc/html/intel-gpu-tools/test-programs.html
+share/gtk-doc/html/intel-gpu-tools/up-insensitive.png
+share/gtk-doc/html/intel-gpu-tools/up.png
+share/intel-gpu-tools/1080p-left.png
+share/intel-gpu-tools/1080p-right.png
+share/intel-gpu-tools/pass.png
+share/intel-gpu-tools/registers/audio_config_haswell_plus.txt
+share/intel-gpu-tools/registers/audio_debug_haswell_plus.txt
+share/intel-gpu-tools/registers/broadwell
+share/intel-gpu-tools/registers/cherryview
+share/intel-gpu-tools/registers/chv_display_base.txt
+share/intel-gpu-tools/registers/chv_dpio_phy_x1.txt
+share/intel-gpu-tools/registers/chv_dpio_phy_x2.txt
+share/intel-gpu-tools/registers/chv_pipe_c.txt
+share/intel-gpu-tools/registers/common_display.txt
+share/intel-gpu-tools/registers/gen6_other.txt
+share/intel-gpu-tools/registers/gen7_other.txt
+share/intel-gpu-tools/registers/gen8_interrupt.txt
+share/intel-gpu-tools/registers/gen8_other.txt
+share/intel-gpu-tools/registers/haswell
+share/intel-gpu-tools/registers/haswell_other.txt
+share/intel-gpu-tools/registers/ivybridge
+share/intel-gpu-tools/registers/sandybridge
+share/intel-gpu-tools/registers/skl_display.txt
+share/intel-gpu-tools/registers/skl_powerwells.txt
+share/intel-gpu-tools/registers/skylake
+share/intel-gpu-tools/registers/valleyview
+share/intel-gpu-tools/registers/vlv_display_base.txt
+share/intel-gpu-tools/registers/vlv_dpio_phy.txt
+share/intel-gpu-tools/registers/vlv_dsi.txt
+share/intel-gpu-tools/registers/vlv_flisdsi.txt
+share/intel-gpu-tools/registers/vlv_pipe_a.txt
+share/intel-gpu-tools/registers/vlv_pipe_b.txt
+share/intel-gpu-tools/test-list.txt
diff --git a/intel-gpu-tools/TODO b/intel-gpu-tools/TODO
new file mode 100644
index 0000000..14d341a
--- /dev/null
+++ b/intel-gpu-tools/TODO
@@ -0,0 +1 @@
+builds, but some of the linux specific things are stubbed or ifdef'd out
diff --git a/intel-gpu-tools/distinfo b/intel-gpu-tools/distinfo
new file mode 100644
index 0000000..66f5723
--- /dev/null
+++ b/intel-gpu-tools/distinfo
@@ -0,0 +1,12 @@
+$NetBSD$
+
+SHA1 (intel-gpu-tools-1.12.tar.bz2) = ac705e8538771a215a1f20774b760828b89ffc66
+RMD160 (intel-gpu-tools-1.12.tar.bz2) = f06c01ab501b5e523a082d9dce040b86fd8a9bf0
+Size (intel-gpu-tools-1.12.tar.bz2) = 1621343 bytes
+SHA1 (patch-benchmarks_gem__exec__tracer.c) = da03d66971943cea4ac470976a16716a16d2dd85
+SHA1 (patch-lib_igt__core.c) = 19e2600f84276fda2c109768d5d3eaa41e66a171
+SHA1 (patch-lib_igt__kms.c) = fc6612fc5252e5a8c72603fb43aa0dbc3db6798d
+SHA1 (patch-lib_intel__os.c) = 474891b2bcf8cf1287d378433a00a7055d17abdd
+SHA1 (patch-overlay_perf.h) = 60b0b54ab417d6c18f9ebb9d076911a35bfcf87a
+SHA1 (patch-tests_pm__rpm.c) = 5bf562558bd9e32da29b759a15113b9d445010d3
+SHA1 (patch-tools_aubdump.c) = 1a6465b37c46a9e3a32eac3c577820ca67e47959
diff --git a/intel-gpu-tools/patches/patch-benchmarks_gem__exec__tracer.c b/intel-gpu-tools/patches/patch-benchmarks_gem__exec__tracer.c
new file mode 100644
index 0000000..8986be7
--- /dev/null
+++ b/intel-gpu-tools/patches/patch-benchmarks_gem__exec__tracer.c
@@ -0,0 +1,22 @@
+$NetBSD$
+
+--- benchmarks/gem_exec_tracer.c.orig 2015-08-17 16:38:30.000000000 +0000
++++ benchmarks/gem_exec_tracer.c
+@@ -214,6 +214,17 @@ ioctl(int fd, unsigned long request, ...
+ if (ret)
+ return ret;
+
++#ifndef _IOC_TYPE
++/*
++ * this is from Linux but I suppose NetBSD drm uses the same ioctl encoding?
++ */
++#define _IOC_TYPEBITS 8
++#define _IOC_NRBITS 8
++#define _IOC_NRSHIFT 0
++#define _IOC_TYPESHIFT (_IOC_NRSHIFT+_IOC_NRBITS)
++#define _IOC_TYPEMASK ((1 << _IOC_TYPEBITS)-1)
++#define _IOC_TYPE(nr) (((nr) >> _IOC_TYPESHIFT) & _IOC_TYPEMASK)
++#endif
+ if (_IOC_TYPE(request) != DRM_IOCTL_BASE)
+ return 0;
+
diff --git a/intel-gpu-tools/patches/patch-lib_igt__core.c b/intel-gpu-tools/patches/patch-lib_igt__core.c
new file mode 100644
index 0000000..9d41ae1
--- /dev/null
+++ b/intel-gpu-tools/patches/patch-lib_igt__core.c
@@ -0,0 +1,15 @@
+$NetBSD$
+
+--- lib/igt_core.c.orig 2015-09-08 15:15:16.000000000 +0000
++++ lib/igt_core.c
+@@ -1483,8 +1483,10 @@ static void fatal_sig_handler(int sig)
+ pthread_t tid = pthread_self();
+ union sigval value = { .sival_ptr = NULL };
+
++#ifndef __NetBSD__ /* XXX */
+ pthread_sigqueue(tid, sig, value);
+ #endif
++#endif
+ }
+ }
+
diff --git a/intel-gpu-tools/patches/patch-lib_igt__kms.c b/intel-gpu-tools/patches/patch-lib_igt__kms.c
new file mode 100644
index 0000000..6da9616
--- /dev/null
+++ b/intel-gpu-tools/patches/patch-lib_igt__kms.c
@@ -0,0 +1,25 @@
+$NetBSD$
+
+--- lib/igt_kms.c.orig 2015-09-11 14:42:51.000000000 +0000
++++ lib/igt_kms.c
+@@ -40,6 +40,9 @@
+ #endif
+ #include <errno.h>
+ #include <time.h>
++#ifdef __NetBSD__
++#include <dev/wscons/wsdisplay_usl_io.h>
++#endif
+
+ #include <i915_drm.h>
+
+@@ -311,8 +314,10 @@ static signed long set_vt_mode(unsigned
+ return -errno;
+
+ prev_mode = 0;
++#ifndef __NetBSD__
+ if (drmIoctl(fd, KDGETMODE, &prev_mode))
+ goto err;
++#endif
+ if (drmIoctl(fd, KDSETMODE, (void *)mode))
+ goto err;
+
diff --git a/intel-gpu-tools/patches/patch-lib_intel__os.c b/intel-gpu-tools/patches/patch-lib_intel__os.c
new file mode 100644
index 0000000..a5977ab
--- /dev/null
+++ b/intel-gpu-tools/patches/patch-lib_intel__os.c
@@ -0,0 +1,28 @@
+$NetBSD$
+
+--- lib/intel_os.c.orig 2015-08-17 16:40:03.000000000 +0000
++++ lib/intel_os.c
+@@ -112,6 +112,13 @@ intel_get_avail_ram_mb(void)
+
+ retval = sysinf.freeram;
+ retval *= sysinf.mem_unit;
++#elif defined(_SC_PAGESIZE) && defined(_SC_PHYS_PAGES) /* NetBSD */
++ long pagesize, npages;
++
++ pagesize = sysconf(_SC_PAGESIZE);
++ npages = sysconf(_SC_PHYS_PAGES);
++
++ retval = (uint64_t) pagesize * npages;
+ #elif defined(_SC_PAGESIZE) && defined(_SC_AVPHYS_PAGES) /* Solaris */
+ long pagesize, npages;
+
+@@ -146,6 +153,9 @@ intel_get_total_swap_mb(void)
+
+ retval = sysinf.freeswap;
+ retval *= sysinf.mem_unit;
++#elif defined(__NetBSD__)
++#warning fixme
++ return 0;
+ #elif defined(HAVE_SWAPCTL) /* Solaris */
+ long pagesize = sysconf(_SC_PAGESIZE);
+ uint64_t totalpages = 0;
diff --git a/intel-gpu-tools/patches/patch-overlay_perf.h b/intel-gpu-tools/patches/patch-overlay_perf.h
new file mode 100644
index 0000000..1f2ea9b
--- /dev/null
+++ b/intel-gpu-tools/patches/patch-overlay_perf.h
@@ -0,0 +1,44 @@
+$NetBSD$
+
+--- overlay/perf.h.orig 2015-08-06 15:22:11.000000000 +0000
++++ overlay/perf.h
+@@ -1,7 +1,39 @@
+ #ifndef I915_PERF_H
+ #define I915_PERF_H
+
++#ifdef __linux__
+ #include <linux/perf_event.h>
++#else
++/* stubs to make it compile */
++#define PERF_TYPE_TRACEPOINT 0
++#define PERF_FORMAT_ID 0
++#define PERF_RECORD_SAMPLE 0
++#define PERF_SAMPLE_RAW 0
++#define PERF_SAMPLE_TID 0
++#define PERF_SAMPLE_TIME 0
++#define PERF_SAMPLE_STREAM_ID 0
++#define PERF_FORMAT_GROUP 0
++#define PERF_EVENT_IOC_SET_OUTPUT 0
++#define PERF_FORMAT_TOTAL_TIME_ENABLED 0
++struct perf_event_attr {
++uint32_t type;
++uint32_t size;
++uint64_t config;
++uint64_t read_format;
++uint64_t sample_type;
++uint64_t sample_period;
++uint8_t exclude_guest;
++};
++struct perf_event_header {
++uint32_t type;
++uint16_t misc;
++uint16_t size;
++};
++struct perf_event_mmap_page {
++uint64_t data_head;
++uint64_t data_tail;
++};
++#endif
+
+ #define I915_SAMPLE_BUSY 0
+ #define I915_SAMPLE_WAIT 1
diff --git a/intel-gpu-tools/patches/patch-tests_pm__rpm.c b/intel-gpu-tools/patches/patch-tests_pm__rpm.c
new file mode 100644
index 0000000..81d099f
--- /dev/null
+++ b/intel-gpu-tools/patches/patch-tests_pm__rpm.c
@@ -0,0 +1,35 @@
+$NetBSD$
+
+--- tests/pm_rpm.c.orig 2015-09-11 14:42:51.000000000 +0000
++++ tests/pm_rpm.c
+@@ -38,8 +38,12 @@
+ #include <sys/mman.h>
+ #include <sys/types.h>
+ #include <sys/stat.h>
++#ifdef __NetBSD__
++#include <dev/i2c/i2c_io.h>
++#else
+ #include <linux/i2c.h>
+ #include <linux/i2c-dev.h>
++#endif
+
+ #include <drm.h>
+
+@@ -560,6 +564,7 @@ static bool i2c_edid_is_valid(int fd)
+ {
+ int rc;
+ unsigned char edid[128] = {};
++#ifdef __linux__
+ struct i2c_msg msgs[] = {
+ { /* Start at 0. */
+ .addr = 0x50,
+@@ -580,6 +585,9 @@ static bool i2c_edid_is_valid(int fd)
+
+ rc = ioctl(fd, I2C_RDWR, &msgset);
+ return (rc >= 0) ? edid_is_valid(edid) : false;
++#else
++ return false;
++#endif
+ }
+
+ static int count_i2c_valid_edids(void)
diff --git a/intel-gpu-tools/patches/patch-tools_aubdump.c b/intel-gpu-tools/patches/patch-tools_aubdump.c
new file mode 100644
index 0000000..684c0f8
--- /dev/null
+++ b/intel-gpu-tools/patches/patch-tools_aubdump.c
@@ -0,0 +1,22 @@
+$NetBSD$
+
+--- tools/aubdump.c.orig 2015-09-08 17:01:19.000000000 +0000
++++ tools/aubdump.c
+@@ -418,6 +418,17 @@ ioctl(int fd, unsigned long request, ...
+ argp = va_arg(args, void *);
+ va_end(args);
+
++#ifndef _IOC_TYPE
++/*
++ * this is from Linux but I suppose NetBSD drm uses the same ioctl encoding?
++ */
++#define _IOC_TYPEBITS 8
++#define _IOC_NRBITS 8
++#define _IOC_NRSHIFT 0
++#define _IOC_TYPESHIFT (_IOC_NRSHIFT+_IOC_NRBITS)
++#define _IOC_TYPEMASK ((1 << _IOC_TYPEBITS)-1)
++#define _IOC_TYPE(nr) (((nr) >> _IOC_TYPESHIFT) & _IOC_TYPEMASK)
++#endif
+ if (_IOC_TYPE(request) == DRM_IOCTL_BASE &&
+ drm_fd != fd && fstat(fd, &buf) == 0 &&
+ (buf.st_mode & S_IFMT) == S_IFCHR && major(buf.st_rdev) == DRM_MAJOR) {
Home |
Main Index |
Thread Index |
Old Index