[Beignet] [PATCH] fix cts issue for clEnqueueMigrateMemObjects

Guo, Yejun yejun.guo at intel.com
Wed Dec 14 02:43:52 UTC 2016


sure.

-----Original Message-----
From: Yang, Rong R 
Sent: Wednesday, December 14, 2016 10:37 AM
To: Guo, Yejun; beignet at lists.freedesktop.org
Cc: Guo, Yejun
Subject: RE: [Beignet] [PATCH] fix cts issue for clEnqueueMigrateMemObjects

I have send a same patch " [PATCH 02/19] Runtime: fix clEnqueueMigrateMemObjects fail. ", can you try it?

> -----Original Message-----
> From: Beignet [mailto:beignet-bounces at lists.freedesktop.org] On Behalf 
> Of Guo, Yejun
> Sent: Monday, December 12, 2016 11:14
> To: beignet at lists.freedesktop.org
> Cc: Guo, Yejun <yejun.guo at intel.com>
> Subject: [Beignet] [PATCH] fix cts issue for 
> clEnqueueMigrateMemObjects
> 
> test case: test_buffers image_migrate
> according to spec, the input parameter is valid with mem object
> 
> Signed-off-by: Guo, Yejun <yejun.guo at intel.com>
> ---
>  src/cl_api_mem.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/cl_api_mem.c b/src/cl_api_mem.c index 
> 054c37a..7314a48
> 100644
> --- a/src/cl_api_mem.c
> +++ b/src/cl_api_mem.c
> @@ -1177,7 +1177,7 @@
> clEnqueueMigrateMemObjects(cl_command_queue command_queue,
>      }
> 
>      for (i = 0; i < num_mem_objects; i++) {
> -      if (!CL_OBJECT_IS_BUFFER(mem_objects[i])) {
> +      if (!CL_OBJECT_IS_MEM(mem_objects[i])) {
>          err = CL_INVALID_MEM_OBJECT;
>          break;
>        }
> --
> 1.9.1
> 
> _______________________________________________
> Beignet mailing list
> Beignet at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/beignet


More information about the Beignet mailing list