clover: implement cl_arm_shared_virtual_memory
authorKarol Herbst <kherbst@redhat.com>
Wed, 22 May 2019 12:27:23 +0000 (14:27 +0200)
committerMarge Bot <eric+marge@anholt.net>
Wed, 15 Apr 2020 11:08:13 +0000 (11:08 +0000)
commit657ff3b3b816be96f61a363b4479abfe785678e1
tree1d9405242b3b2f9b77d5c05edb6b93ab682f4ab7
parenta218658556a2961af26af9c046aae23b7f58fcc8
clover: implement cl_arm_shared_virtual_memory

v2: use static array to keep name -> func mapping
v3: use unordered_map
v4: handle ARM constants
    reorder dispatch table
    wrap enqueue APIs as the command value differs between khr and arm
v5: move declarations into dispatch.hpp
    handle CL_MEM_USES_SVM_POINTER_ARM in clGetMemObjectInfo
v6: breaking long lines

Signed-off-by: Karol Herbst <kherbst@redhat.com>
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/2076>
src/gallium/state_trackers/clover/api/device.cpp
src/gallium/state_trackers/clover/api/dispatch.hpp
src/gallium/state_trackers/clover/api/kernel.cpp
src/gallium/state_trackers/clover/api/memory.cpp
src/gallium/state_trackers/clover/api/platform.cpp
src/gallium/state_trackers/clover/api/transfer.cpp