9 Commits

4 changed files with 107 additions and 4 deletions

View File

@@ -0,0 +1,20 @@
--- intel-gpu-tools-1.10/lib/intel_batchbuffer.c.orig 2015-03-25 00:26:50.835000000 +0100
+++ intel-gpu-tools-1.10/lib/intel_batchbuffer.c 2015-03-25 00:27:28.233000000 +0100
@@ -548,7 +548,7 @@
memset(obj, 0, sizeof(*obj));
obj->handle = gem_handle;
obj->relocation_count = count;
- obj->relocs_ptr = (uint64_t)relocs;
+ obj->relocs_ptr = (uintptr_t)relocs;
}
static void exec_blit(int fd,
@@ -557,7 +557,7 @@
{
struct drm_i915_gem_execbuffer2 exec;
- exec.buffers_ptr = (uint64_t)objs;
+ exec.buffers_ptr = (uintptr_t)objs;
exec.buffer_count = count;
exec.batch_start_offset = 0;
exec.batch_len = batch_len * 4;

View File

@@ -0,0 +1,11 @@
--- intel-gpu-tools-1.3/lib/drmtest.h.orig 2013-04-11 14:26:55.685097783 +0200
+++ intel-gpu-tools-1.3/lib/drmtest.h 2013-04-11 14:27:03.004028824 +0200
@@ -31,7 +31,7 @@
#include <assert.h>
#include <errno.h>
#include <stdbool.h>
-#include <cairo.h>
+#include <cairo/cairo.h>
#include "xf86drm.h"
#include "xf86drmMode.h"

View File

@@ -0,0 +1,14 @@
Specify the encoding, in case it's not the same as the locale.
diff -x config.log -x config.status -ru tmp/intel-gpu-tools-1.7/debugger/system_routine/pre_cpp.py work/intel-gpu-tools-1.7/debugger/system_routine/pre_cpp.py
--- tmp/intel-gpu-tools-1.7/debugger/system_routine/pre_cpp.py 2014-05-13 13:31:22.000000000 +0100
+++ work/intel-gpu-tools-1.7/debugger/system_routine/pre_cpp.py 2014-06-30 23:16:12.743000000 +0100
@@ -33,7 +33,7 @@
import sys,re
-file = open(sys.argv[1], "r")
+file = open(sys.argv[1], "r", encoding="UTF-8")
lines = file.readlines()
len(lines)

View File

@@ -1,5 +1,5 @@
Name: intel-gpu-tools
Version: 1.1
Version: 1.19
Release: 1mamba
Summary: A collection of tools for development and testing of the Intel DRM driver
Group: System/X11
@@ -8,6 +8,9 @@ Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://x.org
Source: ftp://x.org/pub/individual/app/intel-gpu-tools-%{version}.tar.bz2
Patch0: intel-gpu-tools-1.3-libcairo.patch
Patch1: intel-gpu-tools-1.7-unicode.patch
Patch2: intel-gpu-tools-1.10-fix-32bit-pointer-to-int-cast.patch
License: MIT
BuildRoot: %{_tmppath}/%{name}-%{version}-root
## AUTOBUILDREQ-BEGIN
@@ -18,6 +21,7 @@ BuildRequires: libpciaccess-devel
BuildRequires: xorg-server-devel >= 1.1.0
BuildRequires: xorg-proto-devel >= %{xorg_ver}
BuildRequires: xbitmaps-devel >= 1.0.1
BuildRequires: python3-devel
%description
This is a collection of tools for development and testing of the Intel DRM driver.
@@ -28,7 +32,10 @@ There are many macro-level test suites that get used against our driver, includi
%build
%configure
%make
# PYTHON_CPPFLAGS="`pkg-config --cflags python3`"
%make -j1
%install
%makeinstall
@@ -38,11 +45,62 @@ There are many macro-level test suites that get used against our driver, includi
%files
%defattr(-,root,root)
%{_bindir}/forcewaked
#%{_bindir}/chipset.py
# %ifnarch %{ix86}
#%{_bindir}/eudb
%{_bindir}/intel-gen4asm
%{_bindir}/intel-gen4disasm
%{_bindir}/intel-gpu-overlay
#% endif
#%{_bindir}/gem_userptr_benchmark
%{_bindir}/igt_stats
%{_bindir}/intel_*
%{_mandir}/man1/intel_*.1.gz
#%{_bindir}/quick_dump.py
#%{_bindir}/reg_access.py
#%{_libdir}/I915ChipsetPython.la
#%{_libdir}/I915ChipsetPython.so
%{_libdir}/intel_aubdump.la
%{_libdir}/intel_aubdump.so
%dir %{_libexecdir}/intel-gpu-tools
%{_libexecdir}/intel-gpu-tools/*
%dir %{_datadir}/intel-gpu-tools
%{_datadir}/intel-gpu-tools/*
#%ifnarch %{ix86}
%{_libdir}/pkgconfig/intel-gen4asm.pc
#%endif
%dir %{_datadir}/gtk-doc/html/intel-gpu-tools/
%{_datadir}/gtk-doc/html/intel-gpu-tools/*
%{_mandir}/man1/intel_*.1*
%changelog
* Sat Sep 02 2017 Silvan Calarco <silvan.calarco@mambasoft.it> 1.19-1mamba
- update to 1.19
- rebuilt for i586 to provide intel-gen4asm*
* Sat Oct 29 2016 Automatic Build System <autodist@mambasoft.it> 1.16-1mamba
- automatic version update by autodist
* Thu Jun 02 2016 Automatic Build System <autodist@mambasoft.it> 1.15-1mamba
- automatic version update by autodist
* Thu Mar 10 2016 Automatic Build System <autodist@mambasoft.it> 1.14-1mamba
- automatic version update by autodist
* Thu Dec 03 2015 Automatic Build System <autodist@mambasoft.it> 1.13-1mamba
- automatic version update by autodist
* Sun Sep 13 2015 Automatic Build System <autodist@mambasoft.it> 1.12-1mamba
- automatic version update by autodist
* Fri Mar 13 2015 Automatic Build System <autodist@mambasoft.it> 1.10-1mamba
- automatic version update by autodist
* Sat Dec 27 2014 Automatic Build System <autodist@mambasoft.it> 1.9-1mamba
- automatic version update by autodist
* Thu Sep 18 2014 Automatic Build System <autodist@mambasoft.it> 1.8-1mamba
- automatic version update by autodist
* Mon Jan 09 2012 Automatic Build System <autodist@mambasoft.it> 1.1-1mamba
- automatic version update by autodist