mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-01 14:38:06 +02:00
rusticl/icd: qualify CLResult inside impl_cl_type_trait_base macro
Acked-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36780>
This commit is contained in:
parent
ad0402fc57
commit
dda52143d4
1 changed files with 1 additions and 1 deletions
|
|
@ -405,7 +405,7 @@ pub trait ArcedCLObject<'a, const ERR: i32, CL: ReferenceCountedAPIPointer<Self,
|
|||
macro_rules! impl_cl_type_trait_base {
|
||||
(@BASE $cl: ident, $t: ident, [$($types: ident),+], $err: ident, $($field:ident).+) => {
|
||||
impl $crate::api::icd::ReferenceCountedAPIPointer<$t, $err> for $cl {
|
||||
fn get_ptr(&self) -> CLResult<*const $t> {
|
||||
fn get_ptr(&self) -> $crate::api::icd::CLResult<*const $t> {
|
||||
type Base = $crate::api::icd::CLObjectBase<$err>;
|
||||
let t = Base::check_ptr(self.cast())?;
|
||||
if ![$($crate::api::icd::RusticlTypes::$types),+].contains(&t) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue