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:
Karol Herbst 2025-07-07 00:15:34 +02:00 committed by Marge Bot
parent ad0402fc57
commit dda52143d4

View file

@ -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) {