[Beignet] [PATCH] Refine mem.h and improve the related macro defination.

Simon Richter Simon.Richter at hogyros.de
Mon Dec 19 17:25:26 UTC 2016


Hi,

On 19.12.2016 10:21, junyan.he at inbox.com wrote:

> --- a/src/cl_api_mem.c
> +++ b/src/cl_api_mem.c
> @@ -71,54 +71,54 @@ clGetMemObjectInfo(cl_mem memobj,
>      break;
>    case CL_MEM_HOST_PTR: {
>      ptr = 0;
> -    if (memobj->type == CL_MEM_IMAGE_TYPE) {
> +    if (!CL_OBJECT_IS_BUFFER(memobj)) {
>        ptr = (size_t)memobj->host_ptr;
>      } else {

That would match pipes as well, is that intended?

   Simon

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <https://lists.freedesktop.org/archives/beignet/attachments/20161219/76d7e3e0/attachment.sig>


More information about the Beignet mailing list