FreeBSD Bugzilla – Attachment 180620 Details for
Bug 217635
lang/beignet: crash in get_program_global_data() after 1.3.0 update
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
workaround
beignet.ocl12.diff (text/plain), 1.44 KB, created by
Jan Beich
on 2017-03-08 08:38:40 UTC
(
hide
)
Description:
workaround
Filename:
MIME Type:
Creator:
Jan Beich
Created:
2017-03-08 08:38:40 UTC
Size:
1.44 KB
patch
obsolete
>Index: lang/beignet/Makefile >=================================================================== >--- lang/beignet/Makefile (revision 435658) >+++ lang/beignet/Makefile (working copy) >@@ -3,6 +3,7 @@ > > PORTNAME= beignet > PORTVERSION= 1.3.0 >+PORTREVISION= 1 > CATEGORIES= lang > MASTER_SITES= https://01.org/sites/default/files/ > DISTVERSIONSUFFIX= -source >Index: lang/beignet/files/patch-src_cl__program.c >=================================================================== >--- lang/beignet/files/patch-src_cl__program.c (nonexistent) >+++ lang/beignet/files/patch-src_cl__program.c (working copy) >@@ -0,0 +1,22 @@ >+--- src/cl_program.c.orig 2017-01-20 10:40:51 UTC >++++ src/cl_program.c >+@@ -674,7 +674,8 @@ cl_program_build(cl_program p, const cha >+ memcpy(p->bin + copyed, interp_kernel_get_code(opaque), sz); >+ copyed += sz; >+ } >+- if ((err = get_program_global_data(p)) != CL_SUCCESS) >++ uint32_t ocl_version = interp_kernel_get_ocl_version(interp_program_get_kernel(p->opaque, 0)); >++ if (ocl_version >= 200 && (err = get_program_global_data(p)) != CL_SUCCESS) >+ goto error; >+ >+ p->is_built = 1; >+@@ -783,7 +784,8 @@ cl_program_link(cl_context co >+ copyed += sz; >+ } >+ >+- if ((err = get_program_global_data(p)) != CL_SUCCESS) >++ uint32_t ocl_version = interp_kernel_get_ocl_version(interp_program_get_kernel(p->opaque, 0)); >++ if (ocl_version >= 200 && (err = get_program_global_data(p)) != CL_SUCCESS) >+ goto error; >+ >+ done:
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
rezny
:
maintainer-approval-
Actions:
View
|
Diff
Attachments on
bug 217635
: 180620