From: Karol Herbst Date: Fri, 16 Jun 2023 21:26:12 +0000 (+0200) Subject: rusticl/device: add intel usm queries DPCPP cares about X-Git-Tag: upstream/23.3.3~6872 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c7751c7f7df1b993aa7f7da59b1003ce32e71fdc;p=platform%2Fupstream%2Fmesa.git rusticl/device: add intel usm queries DPCPP cares about We don't implement them and we don't advertise the extension, but DPCPP queries them regardless. We ultimately plan to implement the intel USM extension. However until we do, just return 0 for those queries. Signed-off-by: Karol Herbst Part-of: --- diff --git a/src/gallium/frontends/rusticl/api/device.rs b/src/gallium/frontends/rusticl/api/device.rs index 86efae0..7aba83d 100644 --- a/src/gallium/frontends/rusticl/api/device.rs +++ b/src/gallium/frontends/rusticl/api/device.rs @@ -50,9 +50,15 @@ impl CLInfo for cl_device_id { CL_DEVICE_BUILT_IN_KERNELS => cl_prop::<&str>(""), CL_DEVICE_BUILT_IN_KERNELS_WITH_VERSION => cl_prop::>(Vec::new()), CL_DEVICE_COMPILER_AVAILABLE => cl_prop::(true), + CL_DEVICE_CROSS_DEVICE_SHARED_MEM_CAPABILITIES_INTEL => { + cl_prop::(0) + } CL_DEVICE_DEVICE_ENQUEUE_CAPABILITIES => { cl_prop::(0) } + CL_DEVICE_DEVICE_MEM_CAPABILITIES_INTEL => { + cl_prop::(0) + } CL_DEVICE_DOUBLE_FP_CONFIG => cl_prop::( if dev.doubles_supported() { let mut fp64_config = CL_FP_FMA @@ -84,6 +90,9 @@ impl CLInfo for cl_device_id { CL_DEVICE_GLOBAL_MEM_SIZE => cl_prop::(dev.global_mem_size()), CL_DEVICE_GLOBAL_VARIABLE_PREFERRED_TOTAL_SIZE => cl_prop::(0), CL_DEVICE_HALF_FP_CONFIG => cl_prop::(0), + CL_DEVICE_HOST_MEM_CAPABILITIES_INTEL => { + cl_prop::(0) + } CL_DEVICE_HOST_UNIFIED_MEMORY => cl_prop::(dev.unified_memory()), CL_DEVICE_IL_VERSION => cl_prop::<&str>(SPIRV_SUPPORT_STRING), CL_DEVICE_ILS_WITH_VERSION => cl_prop::>(SPIRV_SUPPORT.to_vec()), @@ -242,6 +251,12 @@ impl CLInfo for cl_device_id { cl_prop::(CL_QUEUE_PROFILING_ENABLE.into()) } CL_DEVICE_REFERENCE_COUNT => cl_prop::(1), + CL_DEVICE_SHARED_SYSTEM_MEM_CAPABILITIES_INTEL => { + cl_prop::(0) + } + CL_DEVICE_SINGLE_DEVICE_SHARED_MEM_CAPABILITIES_INTEL => { + cl_prop::(0) + } CL_DEVICE_SINGLE_FP_CONFIG => cl_prop::( (CL_FP_ROUND_TO_NEAREST | CL_FP_INF_NAN) as cl_device_fp_config, ),