mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-22 15:40:11 +01:00
rusticl/device: set required double fp config values
Signed-off-by: Karol Herbst <kherbst@redhat.com> Acked-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15439>
This commit is contained in:
parent
a40d4c0346
commit
5c18f39b09
1 changed files with 12 additions and 1 deletions
|
|
@ -29,7 +29,18 @@ impl CLInfo<cl_device_info> for cl_device_id {
|
|||
CL_DEVICE_DEVICE_ENQUEUE_CAPABILITIES => {
|
||||
cl_prop::<cl_device_device_enqueue_capabilities>(0)
|
||||
}
|
||||
CL_DEVICE_DOUBLE_FP_CONFIG => cl_prop::<cl_device_fp_config>(0),
|
||||
CL_DEVICE_DOUBLE_FP_CONFIG => {
|
||||
cl_prop::<cl_device_fp_config>(if dev.doubles_supported() {
|
||||
(CL_FP_FMA
|
||||
| CL_FP_ROUND_TO_NEAREST
|
||||
| CL_FP_ROUND_TO_ZERO
|
||||
| CL_FP_ROUND_TO_INF
|
||||
| CL_FP_INF_NAN
|
||||
| CL_FP_DENORM) as cl_device_fp_config
|
||||
} else {
|
||||
0
|
||||
})
|
||||
}
|
||||
CL_DEVICE_ENDIAN_LITTLE => cl_prop::<bool>(dev.little_endian()),
|
||||
CL_DEVICE_ERROR_CORRECTION_SUPPORT => cl_prop::<bool>(false),
|
||||
CL_DEVICE_EXECUTION_CAPABILITIES => {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue