FreeBSD Bugzilla – Attachment 175842 Details for
Bug 213551
lang/beignet: fix for utests compilation
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for utests/image_from_buffer.cpp
patch-utests_image__from__buffer.cpp (text/plain), 697 bytes, created by
Igor Pavlov
on 2016-10-17 00:52:29 UTC
(
hide
)
Description:
Patch for utests/image_from_buffer.cpp
Filename:
MIME Type:
Creator:
Igor Pavlov
Created:
2016-10-17 00:52:29 UTC
Size:
697 bytes
patch
obsolete
>--- utests/image_from_buffer.cpp.orig 2016-10-17 04:52:53.260527000 +0300 >+++ utests/image_from_buffer.cpp 2016-10-17 05:22:29.502232000 +0300 >@@ -1,6 +1,6 @@ > #include <string.h> > #include "utest_helper.hpp" >-#include <malloc.h> >+#include <stdlib.h> > #include <cstring> > > static void image_from_buffer(void) >@@ -32,9 +32,8 @@ > > // Setup kernel and images > size_t buffer_sz = sizeof(uint32_t) * w * h; >- uint32_t* src_data; >- src_data = (uint32_t*)memalign(base_address_alignment, buffer_sz); >- if(!src_data) { >+ uint32_t* src_data = NULL; >+ if (0 != posix_memalign((void**)&src_data, base_address_alignment, buffer_sz)) { > fprintf(stderr, "run out of memory\n"); > return; > }
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
Actions:
View
|
Diff
Attachments on
bug 213551
: 175842