Hi,

On 19.12.2016 10:21, junyan...@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

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Beignet mailing list
Beignet@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/beignet

Reply via email to