mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 13:10:10 +01:00
rusticl/api: Wire up CL_DEVICE_PROFILING_TIMER_RESOLUTION
Wire up the CL_DEVICE_PROFILING_TIMER_RESOLUTION from the PIPE_CAP. While here, also set CL_PLATFORM_HOST_TIMER_RESOLUTION to 1; that's bogus since we're using the same value as for device, but at this point we don't have a device to ask. Signed-off-by: Dr. David Alan Gilbert <dave@treblig.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23639>
This commit is contained in:
parent
1bb523111b
commit
8887be6206
2 changed files with 2 additions and 3 deletions
|
|
@ -256,8 +256,7 @@ impl CLInfo<cl_device_info> for cl_device_id {
|
|||
} else {
|
||||
"FULL_PROFILE"
|
||||
}),
|
||||
// TODO
|
||||
CL_DEVICE_PROFILING_TIMER_RESOLUTION => cl_prop::<usize>(0),
|
||||
CL_DEVICE_PROFILING_TIMER_RESOLUTION => cl_prop::<usize>(dev.timer_resolution()),
|
||||
CL_DEVICE_QUEUE_ON_DEVICE_MAX_SIZE => cl_prop::<cl_uint>(0),
|
||||
CL_DEVICE_QUEUE_ON_DEVICE_PREFERRED_SIZE => cl_prop::<cl_uint>(0),
|
||||
CL_DEVICE_QUEUE_ON_DEVICE_PROPERTIES => cl_prop::<cl_command_queue_properties>(0),
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ impl CLInfo<cl_platform_info> for cl_platform_id {
|
|||
CL_PLATFORM_EXTENSIONS_WITH_VERSION => {
|
||||
cl_prop::<Vec<cl_name_version>>(PLATFORM_EXTENSIONS.to_vec())
|
||||
}
|
||||
CL_PLATFORM_HOST_TIMER_RESOLUTION => cl_prop::<cl_ulong>(0),
|
||||
CL_PLATFORM_HOST_TIMER_RESOLUTION => cl_prop::<cl_ulong>(1),
|
||||
CL_PLATFORM_ICD_SUFFIX_KHR => cl_prop("MESA"),
|
||||
CL_PLATFORM_NAME => cl_prop("rusticl"),
|
||||
CL_PLATFORM_NUMERIC_VERSION => cl_prop::<cl_version>(CLVersion::Cl3_0 as u32),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue