mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 19:40:10 +01:00
rusticl/queue: fix error code for invalid queue properties part 2
Fixes:2c202eb787("rusticl: verify validity of property names and values") Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38327> (cherry picked from commite98abe35c0)
This commit is contained in:
parent
3a7f25f9f5
commit
3359b8d414
2 changed files with 2 additions and 2 deletions
|
|
@ -714,7 +714,7 @@
|
|||
"description": "rusticl/queue: fix error code for invalid queue properties part 2",
|
||||
"nominated": true,
|
||||
"nomination_type": 2,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "2c202eb7870524072863823e1a9413222021317f",
|
||||
"notes": null
|
||||
|
|
|
|||
|
|
@ -134,7 +134,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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue