[Beignet] [PATCH] Implement clEnqueueReadImage and clEnqueueWriteImage.

zhigang gong zhigang.gong at gmail.com
Mon May 20 00:48:43 PDT 2013


On Mon, May 20, 2013 at 3:30 PM, Dag Lem <dag at nimrod.no> wrote:

> Zhigang Gong <zhigang.gong at linux.intel.com> writes:
>
> > In general, this patch looks good to me. Could you split it to two
> patches?
> > One is for clEnqueueReadImage/WriteImage. And the other is to refine the
> > clEnqueueMapImage. And you may consider to merge the clEnqueueMapImage
> refinement
> > patch and the previous's clEnqueueMapImage patch.
> >
>
> OK, I'm working on it.
>
> > Another issue about the clEnqueueMapImage is that if the image is a tiled
> > buffer, then we may need to use clMapBufferGTTIntel to map it to vma.
> Otherwise,
> > we may get a tiled mapping address which is not expected by user.
>
> OK, so I should use clMapBufferIntel if cl_mem.tiled == CL_NO_TILE,
> clMapBufferGTTIntel if cl_mem.tiled == CL_TILE_Y, and throw an error
> otherwise (i.e. for the currently unused CL_TILE_X)?
>
> I guess clEnqueueUnmapMemObject should also be changed to call
> clUnmapBufferGTTIntel for tiled images?
>
 You are right.

>
> --
> Best regards,
>
> Dag Lem
> _______________________________________________
> Beignet mailing list
> Beignet at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/beignet
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/beignet/attachments/20130520/5e7654b3/attachment.html>


More information about the Beignet mailing list