rusticl/device: put space at the end of CL_DEVICE_VERSION
authorKarol Herbst <kherbst@redhat.com>
Sat, 19 Nov 2022 20:44:28 +0000 (21:44 +0100)
committerMarge Bot <emma+marge@anholt.net>
Tue, 22 Nov 2022 03:10:33 +0000 (03:10 +0000)
Apparently some software relies on that and the spec kind of says it's
there.

Fixes: 20c90fed5a0 ("rusticl: added")
Reported-by: sobkas
Signed-off-by: Karol Herbst <kherbst@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19872>

src/gallium/frontends/rusticl/api/device.rs

index acb426a..cabe3bf 100644 (file)
@@ -186,7 +186,7 @@ impl CLInfo<cl_device_info> for cl_device_id {
             CL_DEVICE_TYPE => cl_prop::<cl_device_type>(dev.device_type(false)),
             CL_DEVICE_VENDOR => cl_prop(dev.screen().device_vendor()),
             CL_DEVICE_VENDOR_ID => cl_prop::<cl_uint>(dev.vendor_id()),
-            CL_DEVICE_VERSION => cl_prop::<String>(format!("OpenCL {}", dev.cl_version.api_str())),
+            CL_DEVICE_VERSION => cl_prop::<String>(format!("OpenCL {} ", dev.cl_version.api_str())),
             CL_DRIVER_VERSION => cl_prop::<&CStr>(unsafe { CStr::from_ptr(mesa_version_string()) }),
             CL_DEVICE_WORK_GROUP_COLLECTIVE_FUNCTIONS_SUPPORT => cl_prop::<bool>(false),
             // CL_INVALID_VALUE if param_name is not one of the supported values