Re: [Beignet] [patch v2 2/3] enable create image 2d from buffer in clCreateImage.

2015-09-01 Thread Luo, Xionghu
Please see the comments, thanks. Luo Xionghu Best Regards -Original Message- From: Guo, Yejun Sent: Monday, August 31, 2015 1:41 PM To: Luo, Xionghu; beignet@lists.freedesktop.org Cc: Luo, Xionghu Subject: RE: [Beignet] [patch v2 2/3] enable create image 2d from buffer in clCreateImage

Re: [Beignet] [patch v2 2/3] enable create image 2d from buffer in clCreateImage.

2015-08-30 Thread Guo, Yejun
4 comments inline, thanks. -Original Message- From: Beignet [mailto:beignet-boun...@lists.freedesktop.org] On Behalf Of xionghu@intel.com Sent: Friday, August 28, 2015 3:52 PM To: beignet@lists.freedesktop.org Cc: Luo, Xionghu Subject: [Beignet] [patch v2 2/3] enable create image 2d

Re: [Beignet] [patch v2 2/3] enable create image 2d from buffer in clCreateImage.

2015-08-28 Thread Matt Turner
On Fri, Aug 28, 2015 at 12:52 AM, wrote: > From: Luo Xionghu > > this patch allows create 2d image with a cl buffer with zero copy. > v2: should use reference to manage the release the buffer and image. > After being created, the buffer reference count is 2, and image reference > count is 1. > i

[Beignet] [patch v2 2/3] enable create image 2d from buffer in clCreateImage.

2015-08-28 Thread xionghu . luo
From: Luo Xionghu this patch allows create 2d image with a cl buffer with zero copy. v2: should use reference to manage the release the buffer and image. After being created, the buffer reference count is 2, and image reference count is 1. if image is released first, decrease the image reference