diff options
author | kwm <kwm@FreeBSD.org> | 2016-09-02 02:53:53 +0800 |
---|---|---|
committer | kwm <kwm@FreeBSD.org> | 2016-09-02 02:53:53 +0800 |
commit | 20056748af9fc21ce98372390f8a21c81a4ecbbb (patch) | |
tree | 8558be94bbe9f15639d0533641e85efb0e646b5a /lang | |
parent | abe12379ce80d6c4bbfb4b82f32444d58e9a6e5a (diff) | |
download | freebsd-ports-gnome-20056748af9fc21ce98372390f8a21c81a4ecbbb.tar.gz freebsd-ports-gnome-20056748af9fc21ce98372390f8a21c81a4ecbbb.tar.zst freebsd-ports-gnome-20056748af9fc21ce98372390f8a21c81a4ecbbb.zip |
Update beignet to 1.2.0.
Diffstat (limited to 'lang')
-rw-r--r-- | lang/beignet/Makefile | 4 | ||||
-rw-r--r-- | lang/beignet/distinfo | 6 | ||||
-rw-r--r-- | lang/beignet/files/patch-backend_src_backend_gen-insn-selection.cpp | 9 | ||||
-rw-r--r-- | lang/beignet/files/patch-src_cl__api.c | 11 | ||||
-rw-r--r-- | lang/beignet/files/patch-src_cl__device__id.c | 26 | ||||
-rw-r--r-- | lang/beignet/files/patch-src_cl__event.c | 15 | ||||
-rw-r--r-- | lang/beignet/files/patch-src_cl__program.c | 22 | ||||
-rw-r--r-- | lang/beignet/pkg-plist | 1 |
8 files changed, 21 insertions, 73 deletions
diff --git a/lang/beignet/Makefile b/lang/beignet/Makefile index e07feeaa9010..3c2391e9618a 100644 --- a/lang/beignet/Makefile +++ b/lang/beignet/Makefile @@ -2,7 +2,7 @@ # $FreeBSD$ PORTNAME= beignet -PORTVERSION= 1.1.2 +PORTVERSION= 1.2.0 CATEGORIES= lang MASTER_SITES= https://01.org/sites/default/files/ DISTVERSIONSUFFIX= -source @@ -19,7 +19,7 @@ RUN_DEPENDS= opencl>=0:devel/opencl \ WRKSRC= ${WRKDIR}/Beignet-${PORTVERSION}-Source -USES= cmake gmake pkgconfig shebangfix +USES= cmake gmake ncurses pkgconfig shebangfix USE_XORG= sm ice x11 xext xfixes USE_GL= gl SHEBANG_FILES= src/git_sha1.sh backend/kernels/compile.sh diff --git a/lang/beignet/distinfo b/lang/beignet/distinfo index 77b911a76edc..e276e32dc3a3 100644 --- a/lang/beignet/distinfo +++ b/lang/beignet/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1463781667 -SHA256 (beignet-1.1.2-source.tar.gz) = 6a8d875afbb5e3c4fc57da1ea80f79abadd9136bfd87ab1f83c02784659f1d96 -SIZE (beignet-1.1.2-source.tar.gz) = 948241 +TIMESTAMP = 1472595672 +SHA256 (beignet-1.2.0-source.tar.gz) = fc7af19efb7596b04510d26c558a576eba3e95e1ef86fd6951213c6a4bf58bff +SIZE (beignet-1.2.0-source.tar.gz) = 1076674 diff --git a/lang/beignet/files/patch-backend_src_backend_gen-insn-selection.cpp b/lang/beignet/files/patch-backend_src_backend_gen-insn-selection.cpp index b18188b286ac..36f9ffaf5720 100644 --- a/lang/beignet/files/patch-backend_src_backend_gen-insn-selection.cpp +++ b/lang/beignet/files/patch-backend_src_backend_gen-insn-selection.cpp @@ -1,15 +1,6 @@ Error: No word lists can be found for the language "en_US". --- backend/src/backend/gen_insn_selection.cpp.orig 2015-12-18 07:34:19.000000000 +0000 +++ backend/src/backend/gen_insn_selection.cpp 2016-06-13 17:37:52.540024000 +0000 -@@ -1153,7 +1153,7 @@ - SelectionInstruction *insn = this->appendInsn(SEL_OP_JMPI, 0, 1); - insn->src(0) = src; - insn->index = index.value(); -- insn->extra.longjmp = abs(index - origin) > 800; -+ insn->extra.longjmp = index.value() > origin.value() ? (index - origin) > 800 : (origin - index) > 800; - return insn->extra.longjmp ? 2 : 1; - } - @@ -1752,11 +1752,11 @@ // Boiler plate to initialize the selection library at c++ pre-main diff --git a/lang/beignet/files/patch-src_cl__api.c b/lang/beignet/files/patch-src_cl__api.c deleted file mode 100644 index 7a416d00e726..000000000000 --- a/lang/beignet/files/patch-src_cl__api.c +++ /dev/null @@ -1,11 +0,0 @@ ---- src/cl_api.c.orig 2015-02-03 14:58:29.071589000 +0100 -+++ src/cl_api.c 2015-02-03 14:58:39.124158000 +0100 -@@ -64,7 +64,7 @@ - return RET; \ - } while(0) - --inline cl_int -+static inline cl_int - handle_events(cl_command_queue queue, cl_int num, const cl_event *wait_list, - cl_event* event, enqueue_data* data, cl_command_type type) - { diff --git a/lang/beignet/files/patch-src_cl__device__id.c b/lang/beignet/files/patch-src_cl__device__id.c index 2b3729d1dd90..adf02cd48d48 100644 --- a/lang/beignet/files/patch-src_cl__device__id.c +++ b/lang/beignet/files/patch-src_cl__device__id.c @@ -1,8 +1,6 @@ -diff --git a/src/cl_device_id.c b/src/cl_device_id.c -index e9e2c16..5f35248 100644 ---- src/cl_device_id.c -+++ src/cl_device_id.c -@@ -34,7 +34,12 @@ +--- src/cl_device_id.c.orig 2016-08-23 12:16:02.000000000 +0200 ++++ src/cl_device_id.c 2016-08-31 17:50:49.806646000 +0200 +@@ -35,7 +35,12 @@ #include <stdio.h> #include <string.h> #include <stdlib.h> @@ -15,7 +13,7 @@ index e9e2c16..5f35248 100644 #ifndef CL_VERSION_1_2 #define CL_DEVICE_BUILT_IN_KERNELS 0x103F -@@ -202,6 +207,7 @@ LOCAL cl_device_id +@@ -269,6 +274,7 @@ LOCAL cl_device_id cl_get_gt_device(void) { cl_device_id ret = NULL; @@ -23,7 +21,7 @@ index e9e2c16..5f35248 100644 const int device_id = cl_driver_get_device_id(); cl_device_id device = NULL; -@@ -526,7 +532,7 @@ skl_gt4_break: +@@ -737,7 +743,7 @@ kbl_gt4_break: case PCI_CHIP_SANDYBRIDGE_M_GT2_PLUS: case PCI_CHIP_SANDYBRIDGE_BRIDGE_S: case PCI_CHIP_SANDYBRIDGE_S_GT: @@ -32,17 +30,17 @@ index e9e2c16..5f35248 100644 ret = NULL; break; default: -@@ -546,6 +552,7 @@ skl_gt4_break: +@@ -757,6 +763,7 @@ kbl_gt4_break: /* Apply any driver-dependent updates to the device info */ cl_driver_update_device_info(ret); +#if defined(__linux__) - struct sysinfo info; - if (sysinfo(&info) == 0) { - uint64_t two_gb = 2 * 1024 * 1024 * 1024ul; -@@ -554,6 +561,24 @@ skl_gt4_break: - two_gb : info.totalram; - ret->max_mem_alloc_size = ret->global_mem_size / 2; + #define toMB(size) (size)&(0xfffffffffffffff<<20) + /* Get the global_mem_size and max_mem_alloc size from + * driver, system ram and hardware*/ +@@ -776,6 +783,24 @@ kbl_gt4_break: + ret->max_mem_alloc_size = toMB((ret->global_mem_size * 3 / 4 > maxallocmem) ? + maxallocmem: ret->global_mem_size * 3 / 4); } +#elif defined(__FreeBSD__) || defined(__DragonFly__) + int mib[2]; diff --git a/lang/beignet/files/patch-src_cl__event.c b/lang/beignet/files/patch-src_cl__event.c index 72605cdf6b18..88c6dfebd0ff 100644 --- a/lang/beignet/files/patch-src_cl__event.c +++ b/lang/beignet/files/patch-src_cl__event.c @@ -1,5 +1,5 @@ ---- src/cl_event.c.orig 2015-12-18 07:57:09.000000000 +0100 -+++ src/cl_event.c 2016-05-21 00:04:34.412251000 +0200 +--- src/cl_event.c.orig 2016-08-23 12:16:02.000000000 +0200 ++++ src/cl_event.c 2016-08-31 17:43:49.430217000 +0200 @@ -27,6 +27,7 @@ #include <assert.h> @@ -8,16 +8,7 @@ void cl_event_update_last_events(cl_command_queue queue, int wait) { -@@ -55,7 +56,7 @@ void cl_event_insert_last_events(cl_comm - else set_last_event(queue,event); - } - --inline cl_bool -+static inline cl_bool - cl_event_is_gpu_command_type(cl_command_type type) - { - switch(type) { -@@ -649,7 +650,7 @@ cl_ulong cl_event_get_cpu_timestamp(cl_u +@@ -657,7 +658,7 @@ cl_ulong cl_event_get_cpu_timestamp(cl_u { struct timespec ts; diff --git a/lang/beignet/files/patch-src_cl__program.c b/lang/beignet/files/patch-src_cl__program.c deleted file mode 100644 index b4e4fde2d1dc..000000000000 --- a/lang/beignet/files/patch-src_cl__program.c +++ /dev/null @@ -1,22 +0,0 @@ ---- src/cl_program.c.orig 2015-02-03 14:59:12.541061000 +0100 -+++ src/cl_program.c 2015-02-03 15:00:05.989743000 +0100 -@@ -166,7 +166,8 @@ - return err; - } - --inline cl_bool isBitcodeWrapper(const unsigned char *BufPtr, const unsigned char *BufEnd) -+static inline cl_bool -+isBitcodeWrapper(const unsigned char *BufPtr, const unsigned char *BufEnd) - { - // See if you can find the hidden message in the magic bytes :-). - // (Hint: it's a little-endian encoding.) -@@ -177,7 +178,8 @@ - BufPtr[3] == 0x0B; - } - --inline cl_bool isRawBitcode(const unsigned char *BufPtr, const unsigned char *BufEnd) -+static inline cl_bool -+isRawBitcode(const unsigned char *BufPtr, const unsigned char *BufEnd) - { - // These bytes sort of have a hidden message, but it's not in - // little-endian this time, and it's a little redundant. diff --git a/lang/beignet/pkg-plist b/lang/beignet/pkg-plist index 8ac22f9dcd38..0025c47f8f47 100644 --- a/lang/beignet/pkg-plist +++ b/lang/beignet/pkg-plist @@ -22,6 +22,7 @@ lib/beignet/include/ocl_simd.h lib/beignet/include/ocl_sync.h lib/beignet/include/ocl_types.h lib/beignet/include/ocl_vload.h +lib/beignet/include/ocl_work_group.h lib/beignet/include/ocl_workitem.h lib/beignet/libcl.so lib/beignet/libgbe.so |