From e83400cab283094c02172a0bb96a3ec8bf9dfeeb Mon Sep 17 00:00:00 2001 From: Karol Herbst Date: Sat, 8 Nov 2025 14:23:02 +0100 Subject: [PATCH] rusticl/queue: fix error code for invalid queue properties part 1 Cc: mesa-stable Part-of: --- src/gallium/frontends/rusticl/api/queue.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gallium/frontends/rusticl/api/queue.rs b/src/gallium/frontends/rusticl/api/queue.rs index fb38fa9c768..04327f523b0 100644 --- a/src/gallium/frontends/rusticl/api/queue.rs +++ b/src/gallium/frontends/rusticl/api/queue.rs @@ -135,7 +135,7 @@ fn create_command_queue_with_properties( let d = Device::ref_from_raw(device)?; // SAFETY: properties is a 0 terminated array by spec. - let properties = unsafe { Properties::new(properties) }.ok_or(CL_INVALID_PROPERTY)?; + 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))? { CL_QUEUE_PROPERTIES => queue_properties = val, @@ -152,7 +152,7 @@ fn create_command_queue_with_properties( // CL_INVALID_QUEUE_PROPERTIES if values specified in properties are valid but are not // supported by the device. CL_QUEUE_SIZE => return Err(CL_INVALID_QUEUE_PROPERTIES), - _ => return Err(CL_INVALID_PROPERTY), + _ => return Err(CL_INVALID_VALUE), } }