[Beignet] Preventing zero GPU virtual address allocation
Song, Ruiling
ruiling.song at intel.com
Wed Mar 4 18:56:52 PST 2015
Hi Daniel,
OpenCL language support NULL pointer, using zero as the NULL pointer is the obvious way. That is zero will be treated as invalid address.
Then it requires drm won't allocate zero to drm buffer. And David in CC list has help us make a patch, please see attached. The logic is only for
ppgtt, and he said zero offset is used under ggtt. My question is what is offset zero used under ggtt? Will it make sure zero is not allocatable to drm buffer object?
Ruiling
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nozerooffset2.patch
Type: application/octet-stream
Size: 583 bytes
Desc: nozerooffset2.patch
URL: <http://lists.freedesktop.org/archives/beignet/attachments/20150305/db516d4e/attachment.obj>
More information about the Beignet
mailing list