diff --git a/src/gallium/frontends/rusticl/api/queue.rs b/src/gallium/frontends/rusticl/api/queue.rs index 04327f523b0..9b4e8114f1b 100644 --- a/src/gallium/frontends/rusticl/api/queue.rs +++ b/src/gallium/frontends/rusticl/api/queue.rs @@ -137,7 +137,7 @@ fn create_command_queue_with_properties( // SAFETY: properties is a 0 terminated array by spec. let properties = unsafe { Properties::new(properties) }.ok_or(CL_INVALID_VALUE)?; for (&key, &val) in properties.iter() { - match u32::try_from(key).or(Err(CL_INVALID_PROPERTY))? { + match u32::try_from(key).or(Err(CL_INVALID_VALUE))? { CL_QUEUE_PROPERTIES => queue_properties = val, CL_QUEUE_PRIORITY_KHR if d.context_priority_supported() != 0 => { let valid_props: cl_queue_properties = (CL_QUEUE_PRIORITY_LOW_KHR