clover: expose cl_arm_shared_virtual_memory for devices with SVM support
authorKarol Herbst <kherbst@redhat.com>
Fri, 24 May 2019 13:47:28 +0000 (15:47 +0200)
committerMarge Bot <eric+marge@anholt.net>
Wed, 15 Apr 2020 11:08:13 +0000 (11:08 +0000)
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/core/device.cpp

index 9a81ac61fae3a8609f1addde277dfc4f42beafc0..609885c21bcf2463d1d9d5e801c48e26c537a885 100644 (file)
@@ -327,7 +327,8 @@ device::supported_extensions() const {
       + std::string(has_int64_atomics() ? " cl_khr_int64_base_atomics" : "")
       + std::string(has_int64_atomics() ? " cl_khr_int64_extended_atomics" : "")
       + std::string(has_doubles() ? " cl_khr_fp64" : "")
-      + std::string(has_halves() ? " cl_khr_fp16" : "");
+      + std::string(has_halves() ? " cl_khr_fp16" : "")
+      + std::string(svm_support() ? " cl_arm_shared_virtual_memory" : "");
 }
 
 const void *