clover: implement CL_MEM_ALLOC_HOST_PTR
authorGrigori Goronzy <greg@chown.ath.cx>
Tue, 12 May 2015 00:22:12 +0000 (02:22 +0200)
committerGrigori Goronzy <greg@chown.ath.cx>
Sat, 23 May 2015 23:14:48 +0000 (01:14 +0200)
commit5c495e86388b55af067677e8608eb124a5d70d29
tree4831d1214727df07ae98eab15c2d90a2b3f378d0
parentc922758685932e86d935972980df3be22d7b2fdf
clover: implement CL_MEM_ALLOC_HOST_PTR

This flag is typically used to request pinned host memory, to avoid
any copies between GPU and CPU.

This improves throughput with an older OpenCL app which I unfortunately
can't publish due to its licensing.

Reviewed-by: Francisco Jerez <currojerez@riseup.net>
src/gallium/state_trackers/clover/core/resource.cpp